It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can a pipeline trigger from multiple repositories?

I'm currently working on a project with Bitbucket Cloud that uses Google Repo (https://code.google.com/p/git-repo/) to manage multiple repositories within the project.  Is it possible to configure pipelines such that a commit to any repository in the project will trigger "the build"?  I'm used to doing this with Bamboo, but I'm not sure how to set this up with pipelines in the cloud. 

2 answers

The project is build on Yocto (https://www.yoctoproject.org/) which has layers from multiple repositories.  The individual repositories can't be built independently.  I'm using Google's Repo tool to fetch all of the repositories before running the build script that is in one of the repositories, but needs all of the repositories to build successfully.  

My goal is to run the one build if any of the repositories get a commit pushed to them.  

The REST API might be a good solution.  I'll look into that. Thanks. 

1 vote
Joshua Tjhin Atlassian Team Jan 26, 2017

Could you explain your set up a bit more and why you would like to trigger another repository from a push?

A possible way is to trigger another repository is by using our REST API https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pipelines/#post

from your pipeline steps.

Joshua, Shaun,

If trigger through the API using an app password, what would be the permissions given to the app password?

Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

Contest: Share your custom Bitbucket Pipe and win

Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...

550 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you