当前位置:   article > 正文

jenkins连接gitlab出现eturned status code 128:stdout: stderr: fatal: unable to accessPeer‘s certificate_returned status code 128: stdout: stderr: fatal: u

returned status code 128: stdout: stderr: fatal: unable to access

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/578188
推荐阅读
相关标签
  

闽ICP备14008679号