Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to trigger a downstream pipeline on a tagged branch in gitlab multi project pipeline?

I would like to trigger a GitLab project, but instead of using a branch, I would like to use a specific tag. How can this be achieved?

The following triggers the develop branch of some-project:

bridge:
  stage: bridge
  trigger:
    project: some-project
    branch: develop

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can use the parent-child pipeline feature with the ref keyword, like this:

bridge:
  stage: bridge
  trigger:
    include:
      - project: some-project
        ref: 'your-tag'
        file: '.gitlab-ci.yml'
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading