git 问题解决02
1.故障现象:Failed to connect to repository : Error performing command: git ls-remote -h

2.解决:检查git版本及安装路径, (yum install git 安装的Git版本过低,应该用jenkins安装插件或自行安装更高版本)
[root@jenkins workspace]# git --version git version 2.15.0 [root@jenkins workspace]# which git /usr/local/bin/git
3.打开Jenkins的 主页面 > 系统管理 > Global Tool Configuration,可以看到错误提示:There's no such executable git in PATH: /sbin, /usr/sbin, /bin, /usr/bin.

4.填which git的路径地址,解决问题



浙公网安备 33010602011771号