詹金斯Mac奴隶错误

时间:2012-08-20 13:57:19

标签: xcode hudson jenkins hudson-plugins jenkins-plugins

我有一个与Bitbucket连接的Jenkins服务器(Linux)。

对于iOS项目,我需要创建与Mac OS slave的连接,但在slave中,我无法连接到Bitbucket repo并进行克隆。

ERROR: Error cloning remote repo 'origin' : Could not clone 
git@bitbucket.org:nameProjectGit
hudson.plugins.git.GitException: Could not clone         git@bitbucket.org:nameProjectGit
at hudson.plugins.git.GitAPI.clone(GitAPI.java:268)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1122)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at hudson.remoting.Engine$1$1.run(Engine.java:60)
at java.lang.Thread.run(Thread.java:680)

Caused by: hudson.plugins.git.GitException: Command "git clone --progress -o origin git@bitbucket.org:mauredo/snapandsell_ios.git /Users/usertest/dev/jenkins/workspace/SnapAndSell_iOS" returned status code 128:
stdout: Cloning into '/Users/usertest/dev/jenkins/workspace/ProjectName'...

stderr: ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
Host key verification failed.
fatal: The remote end hung up unexpectedly
...

我的项目在master中正确编译。如果我从奴隶中的终端进行推送,它就会成功。

知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:2)

问题出在您的 GIT插件上,但是缺少SSH组件 -
ssh-askpass

禁用GIT插件或安装缺少的SSH组件。