使用 Jenkins 管道,我将存储库 URL 从 http 更改为 ssh git 访问。这样做之后,这项工作不再起作用(在此之前一切正常)。
在日志下方:
:xxxxxx:checkUpdateNeeded
Running [git, remote, update] produced an error: [Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin]
:xxxxxx:checkUpdateNeeded FAILED
:release FAILED
Release process failed, reverting back any changes made by Release Plugin.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':checkUpdateNeeded'.
> Failed to …Run Code Online (Sandbox Code Playgroud)