文章目录
一、问题:失败连接仓库
Failed to connect to repository : Error performing git command: git.exe ls-remote -h https://gitee.com/xxx/ihrmApiSH27.git HEAD

二、原因:发现不了git.exe
没有可执行的git.exe,原因Jenkins的环境变量没有发现找到git.exe。

三、解决办法:添加git.exe
拷贝一份本地的git.exe的绝对路径到 Path to Git executable 下。
yacas
//默认git安装的路径
C:\Program Files\Git\bin\git.exe
