其他分享
首页 > 其他分享> > jenkins学习16-无法连接仓库:Error performing git command: git ls-remote -h

jenkins学习16-无法连接仓库:Error performing git command: git ls-remote -h

作者:互联网

前言

使用 Jenkins 配置git仓库地址的时候,出现无法连接仓库的情况:Error performing git command: git ls-remote -h
出现这个原因是因为Jenkins的服务器上没安装git客户端工具

出现问题

配置仓库地址,出现无法连接仓库的情况:Error performing git command: git ls-remote -h

Jenkins 服务器安装git客户端

使用yum 安装git

yum -y install git

安装完成后检查版本 1.8.3.1

[root@iZ2vchn8sk983jm605yhshZ web_pom]# git --version
git version 1.8.3.1

再回到之前的 配置页面刷新下,重新输入git仓库地址就没问题了

标签:git,remote,仓库,performing,ls,Error,Jenkins
来源: https://blog.51cto.com/u_15249893/2852037