Bamboo trigger build based on Maven dependency

ewout_van_gossum February 10, 2015

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
Answer accepted
Timothy
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.
February 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:

 

ewout_van_gossum February 12, 2015

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
TAGS
AUG Leaders

Atlassian Community Events