当前位置:   article > 正文

jenkins Error performing command: git ls-remote -h 解决办法

git ls-remote -h

Jenkins新建项目中源码管理使用Git时遇到如下问题:

Failed to connect to repository : Error performing command: git ls-remote -h ….
需要查看服务器上是否已经安装git.

#git version
#whereis git 
  • 1
  • 2

如果没有git,此时需要安装git,
#yum install git
打开jenkins主页面–>系统管理–>全局工具配置
在git一栏中name使用git即可,Path to Git executable 中填写git的地址,(即whereis git的结果)
保存即可.

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/541677
推荐阅读
相关标签
  

闽ICP备14008679号