jenkins中的git cloning致命:远程端意外挂断

时间:2012-06-06 12:10:23

标签: git

我无法在詹金斯克隆git repo。安装的git版本是1.7.10。我还在用户目录中配置了ssh密钥。使用相同的配置,我可以从命令行和git bash克隆git。

但是当我从jenkins“执行窗口批处理命令”尝试相同的命令时,作业失败并显示错误:fatal: The remote end hung up unexpectedly

C:\JenkinsSlave\workspace\ClonePath>git clone git@giturl.git 
Cloning into 'gitrepo'...
fatal: The remote end hung up unexpectedly
Build step 'Execute Windows batch command' marked build as failure
Notifying upstream projects of job completion
Finished: FAILURE

1 个答案:

答案 0 :(得分:0)

我怀疑你的Jenkins工作是否在您认为的用户帐户下运行。但无论如何,从只读资源位置克隆就是你要为大多数构建服务器做的事情。试试这个:

git clone git://giturl.git