【问题标题】:Jenkins unable to find Hg詹金斯找不到汞
【发布时间】: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

我假设我一定是在做一些非常明显的错误。

【问题讨论】:

    标签: jenkins mercurial


    【解决方案1】:

    终于在jenkins on Mac, PATH is not set right, no /usr/local/bin找到了答案 (Jordan Bondo 底部附近的那个)

    在“全局工具配置”中设置 Hg 的路径后(注意:不要只将 Mercurial 设置命名为“Mercurial”,使用其他名称。) 然后我必须转到 Build 配置并明确告诉它使用特定的 Mercurial 配置。

    【讨论】:

      猜你喜欢
      • 2012-09-30
      • 2014-07-24
      • 2018-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-24
      相关资源
      最近更新 更多