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

This widget could not be displayed.

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 Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

206 views 1 3
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