赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。