How to run part of a Build Plan nightly

Hi,

I'm on Atlassian Bamboo version 4.4.5 build 3507 - 27 Mar 13

Is it possible to break up a build plan as follows:

- run mvn clean install on each commit

- run mvn clean install sonar:sonar nightly at 1am

1 answer

1 accepted

1 vote
Accepted answer

Not natively, there are a few hacks to get this done though.

  1. Set the second half up as a manual stage, have a process (Bamboo or not) with a 1am timed trigger to search the API or DB for last build with unrun manual stages and trigger through the API.
  2. Setup your regular trigger and an additional timed trigger in Bamboo, use scripts to notice the time and run your additional setup (this can be tricky and ugly).
  3. Similar to #2, have a process with a 12:58 schedule either write a Bamboo variable, environmental variable, or file/db with a "run" flag and setup #2 to look for that flag and reset it.
  4. Separate your process into 2 plans with two different triggers.

All of these except #1 force it to happen every single day (or whatever trigger). #1 as described focuses on the last build which would have been triggered by whatever else and checks to see if the manual stage was run already. This is what I use for nightly automated tests so I don't run the tests if there were no changes in the day.

Raised issue:

https://jira.atlassian.com/browse/BAM-13842

I'll probably go with option #4 for now.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

77 views 3 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