DevOps Lifecycle Explained: The Eight Stages From Plan to Monitor

DevOps Lifecycle Explained: The Eight Stages From Plan to Monitor

The DevOps lifecycle explained in plain terms: it is the continuous loop that takes an idea from planning through coding, building, testing, releasing, deploying and operating, and back again through monitoring and feedback. The central question is what actually happens at each stage, and the answer is a cycle of eight stages where every stage feeds the next and monitoring feeds everything that came before it.

The lifecycle is usually drawn as an infinity symbol, and the shape is the point. Unlike the old waterfall model, where work moved in one direction and rarely came back, the DevOps lifecycle never ends: each release produces feedback that shapes the next round of planning.

This guide walks through all eight stages, the tools and practices that belong to each, and the mistakes that break the loop. It is written for teams that want to understand the whole cycle before they try to improve one part of it.

Key takeaways

  • The DevOps lifecycle is a continuous loop of eight stages: plan, code, build, test, release, deploy, operate and monitor.
  • Each stage feeds the next, and monitoring feeds back into planning, so the cycle improves with every release.
  • Automation carries work between stages; manual handoffs between stages are where delays and errors creep in.
  • Short cycles beat long ones: small changes move through the loop in hours, not weeks.
  • A weak stage slows the whole loop, so find the bottleneck before optimising the stage that already works.

What the DevOps lifecycle is

The DevOps lifecycle is a model of how software moves from an idea to a running service and back again. It gives teams a shared map of the work, so that when someone says “the release is stuck”, everyone can agree on which stage is stuck and why.

Different sources group the stages slightly differently — some use seven, some use eight — but the shape is the same. Work is planned, written, built, tested, released, deployed, operated and monitored, and the monitoring produces the evidence that drives the next plan. Best for: teams that need a shared vocabulary for where their delivery process is slow or fragile.

The lifecycle is not a project plan with a finish date. It is a loop that keeps turning for as long as the service exists, which is why the practices around it — automation, small batches and fast feedback — matter more than any single stage.

Stage 1: Plan

Planning is where work is chosen and shaped before any code is written. The team agrees what problem it is solving, how it will know the work succeeded, and what it will deliberately leave out.

Good planning in a DevOps team is lightweight. Work is broken into small pieces that can move through the whole loop in days, not months, and each piece has a clear measure of success.

Stage 2: Code

Code is where developers write the change and its tests, working in short-lived branches and merging to the shared main branch at least daily. This is the continuous integration habit in action, and it is what keeps the main branch always in a working state.

Writing the tests alongside the code matters more than writing them afterwards. A test written after the fact tends to confirm what the code already does, while a test written first forces the developer to decide what the code should do.

Stage 3: Build

Build is where source code becomes a runnable artefact: compiled, packaged and versioned, ready to be deployed anywhere. The build runs automatically whenever code is merged, so a broken build is discovered within minutes, not at release time.

A good build is reproducible. Given the same source and the same build definition, it produces the same artefact every time, which is what makes it possible to trust that what was tested is what will be deployed. Our guide to AI CI/CD pipelines covers the build and test stages in detail.

Stage 4: Test

Test is where the built artefact is checked automatically before it can move forward. Unit tests run first because they are fast; integration tests follow, checking that components work together; and a small number of end-to-end tests check the journeys users actually take.

The test stage is a gate, and a gate that always waves work through is not a gate at all. If the pipeline is green but production still breaks regularly, the tests are not checking the right things, and the team should treat that as a gap to fix rather than as bad luck.

Testing does not stop at functional correctness. Performance tests, security scans and accessibility checks can all run in the pipeline, catching problems while they are still cheap to fix.

Comparing the eight stages

Stage Main activity Key output Typical tools
Plan Choose and shape the work Small, measurable tasks Jira, Linear, Azure Boards
Code Write code and tests Merged, reviewed change Git, GitHub, GitLab
Build Compile and package Versioned artefact Maven, Gradle, Docker
Test Verify behaviour automatically Passing test suite JUnit, pytest, Selenium
Release Approve and prepare the change Releasable package CI/CD pipelines, feature flags
Deploy Put the change into production Live service, new version Kubernetes, Argo CD, Terraform
Operate Run and support the service Stable, available system Cloud consoles, runbooks
Monitor Observe and learn Metrics, alerts, feedback Prometheus, Grafana, Datadog

Best for: teams mapping their own process, using this table to name which stage is the bottleneck. Best for: new teams, starting with the plan, code, build and test stages before investing in deployment automation.

A circular workflow diagram on a whiteboard showing the stages of a software delivery loop
The lifecycle is a loop, not a line: monitoring feeds what the team learns back into the next round of planning.

Stage 5: Release

Release is where a tested change is approved and prepared for production. In a continuous delivery setup, this is the point where a human decides whether to ship; in continuous deployment, the decision is automatic and the stage is effectively invisible.

Release management has changed beyond recognition under DevOps. The old model was a monthly release window with a change board and a long checklist. The new model is a small change, already tested, released on demand — sometimes many times a day — with feature flags controlling who sees it.

Feature flags deserve a mention here because they separate releasing code from releasing a feature. Code can be deployed to production while the feature stays hidden, then switched on for a small group of users, and switched off instantly if something goes wrong.

Stage 6: Deploy

Deploy is where the released change reaches production. Modern deployment is automated and incremental: rolling updates replace a few servers at a time, blue-green deployments switch traffic between two identical environments, and canary releases send the new version to a small share of users first.

The choice of strategy depends on the risk. A canary release is ideal for a change that could affect users in ways tests cannot predict, because only a small group is exposed while the team watches the metrics. A blue-green deployment suits changes that need an instant, clean rollback.

Whatever the strategy, deployment should be reversible in minutes. Our guide to cloud deployment models explained compares the main approaches in detail.

Stage 7: Operate

Operate is where the service runs and the team keeps it running. It covers scaling, patching, backup, incident response and the everyday work of keeping users happy.

In a DevOps team, operating is not a separate department’s job. The team that built the service shares responsibility for running it, which is why the service tends to be built with operability in mind: clear logs, sensible defaults, and a runbook that reflects how the system behaves.

Stage 8: Monitor

Monitor is where the team watches the live service and learns from it, and it is the stage that closes the loop. Metrics, logs and traces show how the service behaves in the real world, and that evidence feeds straight back into planning the next change.

Monitoring should start with the user’s experience: availability, error rates and response times. Infrastructure numbers matter, but they matter because they explain the user-facing numbers, not for their own sake.

Feedback from monitoring is what makes the lifecycle a loop rather than a line. A slow endpoint spotted in production becomes a task in the next plan; a spike in errors becomes an investigation; a pattern of incidents becomes a design change. Without this stage, the team is shipping blind.

Where the lifecycle breaks down

The most common break is between stages: a handoff where work waits for someone else. Code waits for a test environment, a release waits for an approver who is on leave, a deployment waits for a change window. Each wait adds days and hides the real problem, which is that the stages are not connected.

The second common break is a stage that is skipped entirely. Teams that deploy without monitoring cannot tell whether a release helped or harmed users, and teams that plan without monitoring feedback keep building the wrong thing, efficiently.

The third break is treating the lifecycle as a sequence of departments rather than a loop owned by one team. When each stage belongs to a different group with different goals, the loop becomes a relay race where the baton is dropped at every exchange. Our guide to GitOps explained shows how one team can keep the deploy and operate stages connected through a single source of truth.

DevOps lifecycle checklist

  • Work is planned in small pieces, each with a clear measure of success.
  • Code is merged to the main branch at least daily, with review and tests alongside.
  • Builds run automatically on every merge and produce a versioned, reproducible artefact.
  • Tests run automatically at every stage, and a failing pipeline stops the change.
  • Releases are small, frequent and controlled with feature flags where useful.
  • Deployments are automated, incremental and reversible within minutes.
  • The team that built the service shares responsibility for operating it.
  • Monitoring covers the user experience first, with alerts that reach the owning team.
  • Monitoring feedback is reviewed in planning, so the loop actually closes.
  • The bottleneck stage is identified and improved before any other stage is optimised.

Frequently asked questions

How many stages are in the DevOps lifecycle?

Usually eight: plan, code, build, test, release, deploy, operate and monitor. Some models merge release and deploy, or build and test, but the shape of the loop is the same in every version.

Is the DevOps lifecycle the same as CI/CD?

No. CI/CD covers the code, build, test, release and deploy stages. The full lifecycle also includes planning, operating and monitoring, which is where the feedback that improves the next cycle comes from.

How long should one cycle of the lifecycle take?

For a small change, hours. For a feature, days. The point of the lifecycle is that it turns continuously, so there is no single cycle length: small changes move fast and larger pieces of work move through the same loop in more turns.

What is the most important stage?

Monitoring, because it closes the loop. Without it, the team has no evidence about what its releases actually did, and planning becomes guesswork. That said, the most urgent stage to fix is whichever one is currently the bottleneck.

Do small teams need all eight stages?

Yes, but the stages can be lightweight. A small team still plans, codes, builds, tests, releases, deploys, operates and monitors; it just does each stage with simpler tools and fewer formal steps than a large enterprise would.

What tools are used at each stage?

Common choices include Jira or Linear for planning, Git and GitHub for code, Maven or Docker for builds, JUnit or pytest for tests, Kubernetes and Argo CD for deployment, and Prometheus and Grafana for monitoring. The tools matter less than the loop they support.

Latest articles

Scroll to Top