Trigger multiple bamboo builds for same commit branch

We have a bamboo build triggered on every commit executing both build and acceptance tests.

We now want to break this build into two bamboo builds:

- The first bamboo build will run unit and integration tests on every branch commit.

- The second bamboo build should run the acceptance tests and have the details about the original branch commit passed to it.

 

Can a bamboo build trigger a second bamboo build and have the second build checkout the same exact branch?

1 answer

0 votes

You can split into 2 plans and make planB to be dependant on PlanA and make them dependant of each other.

That way, if the child build uses the same source as the parent build (for example, the Git URL is the same), the child build will be forced to check out the same revision of source code as the parent build. This ensures that builds are consistent when triggering one build from another.

This page helps you set up plan dependency.

You can also setup Dependency blocking strategies. This ensures that a "tree" of dependent builds always runs in tree hierarchy order, even if child plan builds are triggered independently of their parents.

Hope that helps.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

141 views 0 6
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