An automatic line that builds, tests and ships every code change.
A CI/CD pipeline is an automatic line that takes every code change, builds it, tests it and (if everything is fine) ships it. No one has to remember the steps.
Without a pipeline, a release means someone follows a checklist by hand: build on a laptop, run some tests, copy files to a server. Hand steps are slow and easy to get wrong, so teams release rarely, and each release is big and scary.
A pipeline turns that checklist into code that runs the same way every time. A change goes in at one end. At each stage a check runs. If a check fails, the line stops and the author gets a red build. If all checks pass, the change moves forward.
| Term | What is automatic | Who decides to release | Needs |
|---|---|---|---|
| Continuous Integration | Build and test on every merge | A person, later | Good automated tests |
| Continuous Delivery | Everything up to a release-ready package | A person presses a button | Tests plus a repeatable release process |
| Continuous Deployment | Everything, including the release | Nobody: every green change ships | Strong tests, monitoring and fast rollback |
| Stage | What it does | Typical speed |
|---|---|---|
| Lint and static analysis | Checks style and finds suspicious code without running it | Seconds |
| Build | Compiles the code and builds one versioned package (artifact or image) | Minutes |
| Unit tests | Test small pieces of code in isolation | Minutes |
| Integration tests | Test several parts working together, often with real databases | Slower |
| Security scans | Look for known vulnerable libraries, leaked secrets and unsafe code | Minutes |
| Staging and smoke tests | Run the package in a production-like place and check the basics | Minutes |
| Deploy | Roll the same package out with a strategy such as rolling or canary | Minutes |
| Post-deploy checks | Watch error rates and latency, and roll back if needed | Ongoing |
A simplified model. Stage times and the cost multipliers are made-up round numbers for illustration, not measurements. A real pipeline also builds the package once and promotes the same one through every stage.
| Term | Meaning in easy words |
|---|---|
| CI | Continuous Integration: merge often, and build and test every change automatically |
| CD | Continuous Delivery (always ready to release) or Continuous Deployment (releases by itself) |
| Pipeline | The ordered set of automatic stages a change goes through |
| Stage / job | One step in the pipeline, such as build or test |
| Artifact | The built, versioned package that gets deployed (an image, a JAR, a zip) |
| Gate | A check that must pass before the change moves on |
| Flaky test | A test that sometimes fails for no real reason |
| Smoke test | A tiny check that the basics work after a deploy |
| Pipeline as code | The pipeline described in a file stored with the source code |
| Trunk-based development | Everyone merges small changes into one main branch very often |
| GitOps | Git is the source of truth, and a tool keeps the running system equal to it |
| Choice | We gain | We lose |
|---|---|---|
| Many checks | More mistakes caught before users see them | A slower pipeline and more upkeep |
| Few checks | Very quick feedback | More bugs reach production |
| Continuous delivery | A human decides when to release | A wait, and a manual step to forget |
| Continuous deployment | Fastest path to users | Requires very trusted tests and fast rollback |
| Run all tests on each change | Complete safety | Long waits, so use test selection or parallel runs |
| Hosted CI | No servers to run | Less control, and cost per minute |