Jenkins失败了github“git clone”

当我建立在jenkins,它失败了这个错误。任何想法?

ERROR: Error cloning remote repo ‘origin’ : Could not clone git@github.com:test/test.git

ERROR: Cause: Error performing command: git clone –progress -o origin

git@github.com:test/test.git /var/lib/jenkins/jobs/test/workspace
Command “git clone –progress -o origin git@github.com:test/test.git
/var/lib/jenkins/jobs/test/workspace” returned status code 128: Initialized empty Git
repository in /var/lib/jenkins/jobs/test/workspace/.git/

No protocol specified

(ssh-askpass:801): Gtk-WARNING **: cannot open display: :0.0
Host key verification failed.
fatal: The remote end hung up unexpectedly

您需要将私人ssh密钥复制到Jenkins下的.ssh文件夹中。像(在Ubuntu Lucid):
/var/lib/jenkins/.ssh
http://stackoverflow.com/questions/6103684/jenkins-fails-with-github-git-clone

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:Jenkins失败了github“git clone”