Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipelines with multiple maven-release-plugin

Jack Warnes April 12, 2022

I have a monorepo which has multiple projects and each project has it's own POM. Each project uses the maven-release-plugin to generate a snapshot/release version.

I have a single bitbucket-pipeline.yml to configure the steps - but I am hitting a problem when releasing multiple projects from the same pipeline execution.

As you can imagine, if I release project A, a git commit is created with the new POM versions. When I then try and release project B, the git clone command always resets to the hash which triggered the pipeline.

This means the git commit on the POMs for Project B fails as the git repo is now behind.

Has anyone solved this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events