本文主要是介绍jenkins连接gitlab出现eturned status code 128:stdout: stderr: fatal: unable to accessPeer‘s certificate,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
jenkins配置gitlab拉取代码时报错
报错的处理:
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
注意是在jenkins的服务器上执行 git config --global http.sslVerify false
这篇关于jenkins连接gitlab出现eturned status code 128:stdout: stderr: fatal: unable to accessPeer‘s certificate的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!