Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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 I trigger a rebuild of parent projects when a submodule is updated?

Let's say I will have Proj1 and Proj2 repos, which use shared files from the Proj-Common repo. So Proj1 and Proj2 will have Proj-Common as a submodule.

Git now supports having submodules follow the tip of a branch instead of a specific commit, using "git submodule add -b work-in-progress dependencies/proj-common"

So I can have Proj1/2 follow the "tip" of Proj-Common's branch work-in-progress, and when new commits are made in work-in-progress, someone who checked out Proj1 and Proj2 can change the Proj-Common commit they're pointing to by running "git submodule update --remote". However this is a manual task.

Is there a way to configure Pipelines so that when a new commit is made to Proj-Common/work-in-progress branch, it triggers builds of both Proj1 and Proj2 using the latest commit of work-in-progress, to ensure the changes in the dependency haven't broken the builds of the parent projects?

0 answers

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

110 views 2 4
Read article

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