Jenkins, Mercurial, Bitbucket and SSH not working

痴心易碎 提交于 2019-12-11 11:41:50

问题


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.

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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/11058905/jenkins-mercurial-bitbucket-and-ssh-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!