DevOps

DevOps Lifecycle Deep Dive

· Pavan Y N · devops, cicd, monitoring, observability

The DevOps lifecycle is a continuous process that brings development and operations together to deliver software faster and more reliably. EduGeek explains each stage of the loop, what automation belongs in it, how CI/CD (continuous integration and continuous delivery) connects the stages, and which metrics show whether the loop is working.

# What is the DevOps lifecycle?

The DevOps lifecycle is an iterative process usually drawn as an infinity loop, with development on one side and operations on the other. A common depiction, used by IBM among others, splits it into eight stages: plan, code, build, test, release, deploy, operate, and monitor. No standards body fixes the number of stages, and some diagrams merge or rename them, but the idea is the same: the output of each stage feeds the next, and what is learned in production flows back into planning.

Security is not a separate stage in that diagram. DevSecOps adds security work to every stage, moving it earlier (threat modeling during planning, scanning during build and test) and later (runtime protection and incident response). The National Institute of Standards and Technology (NIST) Secure Software Development Framework (SP 800-218, version 1.1) is a useful checklist for that work, with four practice groups: prepare the organization, protect the software, produce well-secured software, and respond to vulnerabilities.

# The 8 stages explained

## 1. Plan

Planning is where work is defined and prioritized. Teams:

  • →Define requirements and user stories
  • →Prioritize features and create backlogs
  • →Estimate effort and allocate people
  • →Set up work tracking and communication channels

Tools: Jira, Azure Boards, Trello, Asana

Best practices:

  • →Involve both development and operations in planning
  • →Break work into small batches that can ship independently
  • →Record decisions and the reasons for them
  • →Include operational requirements, such as alerts and rollback, in the definition of done

## 2. Code

Developers write, review, and merge changes.

  • →Implement features from the requirements
  • →Follow shared coding standards
  • →Keep all code, configuration, and infrastructure definitions in version control
  • →Review changes before they merge

Tools: Git, GitHub, GitLab, Bitbucket

Best practices:

  • →Commit small, focused changes with meaningful messages
  • →Keep branches short-lived and merge to the main branch often
  • →Protect the main branch and require review
  • →Keep documentation next to the code

Branching and review habits are covered in Git version control mastery.

## 3. Build

The build stage turns source code into deployable artifacts.

  • →Compile source code and resolve dependencies
  • →Create container images or packages
  • →Produce versioned, immutable artifacts

Tools: Maven, Gradle, npm, Docker

Best practices:

  • →Automate the build completely so that it runs the same way on every machine
  • →Keep builds fast; a ten-minute target is a common rule of thumb
  • →Cache dependencies and layers
  • →Version every artifact and never overwrite one that has been published

## 4. Test

Automated tests give fast feedback on quality, security, and performance.

  • →Unit tests for individual components
  • →Integration tests for interactions between components
  • →Security scans of code, dependencies, and images
  • →Performance and load tests

Tools: JUnit, pytest, Selenium, SonarQube

Best practices:

  • →Treat coverage as a signal, not a goal; a coverage number says which code ran, not whether it was checked
  • →Run tests in parallel and fail fast
  • →Keep test code to the same quality standard as production code
  • →Fix or delete flaky tests instead of retrying them indefinitely

## 5. Release

The release stage prepares a validated change for deployment.

  • →Create a release candidate from a tested artifact
  • →Obtain any required approvals
  • →Generate release notes
  • →Tag the release in version control

Tools: Jenkins, GitLab CI/CD, GitHub Actions, Azure DevOps

Best practices:

  • →Automate release preparation so that a release is a repeatable action rather than an event
  • →Use semantic versioning
  • →Keep a short checklist for the manual parts that remain
  • →Make the release record traceable to a commit

The Jenkins CI/CD guide shows how a pipeline server automates these stages.

## 6. Deploy

Deployment moves a released artifact into an environment.

  • →Deploy to staging for validation
  • →Run smoke tests
  • →Deploy to production using a rolling, blue-green, or canary strategy
  • →Keep the previous version ready for rollback

Tools: Kubernetes, Docker, Ansible, Terraform, Argo CD, Flux

Best practices:

  • →Automate deployments completely
  • →Define infrastructure as code so environments are reproducible
  • →Make rollback a tested, one-step action
  • →Release in small changes, at any time of day; the DevOps Research and Assessment (DORA) research on continuous delivery describes the goal as releasing on demand, including during normal business hours, without impacting users

The GitOps guide covers deployments driven by a Git repository.

## 7. Operate

Operations teams run the live service.

  • →Keep infrastructure and services healthy
  • →Manage scaling and capacity
  • →Respond to incidents and outages
  • →Patch and maintain the platform

Tools: Kubernetes, AWS, Azure, Google Cloud

Best practices:

  • →Use autoscaling where load varies
  • →Manage configuration as code
  • →Keep runbooks for common incidents
  • →Rehearse failure with game days or chaos experiments

## 8. Monitor

Monitoring closes the loop by showing how the software behaves in production.

  • →Track application performance and error rates
  • →Watch infrastructure resources
  • →Collect and analyze logs and traces
  • →Alert on symptoms that affect users

Tools: Prometheus, Grafana, the Elastic Stack, Datadog, OpenTelemetry

Best practices:

  • →Alert on user-visible symptoms rather than every internal metric
  • →Build dashboards for the questions people actually ask during incidents
  • →Instrument code with a vendor-neutral standard such as OpenTelemetry, a CNCF project for producing and collecting traces, metrics, and logs
  • →Feed what monitoring reveals back into planning

The Prometheus monitoring guide goes deeper on metrics and alerting.

# The continuous feedback loop

The loop is powerful because each stage produces feedback for the others:

  1. •Development feedback: code review and unit tests respond within minutes.
  2. •Build feedback: compile errors and dependency problems surface early.
  3. •Test feedback: automated tests confirm behavior and catch regressions.
  4. •Deployment feedback: the success or failure of a rollout shows whether the delivery process is sound.
  5. •Production feedback: real usage, errors, and performance data drive the next round of planning.

# CI/CD: the engine of the lifecycle

The terms are often blurred, so it helps to separate three practices:

  • →Continuous integration (CI): developers merge code into a shared repository frequently, and each merge triggers an automated build and tests. Problems surface while the change is still small.
  • →Continuous delivery: every change that passes the pipeline is kept in a deployable state, so it can be released on demand. DORA defines it as the ability to release changes of all kinds on demand, quickly, safely, and sustainably.
  • →Continuous deployment: every change that passes the pipeline is deployed to production automatically, without a human gate. DORA treats it as a separate practice from continuous delivery and recommends starting with continuous delivery, because continuous deployment does not suit every kind of software (firmware and mobile apps, for example).

A team can practice continuous delivery with a manual approval before production and still be fully automated up to that point.

# A change moving through the loop

The following walk-through is illustrative rather than a case study from a specific company. A developer opens a pull request for a small checkout fix, planned as one backlog item in the plan stage. In code, a teammate reviews it and it merges to the main branch the same day. The build stage compiles it and produces a container image tagged with the commit. In test, unit tests, a dependency scan, and a smoke test run in parallel. The release stage tags the image and records it, and in deploy a canary receives a small share of traffic while the pipeline watches error rate and latency. In operate, the platform scales the service as traffic shifts, and in monitor an alert on checkout errors would page the on-call engineer, who rolls back by reverting a commit. The same data then informs the next planning session.

# Common challenges and solutions

## Challenge 1: Resistance to change

Solution: Start with one team and one service, show the result, and involve the people affected from the beginning.

## Challenge 2: Tool overload

Solution: Choose tools that integrate well and retire overlapping ones. A shared platform for the common path reduces the number of decisions each team must make.

## Challenge 3: Lack of automation

Solution: Automate incrementally, starting with the steps that are most manual, most frequent, or most error-prone.

## Challenge 4: Siloed teams

Solution: Set shared goals, make work visible across the value stream, and use cross-functional teams.

# Getting started with the DevOps lifecycle

  1. •Assess the current state: map how a change actually reaches production today, including waiting time.
  2. •Start with CI: get every change built and tested automatically.
  3. •Automate testing: build a suite that the team trusts enough to act on.
  4. •Automate delivery: make deployments repeatable, then reduce manual gates where the evidence supports it.
  5. •Add monitoring: instrument applications and infrastructure before the first incident, not after.
  6. •Iterate: use the feedback and the metrics below to choose the next improvement.

# Key metrics to track

The DORA research measures software delivery performance with five metrics, in two groups. The original model had four metrics: deployment frequency, lead time, mean time to recovery (MTTR), and change failure rate.

Throughput

  • →Change lead time: the time it takes for a change to go from committed to version control to deployed in production.
  • →Deployment frequency: the number of deployments over a given period, or the time between deployments.
  • →Failed deployment recovery time: the time it takes to recover from a deployment that fails and requires immediate intervention. This metric replaced mean time to recovery (MTTR).

Instability

  • →Change fail rate: the ratio of deployments that require immediate intervention following a deployment.
  • →Deployment rework rate: the ratio of deployments that are unplanned but happen as a result of an incident in production.

Read the two groups together. A team that deploys often but has a high change fail rate or rework rate is moving fast without control, and a team with low instability but slow throughput is being cautious at the cost of feedback. The 2025 DORA report on AI-assisted software development describes AI's primary role as an amplifier that magnifies an organization's existing strengths and weaknesses, which is a reason to keep measuring delivery as coding gets faster.

# Key takeaways

  • →The eight-stage loop (plan, code, build, test, release, deploy, operate, monitor) is a common depiction rather than a formal standard, and its value is in the feedback between stages.
  • →Continuous integration, continuous delivery, and continuous deployment are different practices, and continuous delivery is the one to adopt first.
  • →Release small changes on demand, at any time of day, instead of waiting for a low-traffic window.
  • →Treat security as work inside every stage, using a framework such as NIST SP 800-218 as a checklist.
  • →Measure delivery with the five DORA metrics: change lead time, deployment frequency, failed deployment recovery time, change fail rate, and deployment rework rate.
  • →Read throughput and instability metrics together, because improving one at the expense of the other does not improve delivery.
  • →Use monitoring data as the input to planning so that the loop closes.

# Further reading

Test yourself: DevOps Lifecycle Deep Dive assessment

All posts