docker+jenkins+gitlab jenkins构建的时候无法拉取代码

时间:2020-08-19 22:20:40   收藏:0   阅读:181

我在我把生成的ssh key的公钥添加到了gitlab, 同时用私钥在jenkins上创建了一个凭据。但是在创建jenkins job的时候还是报错,如下图所示

技术分享图片

returned status code 128:
stdout:
stderr: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

尝试删除ssh key重新添加还是不行。最后只能删除jenkins job。然后重新创建job。成功

 

原文:https://www.cnblogs.com/linax/p/13531958.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!