tigger a bamboo build only if there are VCS changes?

Hi,

 

We have as part of our entire product set, we have a dozen other applications that make the entire set.  When we build the primary app, we would like to trigger all the other app builds but only have it build if there are VCS changes.  This is different than trigger on a VCS change or even Repository triggers the build when changes are committed.

 

Is that possible?  I know this is possible with Teamcity but not sure on Bamboo.

1 answer

0 votes

Hello Lance Lyons,

Maybe, you could use the following URL with an script

http://localhost:8085/api/rest/updateAndBuild.action?buildKey=PROJ-PLAN

information Replace http://localhost:8085 with Base URL to your Bamboo instance

information Replace PROJ-PLAN with plan key you want to trigger

What the URL above does:

Basically, it will go through all plan branches in Bamboo (including the "master" plan) checking if there are changes in the repository and if finds it any, it will trigger a build against that branch.

Requirements:

  • You must set up a Remote Trigger in your Plan so it can accept request outside Bamboo
  • Requests must be originated from IPv4 (IPv6 will be rejected)

Kind regards,
Rafael P. Sperafico

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