Jenkins,Mercurial,Bitbucket和SSH无法正常工作 [英] Jenkins, Mercurial, Bitbucket and SSH not working

查看:155
本文介绍了Jenkins,Mercurial,Bitbucket和SSH无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to set up Jenkins to pull from a bitbucket repo (on Windows Server 2008). I've generated a key, uploaded it to bitbucket, configured Mercurial to use Plink, am running Pageant, and can clone from the command line.

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

When I set up the Jenkins job, it tries to clone the repo but just hangs with the "working" icon in the console output

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

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

If I clone the repo from the command line, I get

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

,它也只是挂起.我让它整夜运行,没有错误消息,没事.

and it also just hangs. I've left it running overnight, no error message, nothing.

我可以放下https://user:pass@bitbucket.org/user/repo,它可以从Jenkins处查到.

I can put use https://user:pass@bitbucket.org/user/repo and it checks out fine from Jenkins.

推荐答案

原来在32位tomcat中运行的Jenkins不喜欢64位plink.我将其更改为32位plink,现在可以正常运行了.

Turns out Jenkins running in a 32 bit tomcat doesn't like 64 bit plink. I changed it to the 32 bit plink and now it checks out fine.

这篇关于Jenkins,Mercurial,Bitbucket和SSH无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆