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 Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,064 views 0 5
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot