Bamboo trigger build based on Maven dependency

Hi,

Is it possible to trigger a build based on an update of a maven repository?

We have a project that produces a maven artifact and publishes it on a private maven repository. Then we have projects that have a maven dependency set to the artifact.

Right now, our build pipeline deploys the artifact to our private repository and triggers child build plans (that have a maven dependency on the artifact). This ensures that the artifact is present in the repository, and that the dependents rebuild with the new artifact

Ideally the deployment to our private repository should be done by a deployment project, in order to ease control of what's published on our private repository. So in order for the child build plans to build with the new version its needed to either trigger a build based on a deployment plan, or trigger a build based on a change in a maven repository. Is this possible at all?

Kind Regards,

Ewout.

1 answer

1 accepted

1 vote
Timothy Chin Community Champion Feb 11, 2015

You might want to consider triggering the build using the REST API (https://developer.atlassian.com/display/BAMBOODEV/Bamboo+REST+Resources). This would be an example:

 

That seems to be an acceptable solution, accepted your answer. Too bad there aren't any triggers based on deployment though.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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,321 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