Jenkins遇到的坑——如何爬出来

坑1:jenkins git clone “stderr: remote: The project you were looking for could not be found.

查看本地配置:
在git clone “https://xx@XXXXX.git”已经添加了用户名的情况下,如果还报这个错误
需要在Slave上,以管理员权限打开cmd,进入git安装目录,执行:
git config --system --unset credential.helper
清除本地git账户,重新输入用户名密码(最优)

坑2:error: could not lock config file .git/config: Invalid argument

 

坑3Failed to connect to repository : Command "git ls-remote -h Sign in · GitLab HEAD" returned status code 128:

stdout:
stderr: fatal: unable to access ' Sign in · GitLab ': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
问题: 代表自己的電腦不信任簽屬 git 伺服器憑證的 憑證頒發機構 ,有可能該憑證是自行簽署的,或是由其他沒有在 OS 內建名單中的機構所簽署。
在jenkins server上执行
# 設定讓 Git Client 永久忽略 SSL 憑證檢查
git config --global http.sslverify false

坑4  连不上跳出Error  

可以多试几次,实在不行,参考下面的方法:

坑5  Could not resolve host: gitlab.XXXXX.com

 

检查jenkins server所在机器DNS 是否正常, 先curl  URL ,看是否正常。
解决方法:DNS不通,改为动态获取,重启jenkins Server
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值