-2
我无法克隆jenkins中的git repo。安装的git版本是1.7.10。而且我在用户目录中配置了ssh密钥。使用相同的配置,我可以从命令行克隆git,也可以在git bash中克隆。jenkins致命git克隆:远端意外挂断
但是,当我试图从詹金斯同样的命令“执行窗口批处理命令”作业因错误而失败:fatal: The remote end hung up unexpectedly
C:\JenkinsSlave\workspace\ClonePath>git clone [email protected]
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
是否有任何关于您在jenkins git克隆的前两个问题?如果这是同一个问题,您可能需要更改第一个问题并更新新的见解,而不是提出新的问题。如果这是一个新问题,您可能需要更新以前的问题并解释如何解决这些问题。 – Nanne
检查您的远程日志。这通常是某种SSH公钥认证错误。 –
可能的重复:http://stackoverflow.com/questions/9696902/git-clone-is-not-working-from-jenkins –