☁️Pipeline Stage
Also known as CI Stage, Pipeline Job, CI Job, Build Job
One step of a pipeline, like build, test or deploy. It holds jobs.
Think of it like
Think of it like rooms in a car wash. The car goes through soap, then rinse, then dry, in that order.
Example
Jack's pipeline has three stages. The test stage runs unit tests and a linter side by side, then deploy waits for both.
Why it matters
Stages show where a change failed. They also stop a bad build from going live.
Definition
Example code
yaml
stages:
- build
- test
unit-tests:
stage: test
script:
- npm testCommon mistake
Key takeaways
- 1In order. Build, then test, then deploy.
- 2Jobs inside. Each job is one task.
- 3Stop on failure. Later stages wait for success.