【发布时间】:2017-08-30 19:04:56
【问题描述】:
我在 Mac 上设置 Jenkins,我们使用 Mercurial (Hg)。 Jenkins 和 Hg 都已安装。我可以从命令行运行 Hg。 它位于 /usr/local/bin
我使用 Jenkins Global Tool 来设置 Hg 的位置。我尝试了各种安装目录和可执行文件的组合来指定该路径。 它们都不起作用。
- /usr/local 和 INSTALLATION/bin/hg
- /usr/local/bin 和 hg
- 空白和/usr/local/bin/hg
我发现很多关于这类问题的报告,都是几年前的,但似乎都没有提供解决方案。
这是我收到的错误:
11:11:00 $ hg clone --rev 2017_2 --noupdate ssh://hg@xxxxx:2525/repos/reponame /Users/Shared/Jenkins/Home/workspace/App_2017_2
11:11:00 ERROR: Failed to clone ssh://hg@xxxxx:2525/repos/reponame because hg could not be found; check that you've properly configured your Mercurial installation
我假设我一定是在做一些非常明显的错误。
【问题讨论】: