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
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
