Failed to connect to repository : Error performing git command: git.exe
Jenkins环境下,Failed to connect to repository : Error performing git command: git.exe 的问题的解决方案。
·
在测试Jenkins来build来自Github的项目的时候,总是报错如下:

在cmd命令行里执行git命令显示如下:
![]()
说明git在系统已经安装,而且环境变量PATH也设置了。
研究了好久才找到解决方案如下:通过URL:http://localhost:8888/manage【Jenkins的访问URL的后面直接加上manage】
访问【Global tool Configuration】

找到Git的配置部分,如下图:

可以看到这里根本就找不到git.exe。
我的解决方案是:找到git的安装路径下的git.exe,把全路径补上,问题就解决了。

更多推荐


所有评论(0)