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

时间:2020-12-01 13:53:59   收藏:0   阅读:550

前言

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

技术分享图片

原文:https://www.cnblogs.com/yoyoketang/p/14067316.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!