Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo build plan enable maven profile @ night

D K May 27, 2015

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

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 30, 2015

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.

D K June 9, 2015

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?

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2015

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

D K June 10, 2015

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
TAGS
AUG Leaders

Atlassian Community Events