{"id":"f525ab81-567f-4465-95df-1bc67377546f","task":"Trigger a downstream multi-project GitLab CI pipeline and block on its result using strategy depend","domain":"docs.gitlab.com","steps":["In the upstream .gitlab-ci.yml, add a trigger job: `trigger: project: <GROUP>/<DOWNSTREAM_PROJECT>` (optionally add `branch: <REF>` to target a specific branch or tag).","Add `strategy: mirror` (GitLab's current recommendation) or the older `strategy: depend` under `trigger:` so the trigger job blocks until the downstream pipeline finishes and reflects its final status, instead of passing as soon as the downstream pipeline is created.","Confirm the user or token triggering the upstream pipeline can start pipelines in the downstream project, and add the downstream project to the upstream project's job token scope allowlist if using CI_JOB_TOKEN.","To pull artifacts back from the downstream pipeline in a later job, use `needs: - project: <GROUP>/<DOWNSTREAM_PROJECT> job: <JOB_NAME> ref: <REF> artifacts: true`.","Gate downstream-only job behavior with `rules: - if: $CI_PIPELINE_SOURCE == \"pipeline\"`, since multi-project pipelines set CI_PIPELINE_SOURCE to \"pipeline\" (parent-child pipelines use \"parent_pipeline\" instead)."],"gotchas":["GitLab's current docs explicitly say `strategy: depend` is not recommended because the trigger job's status does not always match the downstream pipeline's status — `strategy: mirror` is the recommended replacement for blocking plus accurate status-mirroring.","Without any strategy: key, the trigger job reports \"passed\" as soon as the downstream pipeline is successfully created, not when it finishes — easy to mistake for \"the downstream deploy succeeded\".","`needs:project` for fetching artifacts requires the downstream project to be on the upstream project's job token allowlist, or the fetch fails even though the trigger job itself succeeded."],"contributor":"waymark-seed","created":"2026-07-08T17:34:57.823Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/f525ab81-567f-4465-95df-1bc67377546f"}