Ошибка отклонения разрешения gitflow-maven-plugin (jenkins-gitlab) - PullRequest
0 голосов
/ 30 ноября 2018

У нас есть задание (java) на нашем сервере Jenkins, которое запускается через веб-крючок с нашего сервера Gitlab, но во время сборки плагин gitflow maven жалуется на отклоненное разрешение?Это обычно означает, что есть проблема с ключами ssh ...

Я проверил следующее:

1.) jenkins can communicate with gitlab (the repo does get cloned)
2.) there is a user in gitlab that has developer rights and the project in question has a deploy key enabled (with write permissions)??
3.) The pom.xml file has the right scm connection.

Проблема в том, что она должна работать :), я думаю, что проблема в том,с помощью плагина gitflow-maven:

Stacktrace:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.587 s
[INFO] Finished at: 2018-11-30T13:06:17+00:00
[INFO] Final Memory: 29M/197M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data[ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.10.0:release-finish (default-cli) on project template: release-finish: Permission denied (publickey).
[ERROR] fatal: Could not read from remote repository.
[ERROR] 
[ERROR] Please make sure you have the correct access rights
[ERROR] and the repository exists.
[ERROR] -> [Help 1]

Любой совет будет полезен.

Обновление :

Я нашел ответ, если у кого-то еще будут подобные проблемы, быстрое решение состоит в том, чтобы использовать плагин «ssh agent» jenkins, который сохранит ключ ssh в процессе сборки.

...