jenkins Error performing command: git ls-remote -h 解决办法

版权声明:本文为博主原创文章,未经博主允许请随意转载。 https://blog.csdn.net/qq_25925973/article/details/79018866

Jenkins新建项目中源码管理使用Git时遇到如下问题:

Failed to connect to repository : Error performing command: git ls-remote -h ….
需要查看服务器上是否已经安装git.

#git version
#whereis git 

如果没有git,此时需要安装git,
#yum install git
打开jenkins主页面–>系统管理–>全局工具配置
在git一栏中name使用git即可,Path to Git executable 中填写git的地址,(即whereis git的结果)
保存即可.

猜你喜欢

转载自blog.csdn.net/qq_25925973/article/details/79018866