jenkins gitlab拉取代码报错:returned status code 128

部署在windows服务器上的jenkins 设置源码管理为Git 报错:gitreturned status code 128

jenkins配置源码管理-gitlab验证时报错

全局凭证 用的是Username and password 所以git的源地址理应是http:// xxxxxx.git

上面看你是不是这么配的

报错:

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.

问题排除

先去jenkins所在服务器 用这个命令试试 服务器能不能拉得下代码

git clone http://邮箱(或用户名):密码@gitlab.example.com/root/test-repo.git/

如果猜的没错 报同样的错: 找不到项目

问题解决

去服务器—>打开控制面板–>凭据管理–>可以看到这里有一条git地址的凭证–>修改用户名密码或者删除凭证

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值