Skip to content
BENIBIX Learn

Pipeline Stage

Development☁️ DevOps & CloudCI/CD

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

A pipeline stage is one step of a CI/CD pipeline, like build, test or deploy. Each stage holds one or more jobs, and a job is one task, like running the unit tests. Jobs in the same stage can run side by side. Stages run in order. If a job fails, the stages after it usually do not run.

Example code

yaml
stages:
  - build
  - test

unit-tests:
  stage: test
  script:
    - npm test
A GitLab file with two stages and one job in the test stage.
Three stages in a row, each holding jobs that run side by side.

Common mistake

Putting every check in one long job. Split them, so they run side by side and fail clearly.

Key takeaways

  1. 1
    In order. Build, then test, then deploy.
  2. 2
    Jobs inside. Each job is one task.
  3. 3
    Stop on failure. Later stages wait for success.