pipeline source
The predefined variable CI_PIPELINE_SOURCE, which says what created a pipeline, such as push, merge_request_event, schedule or web.
In more detail
Rules test it to decide which pipeline type a job joins, for example a job that runs only in merge request pipelines. A child pipeline has the source parent_pipeline, and a pipeline started through the API has the source api.
Related terms
- predefined CI/CD variables — Variables GitLab sets in every job, such as CI_COMMIT_BRANCH, CI_COMMIT_SHA and CI_REGISTRY_IMAGE, describing the pipeline, the commit and the project.
- merge request — GitLab's proposal to merge one branch into another, where the change is reviewed, discussed, tested and approved.
Taught in
- The Merge Request That Deployed To Production — GitLab Certified CI/CD Associate Exam Prep
- From Push To Runner: How GitLab Starts A Pipeline — GitLab Certified CI/CD Associate Exam Prep
- Rules, Workflow Rules And The Legacy only And except — GitLab Certified CI/CD Associate Exam Prep
- Reuse With extends And include, And What Survives The Merge — GitLab Certified CI/CD Associate Exam Prep
- Parent, Child And Multi-Project Pipelines — GitLab Certified CI/CD Associate Exam Prep
- CI/CD Variables: Where Values Come From, And Which One Wins — GitLab Certified CI/CD Associate Exam Prep
- Environments, Review Apps And Deployments — GitLab Certified CI/CD Associate Exam Prep
- Recall Sprint: Knowing It Cold, With No Docs And No AI — GitLab Certified CI/CD Associate Exam Prep