Jenkins踩坑:Failed to connect to repository : Error performing git command: git ls-remote -h http://17
Failed to connect to repository : Error performing git command: git ls-remote -h http://.....git HEAD
·
1、问题描述
Jenkins搭建好之后,使用Jenkins新建构建任务,在填写git地址时,一直报错
Failed to connect to repository : Error performing git command: git ls-remote -h
http://172.17.116.107/......git HEAD
截图
2、解决问题
期初我以为是凭据错误的原因,重复试了好久也没有解决问题,后来才发现,是由于我安装Jenkins的服务器,没有安装git的客户端,所以才无法链接git
安装git客户端命令:
# 安装git客户端
yum -y install git
# 验证是否安装成功
git --version
安装完git客户端之后,Jenkins就不再报错了
更多推荐
已为社区贡献6条内容
所有评论(0)