What is a parent-child pipeline versus a multi-project (downstream) pipeline?
AdvancedConceptGitLab CI
Answer
A parent-child pipeline runs in the same project: a trigger job includes another YAML file and starts a child pipeline, useful for monorepos or dynamically generated config (a job writes YAML as an artifact, and trigger:include:artifact runs it). A multi-project pipeline uses trigger:project: to start a pipeline in another repo, for cross-service orchestration. Use strategy: depend so the trigger job mirrors the downstream status.
trigger-payments:
trigger:
include: services/payments/.gitlab-ci.yml
strategy: depend
rules:
- changes: [services/payments/**/*]
More on GitLab CI
How does GitLab CI/CD work at a high level?BeginnerWhat is a GitLab Runner and what executors exist?IntermediateWhat are the types of runners (shared, group, project) and tags?IntermediateHow do `rules:` work and how do they replace `only/except`?IntermediateWhat are workflow rules and how do they prevent duplicate pipelines?AdvancedHow do artifacts and cache differ in GitLab CI?Intermediate