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
Accepted answer
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
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 ...

58 views 3 2
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