Jenkins未能通过github“git clone” [英] Jenkins fails with github "git clone"
本文介绍了Jenkins未能通过github“git clone”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
错误:克隆远程回购'origin'错误:无法克隆git@github.com:test / test。 git
错误:原因:执行命令时出错:git clone --progress -o origin
$ b $ git@github.com:test / test.git / var / lib / jenkins / jobs / test / workspace
命令git clone --progress -o origin git@github.com:test / test.git
/ var / lib / jenkins / jobs / test / workspace返回状态码128:已初始化在/var/lib/jenkins/jobs/test/workspace/.git/
中清空Git
存储库未指定协议
(ssh-askpass:801) :Gtk-WARNING **:无法打开显示:: 0.0
主机密钥验证失败。
fatal:远程终端意外挂起
解决方案
您需要将您的私人ssh密钥复制到Jenkins下面的 .ssh
文件夹中。就像(在Ubuntu Lucid上):
/var/lib/jenkins/.ssh
When I do build in Jenkins, it fails with this error. Any idea?
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
解决方案
You need to copy your private ssh key into the .ssh
folder beneath Jenkins. Something like (on Ubuntu Lucid):
/var/lib/jenkins/.ssh
这篇关于Jenkins未能通过github“git clone”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文