jenkins gitFailed to connect to repository:Error performing command:git.exe ls-remote-h

Posted TaiChiLYL

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jenkins gitFailed to connect to repository:Error performing command:git.exe ls-remote-h相关的知识,希望对你有一定的参考价值。

jenkins使用git源码管理报错:Failed to connect to repository:Error performing command:git.exe ls-remote-h

本机需要安装git,设置好路径之后,重启jenkins

如下图:

技术分享图片

 

解决:在 系统管理-Global Tool Configuration 设置本地git.exe的路径。如下图:

 

技术分享图片

 

技术分享图片

以上是关于jenkins gitFailed to connect to repository:Error performing command:git.exe ls-remote-h的主要内容,如果未能解决你的问题,请参考以下文章