tigger a bamboo build only if there are VCS changes?

lance_lyons
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.
December 8, 2016

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
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2016

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 Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events