How to cut a Maven release in Bamboo?

I am looking for how to run release builds in Bamboo. Coming from Jenkins there is a handy one click link for Maven projects that auto populates parameters for the Maven Release Plugin. What is the equivalent in Bamboo? The best I can figure is to literally clone the existing project and add parameters, however the build configuration will then get out of synch and the user needs to manually enter versions.

I hope I am missing something here.

1 answer

Depending on your SCM implementation you could use mvn:release or jgitflow.  These can be executed with the standard maven task.  We typically set these up as a manual stage after the primary build stage.

So it's not a separate plan but a separate task. That manual stage doesn't interfere with builds from SCM changes? We are using Bitbucket w/ git and no special workflow.

An additional manual stage will not interfere with the first build stage.  The release process must be a task in the manual stage.  With no GIT workflow, you should be able to use mvn release, but if you start to roll in something around tagging/branching during release, that may change.

If your build has other optional manual tasks/stages then this might not be feasible since the tasks/stages have to complete in sequence.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

How do your teams prepare for really high (planned) traffic days like Cyber Monday?

Hi there! Shannon from Statuspage here.  👋  With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...

61 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you