【问题标题】:Jenkins, Mercurial, Bitbucket and SSH not workingJenkins、Mercurial、Bitbucket 和 SSH 不工作
【发布时间】:2012-06-19 00:13:43
【问题描述】:

我正在尝试将 Jenkins 设置为从 bitbucket 存储库中提取(在 Windows Server 2008 上)。我已经生成了一个密钥,将其上传到 bitbucket,配置 Mercurial 以使用 Plink,正在运行 Pageant,并且可以从命令行克隆。

当我设置 Jenkins 作业时,它会尝试克隆存储库,但只是在控制台输出中挂起“工作”图标

Building in workspace <workspace>
$ hg clone --rev default --noupdate ssh://hg@bitbucket.org/user/repo <workspace>
<spinning working icon>

如果我从命令行克隆 repo,我会得到

Building in workspace <workspace>
[src] $ hg showconfig paths.default
[src] $ hg pull --rev default
<spinning working icon>

它也只是挂起。我让它一夜之间运行,没有错误消息,什么都没有。

我可以使用https://user:pass@bitbucket.org/user/repo,它从 Jenkins 那里检查得很好。

【问题讨论】:

  • Jenkins 是否使用与能够从命令行克隆的帐户相同的帐户运行? Jenkins 会话是否知道 %HOME% 是什么? (因为会在%HOME%/.ssh搜索ssh信息)

标签: mercurial ssh hudson jenkins bitbucket


【解决方案1】:

原来在 32 位 tomcat 中运行的 Jenkins 不喜欢 64 位 plink。我将其更改为 32 位 plink,现在它检查正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-01
    • 1970-01-01
    相关资源
    最近更新 更多