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