From Jez Humble and David Farley's Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation (2010), which named the practice and introduced the deployment pipeline.
Holds that software should be kept always in a releasable state, with every change moving through an automated pipeline to production, so releases become routine, low-risk events the business can time as it likes.
Releasing more often only pays once the release itself is automated
A product team makes 40 changes a month, and each change has a 2 percent chance of being faulty. Set how often it releases and how far the release is automated. Under manual release the monthly hours soar as the cadence rises. With a pipeline they stay low, which is why the practice says to bring the pain forward. Illustrative.
The chosen settingAll releases manual
An example
A subscription software company releases once a month, in an evening that takes the whole team sixteen hours. Forty changes go out together, something breaks about half the time, and finding which change caused it takes half a night. Customers wait for fixes and the engineers dread release day.
The head of engineering funds a deployment pipeline. Every change is built, tested, and deployed to a production-like environment automatically, and a release becomes a button that anyone on the team can press. Releases move to weekly, with ten changes in each. The chance that a release breaks something falls to about one in five, a fault is traced to one of ten changes instead of forty, and the hours the team spends each month on releasing and repairs drop from about twenty-three to about five. The business now times releases by commercial need instead of by how long the team needs to recover.
The core idea
Continuous delivery means being able to put any kind of change, a feature, a configuration setting, a fix, or an experiment, into users' hands quickly and safely, month after month. Deploying becomes a routine event the business can call on demand. That depends on keeping the software deployable at all times, which removes the long stretch of integration, testing, and hardening that usually follows development. The central device is the deployment pipeline, which manages a change from check-in to release through automated build, test, and deployment.
Fowler separates it from continuous deployment, in which every change that passes goes into production automatically. With continuous delivery the team can release at any time and may choose not to. The idea beyond the tooling is a rule of thumb the practice's own site gives: if it hurts, do it more often, and bring the pain forward. Frequent releases force the team to fix what makes releasing painful, and small batches make faults easy to find.
The thinking behind it
Jez Humble Jez Humble and David Farley published Continuous Delivery in 2010, in Addison-Wesley's Signature Series edited by Martin Fowler, and it won a 2011 Jolt Excellence Award. Their starting problem was the release itself: getting finished software to users was painful, risky, and slow, so teams released rarely and each release carried more risk. Humble has kept the argument current on continuousdelivery.com. Fowler calls the book "the foundation book on this topic" and points to Humble's account of why he and Farley chose the name.
David Farley David Farley co-wrote the book with Humble, and together they built it around one device, the deployment pipeline, which carries every change through automated build, test, and deployment and gives developers, testers, and operations staff one shared view of each release. The book also reaches past the code to the infrastructure, data, configuration, and governance that decide whether an automated release can be trusted.
Where it sits in the layers
Continuous Delivery sits in Layer 6, the improvement philosophies, because it prescribes how a software organization should improve its flow of work, and it supplies a test, the pain of releasing, for knowing where to start. It rests on the logic of Feedback Loops in Layer 1 and borrows the case for small batches from Lean Thinking, its neighbor in Layer 6. It is carried out by DevOps in Layer 8 and measured by DORA Metrics. The common mistake is asking it to settle what to build. A pipeline gets changes out reliably, whatever they are. It cannot tell whether a change is worth releasing.
How organizations put it to work
A head of engineering owns the pipeline, with a platform or release engineering group building and maintaining it and every team contributing tests. It changes structure by moving responsibility for release from a gatekeeping group to the teams, and by treating a broken pipeline as the first priority. It changes decisions: the business chooses release timing, and engineers decide only whether the software is ready. It changes measures: lead time from commit to production, deployment frequency, change failure rate, and time to restore service.
Sustaining it takes investment in automated tests and in environments that match production, and discipline about fixing a failing build before anything else.
In the first year, a leader should expect the first pipeline for one product to take a few months, long arguments about which manual approvals can go, and a visible rise in the number of tests the team needs to write. The business gains in the speed of getting fixes to customers, in releases that stop being a risk, and in less reliance on the few people who know how to push a release through safely.
Where it goes wrong
The first failure is the pipeline without the practice. The company installs tooling while code still sits on long branches and releases still wait for a manual freeze. The sign is a pipeline that runs and a release process that is unchanged.
The second is automating slow, weak tests. If the suite takes hours or fails at random, people stop trusting it and learn to ignore red builds. The sign is reruns and overrides as a routine.
The third is treating frequency as the goal. Releasing often is a means. A team can release daily and still ship changes nobody wanted, and in regulated or hardware-linked products the business may rightly choose slower releases. The sign is a count of deployments reported as success with no view of what they achieved. Raising the cadence while release steps are still manual is the reverse mistake: the effort multiplies with every release.
Related and rival frameworks
- Trunk-Based Development. A branching practice that makes continuous delivery workable by keeping the code integrated. Pick it when merges are the first pain.
- DevOps. The wider philosophy of shared ownership between development and operations. It is the better start when the first problem is the handoff more than the release.
- DORA Metrics. Four measures of delivery performance. Use them to see whether continuous delivery is paying off.
Go to the source
- Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation, Addison-Wesley Professional, 2010
- Continuous Delivery (website), continuousdelivery.com, 2010
- Continuous Delivery, martinfowler.com, 2013