mercurial - 无法在路径 'hg' 找到 mercurial 可执行文件

标签 mercurial teamcity agent

我在代理端使用 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/

相关文章:

java - 当使用 -javaagent 启动 JVM 时,我应该如何在 manifest.mf 中指定我的 Premain-class

bash - 为 Mercurial (hg) 启用 bash 选项卡补全

visual-studio - 我应该如何在 Mercurial 存储库中设置我的 Visual Studio 项目/解决方案?

mercurial - TortoiseHG 图标丢失

continuous-integration - Maven 命令行参数中的 TeamCity 双引号问题

objective-c - 在 OS X 上实现后台应用程序的最佳方式

go - 通过 Jenkins 工具安装 go-1.17 时输入格式错误或输入包含不可映射的字符

mercurial - 如何解决这一 Mercurial 冲突?

c++ - 为 DLL 库配置 Google 测试项目

Teamcity NTLM 身份验证更改 - 管理员用户在转换过程中丢失