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仓库地址就没问题了

posted @ 2020-12-01 12:12  上海-悠悠  阅读(11469)  评论(0编辑  收藏  举报