Getting mvn:release to work with Gitlab CI

Hello @udalrich,

you could skip pushing back to master and just the commit with the new tag.

Run

  • mvn release:prepare release:perform -DpushChanges=false
  • git push —tags

Additional benefit: you do not spoil the master’s commit history with the two release-commits.
Of course now you need to bump your version somehow.
You could use the ci_pipeline_id approach via inclusion of https://github.com/1and1/ono-maven-shared/blob/master/README.md