首页 > 其他 > 详细

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

时间:2020-12-01 13:53:59      阅读:549      评论:0      收藏:0      [点我收藏+]

前言

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

技术分享图片

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!