Trigger build of dependent repos after pipeline builds

Is there a way to establish a child dependency in the configuration of a pipeline build, so that another BB repo with dependent projects get built automatically after the BB repo with the dependent code gets built. E.g. there are two repo, one that contains the project for a static library (JAR), and another repo that contains the project for a WAR. When there is a push to the JAR repo that does not involve method signature changes, the WAR project needs to be built to pick up the changes in the JAR. 

1 answer

1 accepted

This widget could not be displayed.

Hi @Sandip Ghosh,

There is no way of adding dependent plans at the current time. A workaround would be to make a commit back to the dependent repository as part of the original pipeline which will start a pipeline on the dependent repository. However, this is a feature that we're interested in and it would really help if you could create an issue on with the pipelines component.


Thanks for the response Tom, I have created a Improvement issue for the pipelines component:

Hi @Sandip Ghosh,

I have just thought of another option which is to post a pipeline creation request to the Bitbucket api for the dependent build after the rest of the pipeline has finished. The documentation for this can be found here




I have attempted to use that specific API endpoint however I constantly get "Resource not found" errors even though the API call /api/2.0/repositories/{username}/{repo_slug} does return data.

Anyone have any idea why?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

169 views 9 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