The Problem CI/CD Solves
Imagine five developers each working on their own copy of the code for two weeks. On release day they try to merge everything. Nothing compiles, tests fail, and nobody knows whose change broke what. Then the release is packaged by hand, copied to a server, and a typo in one command takes the site down.
CI/CD removes this pain by making builds, tests and releases automatic, frequent and repeatable.
| Term | Meaning | Example |
|---|---|---|
| Continuous Integration (CI) | Developers merge small changes into the shared branch often. Every change is built and tested automatically | A push to Git starts compile, unit tests and a code scan |
| Continuous Delivery (CD) | Every change that passes the tests is always ready to release. A person presses the button to deploy | The pipeline produces a tested Docker image and waits for approval |
| Continuous Deployment | Every passing change is released to production automatically, with no manual step | A merge to main goes live after all checks |
A Typical Pipeline
- Each step is a stage
- If a stage fails, the pipeline stops and tells the team, so a bad change never reaches users
- Because it is automatic, it runs the same way every time
What Is Jenkins?
Jenkins is a free, open-source automation server written in Java. It watches your source code, runs the steps you define (build, test, scan, package, deploy) and reports the results. It started in 2004 as *Hudson* and became Jenkins in 2011. It is hosted by the Continuous Delivery Foundation and has thousands of plugins.
| Strength | Why it matters |
|---|---|
| Free and open source | No license cost. You control the server |
| Huge plugin ecosystem | Connects to almost any tool: Git, Docker, Kubernetes, cloud, Slack |
| Pipeline as code | The Jenkinsfile lives in Git next to your application |
| Flexible | Works for Java, Node, Python, .NET, mobile, data, infrastructure |
| Self-hosted | Runs inside your network and can reach private systems |
Jenkins Architecture
| Part | What it does |
|---|---|
| Controller (formerly 'master') | The brain. Hosts the web UI, stores configuration and credentials, decides which job runs where. Best practice: do not run builds on it |
| Agent (node) | A machine or container that executes the build steps. Needs Java and a connection to the controller |
| Executor | One slot on a node that runs one build at a time. A node with 4 executors can run 4 builds in parallel |
| Job / Project | A definition of what to do: freestyle, pipeline, multibranch, folder |
| Build | One run of a job, with a number (#1, #2), a log and a result |
| Workspace | The directory on the agent where the code is checked out and built |
| Plugin | An add-on that adds a feature, such as Git, Pipeline or Docker |
| Credentials | Secrets stored encrypted: passwords, tokens, SSH keys |
Build Results
| Result | Meaning | Colour |
|---|---|---|
| SUCCESS | All steps passed | Blue or green |
| UNSTABLE | Build worked but tests failed or a quality check warned | Yellow |
| FAILURE | A step failed | Red |
| ABORTED | A person or a timeout stopped it | Grey |
| NOT_BUILT | Skipped because an earlier stage failed | Light grey |
Release Lines: LTS and Weekly
- Weekly releases come out every week with new features and fixes
- LTS (Long-Term Support) releases are chosen about every 12 weeks as a baseline, then get fixes only in point releases (for example .1, .2, .3). Use LTS for production
- Recent Jenkins LTS lines require Java 21 or 25. Java 17 support ended with the 2.541.x LTS line, so plan your Java version before you install or upgrade
Jenkins and the Alternatives
| Tool | Where it runs | Config | Good for |
|---|---|---|---|
| Jenkins | Your servers or cloud, self-hosted | Jenkinsfile (Groovy) or UI | Maximum flexibility, private networks, huge plugin set |
| GitHub Actions | GitHub-hosted or self-hosted runners | YAML in the repo | Teams fully on GitHub |
| GitLab CI | GitLab runners | .gitlab-ci.yml | Teams fully on GitLab |
| Azure DevOps, CircleCI, TeamCity | Hosted or self-hosted | YAML or UI | Specific ecosystems |
Jenkins is not the only choice, but it remains very common in enterprises, and knowing Jenkins makes every other CI tool easy to learn, because they share the same ideas: triggers, stages, agents, artifacts and secrets.
How This Course Is Organised
- Install Jenkins and run your first jobs
- Learn freestyle jobs, then Pipeline as Code with a Jenkinsfile
- Build agents, Docker and Kubernetes delivery
- Quality, testing, artifacts and deployment
- Security, Configuration as Code, backup and upgrades
- Three real projects, interview questions and a certification guide
Practice Tasks
- Write your own definition of CI, CD and continuous deployment in one sentence each
- Draw the controller and agent diagram from memory
- List five things a pipeline for your own project should do
- Decide which of your own projects could use Jenkins and which Java version you will use
Conclusion
CI/CD automates build, test and release so problems are found early and releases are repeatable. Jenkins is a self-hosted automation server with a controller that manages work and agents that run it, extended by plugins and driven by pipeline-as-code. Use LTS releases and keep builds off the controller.

