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 Sign up to answer
Community showcase
Posted Jan 15, 2019 in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

275 views 5 2
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