DevOps and CI/CD Pipelines
Why DevOps emerged
In traditional software delivery (prior to the DevOps movement around 2007), development teams that wrote application code worked apart from IT operations teams that deployed and supported that code in production. Working in separate organizational silos created competing incentives—developers pushed for rapid feature changes while operations guarded stability—producing slow, manual, and error-prone handoffs.
DevOps (Development + Operations) is a combination of cultural philosophy, practices, and tools that merges software development and IT operations into one continuous process across the entire application lifecycle (from development and testing to deployment and ongoing operations). A DevOps toolchain automates and accelerates these steps to improve reliability through continuous integration, continuous delivery, automation, and collaboration.
Continuous Integration, Continuous Delivery, and Continuous Deployment
Teams often confuse the three automated pipeline stages because both Continuous Delivery and Continuous Deployment share the initials CD. Think of shipping software like a restaurant kitchen (added analogy, not from the slides):
- Continuous Integration (CI) is the chef tasting and checking every dish immediately as ingredients are combined, rather than waiting until closing time to discover the soup is spoiled.
- Continuous Delivery (CD) means each finished dish is cooked, packed, and placed ready on the pass counter—a manager still decides when to press “send” to the customer.
- Continuous Deployment means a conveyor belt automatically carries every approved dish straight to the customer’s table with zero manual intervention.
(Limit of the analogy: real software pipelines do more than a single taste test—they compile artifacts, run automated unit/integration test suites, package dependencies, and can provision or update target environments.)
Stage-by-stage mechanism
- Continuous Integration (CI): Developers integrate code changes into the shared main branch early and often. Each commit or merge automatically kicks off a build and runs automated tests (
BUILD -> TEST -> MERGE). Catching integration conflicts immediately prevents large, painful merge failures later. - Continuous Delivery (CD): Building directly on CI, Continuous Delivery packages the tested build with everything it needs to run in any environment and automatically releases it to an artifact/container repository (
BUILD -> TEST -> MERGE -> AUTOMATICALLY RELEASE TO REPOSITORY). Software is kept in a deployable state at any time, while pushing to production remains a manual trigger (for example, clicking a release button after business sign-off). - Continuous Deployment: Extends Continuous Delivery by removing the manual gate (
... -> AUTOMATICALLY DEPLOY TO PRODUCTION). Teams define release and validation criteria ahead of time; whenever a change satisfies all automated checks, it is deployed straight into production without human intervention.
| Stage | Automated actions | Where automation stops | Production release |
|---|---|---|---|
| Continuous Integration (CI) | Build, run automated tests, merge to main branch | Shared source repository | Not yet packaged/released |
| Continuous Delivery (CD) | CI + package for any environment & release to artifact repository | Ready in repository | Manual trigger |
| Continuous Deployment | CI + Continuous Delivery + validate release criteria & push live | Live in production | Automatic (no human gate) |
Common confusion: You cannot skip CI to do CD
While a team can practice CI without CD, it cannot meaningfully do Continuous Delivery or Continuous Deployment without CI already in place (PDF p. 9 / printed slide 9). Automating delivery or production deployment without frequent integration and automated testing merely automates shipping broken or conflicting code faster.
Main tradeoff: Moving from Continuous Delivery to Continuous Deployment maximizes release velocity and removes human bottlenecks, but it shifts all safety onto the quality of your automated tests and predefined validation criteria—there is no final manual review before users experience a bug.
The DevOps lifecycle (Infinity Loop)
Because DevOps treats delivery as iterative rather than one-and-done, the slides depict the lifecycle as an infinity loop consisting of eight phases split across development (left side) and operations (right side), wrapped by continuous Collaboration and Communication:
- Left loop (Development): Discover → Plan → Build → Test
- Right loop (Operations): Deploy → Operate → Observe → Continuous Feedback
Familiarity context (PDF p. 12 / printed slide 12): The slides map representative tools onto each phase—for example, Trello / YouTrack (Plan), Slack / Microsoft Teams (Collaboration & Communication), Git / VS Code / Jenkins (Build), Selenium / JUnit (Test), Docker (Deploy), Kubernetes / Ansible (Operate), Prometheus / Grafana (Observe), Jira (Continuous Feedback), and Word / Office (Discover). Memorize the roles of the phases rather than every logo.
Retrieval
- A team’s pipeline runs unit tests on every commit, builds a container image, and automatically pushes it to a registry, after which a release manager clicks “Deploy” every Friday afternoon. Is this CI, Continuous Delivery, or Continuous Deployment, and what single change turns it into the next stage?
It is Continuous Integration + Continuous Delivery because building, testing, and releasing to the repository are automated, while production deployment is still triggered manually. Replacing the Friday manual button with an automatic production deployment once predefined validation criteria pass turns it into Continuous Deployment. - Why does the lecture state that you can practice CI without CD, but you cannot really practice CD without CI?
CI ensures code from multiple developers is merged frequently, built, and automatically verified by tests. Without CI in place, an automated delivery or deployment pipeline has no reliable safety net and would automatically package and push unverified, conflicting, or broken code straight toward production. - Why is the DevOps lifecycle drawn as an infinity loop rather than a straight line ending at Deploy?
Deployment is not the end of the process: Operate and Observe feed Continuous Feedback back into Discover and Plan, driving iterative improvements and ongoing collaboration between development and operations teams.
Source: Lecture 14 - DevOps and GitOps, PDF pages 2–12 (printed slides 2–12).