我无法在 jenkins 中克隆 git repo。安装的git版本是1.7.10。我还在用户目录中配置了 ssh 密钥。使用相同的配置,我可以从命令行和 git bash 中克隆 git。
但是,当我从詹金斯“执行窗口批处理命令”尝试相同的命令时,作业失败并出现错误: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