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的主要内容,如果未能解决你的问题,请参考以下文章

win10安装jenkins报错Service jenkins failed to start verify that you have sufficient privileges to start

Jenkins(Publish build status to gitlab)

Jenkins: Can't connect to Docker daemon解决办法

升级jenkins之后无法启动 报错Unable to read /var/lib/jenkins/config.xml

This Jenkins instance appears to be offline

Jenkins连接git时出现“Failed to connect to repository : Command ... HEAD" returned status code 128:”的