小编And*_*era的帖子

使用 Gradle Release Plugin 的 SSH Git 访问

使用 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)

git ssh jenkins gradle-release-plugin

5
推荐指数
1
解决办法
1579
查看次数

标签 统计

git ×1

gradle-release-plugin ×1

jenkins ×1

ssh ×1