報錯的處理:
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