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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM