Bamboo build plan enable maven profile @ night

I have Bamboo 5.7.2 build 5716 plan that runs a Maven 3.x task `clean deploy`

Nightly I'd like to be able to trigger a Maven profile `clean deploy -Pmyprofile`. However I'd only like to do this nightly say 12am.

All other builds should run `clean deploy`



1 answer

Bamboo Command Line Interface (CLI) has a queueBuild action that lets you set variables for the build. Make the -Pmyprofile a bamboo variable normally that defaults to blank. Use the Bamboo task from Run CLI Actions in Bamboo to schedule the queuing of the build at 12am.

Is is possible to run this within the same Plan as my exists build that runs every commit? Task 1 will have my normal build that runs on every commit and Task 2 will run my queueBuild to only runs @ 12am? Or would your approach require a separate Bamboo Plan?

Separate build that just runs the queueBuild with the special parameter setting.

But I was hoping for Cron based Scheduling at the Bamboo Task level i.e My build will trigger on every commit. But 1 Maven Task in that build should be skipped and only scheduled to run to @ 12am Or alternatively, Cron based Scheduling at the Bamboo Stage level i.e. Stage 1 is triggered to run on every commit while Stage 2 is triggered to run based on cron. I guess this is not possible?

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,081 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