Reputation: 31
The example for the multi project pipeline with mirroring status ( https://docs.gitlab.com/ee/ci/multi_project_pipelines.html#mirroring-status-from-triggered-pipeline) doesn't work:
trigger_job:
trigger:
project: my/project
strategy: depend
Leads to an error: "This GitLab CI configuration is invalid: jobs:trigger_pipeline_in_another_repo config contains unknown keys: trigger"
config:
trigger_pipeline_in_another_repo:
stage: trigger_pipeline_in_b
script:
- apt-get update && apt-get upgrade -y
- apt-get install curl -y
- curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master http://35.184.231.241/api/v4/projects/8/trigger/pipeline
trigger:
project: root/isolated_pipeline
strategy: depend
Upvotes: 3
Views: 2142
Reputation: 4366
Multi-project pipelines
are only supported for paid versions.
Introduced in GitLab Premium 9.3.
Available in GitLab Premium, GitLab.com Silver, and higher tiers
If you use free GitLab Enterprise Edition then trigger is not supported in it.
You can check your Gitlab version by going to help page <Gitlab url>/help
Upvotes: 3