Skip to content

Demo preview. Courses, instructors, reviews and prices are sample content. Payments are simulated.

XOps, home

The Stages of a CI/CD Pipeline, Explained Simply

Build, test, package, deploy, verify. A walk through what each stage does and what it should catch.

Ananya Iyer · 5 min readSample article
Abstract illustration of a delivery pipeline

A pipeline is a sequence of automated checks that a change must pass before it reaches users. Each stage exists to catch a particular kind of problem as early, and as cheaply, as possible.

  • Build: does the code compile and do dependencies resolve?
  • Test: do unit and integration tests pass?
  • Package: produce one versioned artefact, such as a container image.
  • Deploy: release the same artefact to each environment in turn.
  • Verify: confirm health checks and key metrics after release.

Build once, deploy many times

The artefact tested in staging should be exactly the one released to production. Rebuilding for each environment means you are releasing something you never tested.

  • CI/CD
  • DevOps