我在代理端使用 VCS check out 模式,并且还在 agent.properties 文件中定义了 teamcity.hg.agent.path = c:\program files\mercurial\hg.exe。 VCS 仍然没有选择此设置并给我以下错误:-
Test connection failed in Dev :: Stocks :: Build and Package. Cannot find mercurial executable at path 'hg'
在windows环境变量中也定义了路径。服务器计算机上未安装 Mercurial。我在文档中读到,如果您使用的是代理端结账,则不需要。请指导我在这里缺少什么。 谢谢
最佳答案
根据documentation ,如果您使用的是服务器结帐,则无需在您的代理上安装 mercurial。
但是当您将版本控制设置为 VCS 根目录时,您确实需要 TeamCity 服务器能够与 Mercurial 服务器通信,以便它可以执行检测更改等操作。 JetBrains 文档 specifically says如果您使用的是 Mercurial VCS root:
Mercurial should be installed in the server machine, and, if agent-side checkout is used, on the agents.
关于mercurial - 无法在路径 'hg' 找到 mercurial 可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21551220/