docker+jenkins+gitlab jenkins构建的时候无法拉取代码
我在我把生成的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。成功