Closed vicboma1 closed 2 years ago
You have some weird arguments in your command -Dgpg trueSignCommit=true
.
What do you want to achieve?
I found the problem. The gitlab-ci environment was 'stuck' and on restarting it everything worked fine. Thanks for the feedback!
Hi, when I just merge a feature with the develop branch, I get an error at the end of the pipeline
[ERROR] Failed to execute goal com.amashchenko.maven.plugin: gitflow-maven-plugin: 1.16.0: feature-finish (default-cli) on project project-xxxxxx: feature-finish: error: gpg failed to sign the data
Apparently a satisfactory signature comes out:
[INFO] Committing changes. GPG-signed.
The execution line is:
if I try to launch the plugin with -DgpgSignCommit = false, I get the above error:
'[ERROR] Failed to execute goal com.amashchenko.maven.plugin: gitflow-maven-plugin: 1.16.0: feature-finish (default-cli) on project xxxxxx: feature-finish: error: gpg failed to sign the data '' '
Trace:
[INFO] Local aggregation root: / home / gitlab-runner / builds / CN6tLW4W / 0 / xxxxxx / [INFO] Processing change of xxxxxx: 2.0.0.0-test-pipe-SNAPSHOT -> 2.0.0.1-test-pipe-SNAPSHOT [INFO] Processing xxxxxx [INFO] Updating project xxxxxx [INFO] from version 2.0.0.0-test-pipe-SNAPSHOT to 2.0.0.1-test-pipe-SNAPSHOT [INFO] [INFO] ----------------------------------------------- ------------------------- [INFO] BUILD SUCCESS [INFO] ----------------------------------------------- ------------------------- [INFO] Total time: 4.889 s [INFO] Finished at: 2021-08-19T14: 49: 06 + 02: 00 [INFO] ----------------------------------------------- ------------------------- [INFO] Committing changes. GPG-signed. [INFO] ----------------------------------------------- ------------------------- [INFO] BUILD FAILURE [INFO] ----------------------------------------------- ------------------------- [INFO] Total time: 06:51 min [INFO] Finished at: 2021-08-19T14: 49: 06 + 02: 00 [INFO] ----------------------------------------------- ------------------------- [ERROR] Failed to execute goal com.amashchenko.maven.plugin: gitflow-maven-plugin: 1.16.0: feature-finish (default-cli) on project sina-suite.sina-front: feature-finish: error: gpg failed to sign the data [ERROR] fatal: failed to write commit object
With this execution:
The execution line is:
mvn -B gitflow: feature-finish -DincrementVersionAtFinish=true -DfeatureBranch=$ GET_NAME -DfeatureSquash=true -DfetchRemote=false -Dverbose=true -DpushRemote=true -DskipUpdateVersion=false -Dgpg trueSignCommit=false -Dgpg trueSignCommit=false
Trace:
[INFO] Processing xxxxx 8992[INFO] Updating project xxxxxx 8993[INFO] from version 2.0.0.0-prueba-pipe-SNAPSHOT to 2.0.0.1-prueba-pipe-SNAPSHOT 8994[INFO] 8995[INFO] ------------------------------------------------------------------------ 8996[INFO] BUILD SUCCESS 8997[INFO] ------------------------------------------------------------------------ 8998[INFO] Total time: 5.216 s 8999[INFO] Finished at: 2021-08-19T15:26:05+02:00 9000[INFO] ------------------------------------------------------------------------ 9001[INFO] Committing changes. 9002[INFO] ------------------------------------------------------------------------ 9003[INFO] BUILD FAILURE 9004[INFO] ------------------------------------------------------------------------ 9005[INFO] Total time: 07:12 min 9006[INFO] Finished at: 2021-08-19T15:26:06+02:00 9007[INFO] ------------------------------------------------------------------------ 9008[ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.16.0:feature-finish (default-cli) on project sina-suite.sina-front: feature-finish: error: gpg failed to sign the data 9009[ERROR] fatal: failed to write commit object 9010[ERROR] -> [Help 1]
Thanks!