【jenkins git】Failed 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

如下图:

【jenkins git】Failed to connect to repository:Error performing command:git.exe ls-remote-h_第1张图片

 

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

 

【jenkins git】Failed to connect to repository:Error performing command:git.exe ls-remote-h_第2张图片

 

【jenkins git】Failed to connect to repository:Error performing command:git.exe ls-remote-h_第3张图片

你可能感兴趣的:(【jenkins git】Failed to connect to repository:Error performing command:git.exe ls-remote-h)