.pre and .post stages
Two stages every GitLab pipeline has: .pre always runs first and .post always runs last.
In more detail
They exist even when the stages list does not name them. A pipeline that would hold only .pre and .post jobs is not created.
Related terms
- pipeline — An automated sequence of steps, such as build, test, scan and publish, that runs on every change.
- .gitlab-ci.yml — The YAML file at the root of a GitLab repository that defines a project's pipelines: its jobs, stages, rules and global keywords.
Taught in
- Jobs And Stages: Who Waits, Who Runs, Who Gets Skipped — GitLab Certified CI/CD Associate Exam Prep
- Adding GitLab's Security Scanners To A Pipeline — GitLab Certified CI/CD Associate Exam Prep
- Debugging Pipelines: The Graph, The Errors, The Logs — GitLab Certified CI/CD Associate Exam Prep
- Faster Pipelines: Minutes You Can Win Back — 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
- Final Mock And Review: One Question Short — GitLab Certified CI/CD Associate Exam Prep