What is a CI/CD pipeline in DevOps?

CI/CD and software delivery — Photo by Brett Sayles

Photo by Brett Sayles on Pexels.

What is a CI/CD pipeline in DevOps?

CI/CD stands for Continuous Integration and Continuous Delivery (or Continuous Deployment). Together they describe an automated path from code changes to software that users can run—safely, repeatedly, and with less manual work.

Continuous Integration (CI)

Continuous Integration is the practice of merging small code changes often, and automatically verifying that the combined codebase still works.

Typical CI steps include:

  1. Trigger — A developer pushes a branch or opens a pull request.
  2. Build — The project is compiled or dependencies are installed (e.g. composer install, npm ci).
  3. Test — Unit tests, static analysis, and linters run. Failures block the merge.
  4. Report — Results appear in the PR or chat so the team sees what broke.

The goal is to catch integration problems early, when they are cheaper to fix, instead of only during a big “release week.”

Continuous Delivery vs Continuous Deployment

People often use CD loosely. It helps to split it:

Many teams use delivery for risky domains and deployment for internal tools or low-risk services.

What is a “pipeline”?

A CI/CD pipeline is the automation workflow that strings these steps together: build → test → (optional) security scan → package → deploy to staging → deploy to production.

It is usually defined as code (YAML in GitHub Actions, GitLab CI, Jenkinsfile, etc.) so the process is versioned, reviewable, and repeatable.

Why teams adopt CI/CD

Common pipeline stages

Stage Purpose
Build Produce runnable artifacts (containers, bundles, binaries).
Test Automated tests and quality checks.
Security Dependency scanning, SAST, secrets detection (as appropriate).
Staging deploy Validate in an environment similar to production.
Production deploy Roll out with blue/green, canary, or rolling updates.

Exact stages depend on your stack, compliance needs, and how often you ship.

Summary

A CI/CD pipeline in DevOps is the automated backbone that turns code commits into tested, deployable, and optionally production-ready software. CI keeps the codebase integrated and healthy; CD shortens and standardizes the path to users—whether you stop at “ready to release” or fully automate production deploys.


Featured image: stock photo licensed via Pexels; credit included in site image metadata where applicable.

Related reading

Sources