DevOps Peach

DevOps & CI/CD · DevOps Overview & CI/CD Pipeline · Lesson 2 of 4

DevOps Lifecycle and Toolchain

An 8-stage infinite loop Plan → Code → Build → Test → Release → Deploy → Operate → Monitor, each stage with its own tool group; Monitor feeds back into Plan.

Practice interactively →

flowchart LR
  P["Plan"] --> C["Code"] --> B["Build"] --> T["Test"] --> R["Release"]
  R --> D["Deploy"] --> O["Operate"] --> M["Monitor"]
  M -- "feedback" --> P
Stage Activities Example tools
Plan Tasks, backlog, schedule Jira, Azure Boards
Code Version control, code review, code scanning Git, GitHub/GitLab/Azure Repos, SonarQube
Build Compile, package, store artifacts Maven, npm, Docker, Nexus/Artifactory
Test Unit, integration, quality gates JUnit, Jest, Selenium
Release Change management, release approval Jenkins, Azure Pipelines (approvals)
Deploy Provision infrastructure, deploy app, configure Terraform, Ansible, Helm, kubectl
Operate Run, HA, backups, logs, databases Kubernetes, cloud services
Monitor Performance, logs, incidents Prometheus, Grafana, ELK

Before automating, check that the build agent has the tools it needs (Git, Docker, Java for Jenkins).

Command Meaning
git --version Git version
docker --version Docker client version
java -version Java version (Jenkins needs Java)

The infinity loop

The lifecycle is usually drawn as an infinity symbol: the left loop (Plan, Code, Build, Test) belongs mainly to development, the right loop (Release, Deploy, Operate, Monitor) mainly to operations, and the two meet without a hand-off wall. Each turn of the loop should be small, a few days or hours rather than months.

Feedback at every stage

Stage Feedback that flows back
Code Review comments, static analysis results
Build and test Failing tests, coverage, vulnerability reports within minutes
Deploy Deployment success or rollback
Operate and monitor Error rates, latency, user behaviour, incidents

Fast feedback is the point of the whole loop: a bug found by a unit test minutes after a commit costs far less than one found by a customer.

Security across the loop (DevSecOps)

Security is not a stage at the end but a concern in every stage: threat modelling in Plan, secret scanning and SAST in Code, dependency scanning (SCA) and image scanning in Build, DAST in Test, policy checks in Deploy, runtime detection in Operate. The Security track later goes deeper into these tools.

Artifacts and environments

Two supporting pieces connect the stages:

Mapping this course to the loop

Stage Where you learn it
Code Git module
Build, Test, Release Jenkins and Azure DevOps modules
Deploy Ansible, Terraform, Docker, Kubernetes, Helm
Operate, Monitor Kubernetes operations, Prometheus and Grafana module

Practice interactively →