我在我把生成的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。成功
