jenken報錯Failed to connect to repository


報錯的處理:

Failed to connect to repository : Command "git ls-remote -h https://gitlab.example.com/root/test-repo.git HEAD" returned status code 128:
stdout: 
stderr: fatal: unable to access 'https://gitlab.example.com/root/test-repo.git/': Peer's certificate issuer has been marked as not trusted by the user.

SSL certificate problem: unable to get local issuer certificate

 

解決辦法:

在jenkins服務器中安裝git

Yum install –y git

並執行以下命令:

[root@node5 logs]# git config --global http.sslVerify false
————————————————
版權聲明:本文為CSDN博主「鄭子明」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/reblue520/article/details/88882173

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM