获取在路径'hg'找不到mercurial可执行文件

sam*_*sam 1 teamcity mercurial agent

我正在使用VCS checkout模式到代理端,并且还在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'
Run Code Online (Sandbox Code Playgroud)

还定义了windows环境变量中的路径.Mercurial未安装在服务器计算机上.我在文档中读到,如果您使用代理方签出,则不需要.请指导我在这里缺少的东西.谢谢

zck*_*zck 8

根据文档,如果您正在使用服务器端签出,那么您不需要在代理上安装mercurial .

但是,当您将版本控制设置为VCS根目录时,您确实需要TeamCity服务器能够与mercurial服务器通信,以便它可以执行检测更改等操作.JetBrains文档明确指出,如果您使用的是Mercurial VCS root:

Mercurial应安装在服务器计算机上,如果使用代理端检出,则应安装在代理上.