Upstream and Downstream pipeline setup with Tags

Hi,

I am trying to setup an downstream multi projects with the tags. Here is my script -

build:
image: maven:latest
stage: build
tags: [XXXXX]
script:
- mvn clean -nsu compiler:compile -T 1C

trigger_pipeline_in_B:
stage: integration_test_downstream
tags: [XXXXX]
script:
- “curl --request POST --form token=XXXXXXXXXXXXXXXXXXXXX --form ref=Test https:///gitlab_api/api/v4/projects/76/trigger/pipeline/tags?tag_name=commonserviceDev&ref=Test”

I want to give the tags of project B in project A script. How can i do that?

GitLab introduced triggers a year and half ago to simplify downstream project builds. It was a premium feature but was moved into core in 12.8 (~ 9 months ago.)

Documentation available @ https://docs.gitlab.com/ee/ci/yaml/#trigger

Also, see: Easy way to enable/disable pipeline stages

2 Likes