Hi Community,
i do have a Bitbucket Repo (Repo A) containing several Submodules (Repo B & Repo C)
Is it possible, that the Pipeline of Repo A will be triggered, when a Commit to Repo B or Repo C was done?
Best regards
Simon
Hi @Simon
I suppose your Repo A (main repository) will be triggered every time you update the links to commits present in your git submodules. In theory, every time you want those commits to be considered in the main repo you should update the links.
Usually, we use submodules when we have an independent part of the software (self-contained) that does not need to have the link updated every time in the main repository.
If you are not updating the main repository because you need to make sure the sub repo changes are tested first, you may want to create another branch in the main repository where you can update the links every time and test before merging the changes to the master branch (or whatever you call the default branch).
If you don't want to change your workflow to get the main repository triggered, you may want a different approach (like a workaround) which is creating a custom pipeline step and using a REST API to call this step from your sub repos when new commits arrive.
These are the references you can use:
I hope it helps.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.