What Is CI/CD? Jenkins Architecture, Controller, Agents, Jobs and Plugins Explained

CI CD Pipelines with Jenkins 20 min min read Updated: Nov 17, 2026 Beginner
What Is CI/CD? Jenkins Architecture, Controller, Agents, Jobs and Plugins Explained
Beginner Topic 1 of 3

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.

TermMeaningExample
Continuous Integration (CI)Developers merge small changes into the shared branch often. Every change is built and tested automaticallyA 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 deployThe pipeline produces a tested Docker image and waits for approval
Continuous DeploymentEvery passing change is released to production automatically, with no manual stepA merge to main goes live after all checks

A Typical Pipeline

text Commit ─► Build ─► Unit test ─► Code quality scan ─► Package (jar / image) ─► Deploy to test ─► Integration tests ─► Approval ─► Deploy to production ─► Smoke test
  • 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.

StrengthWhy it matters
Free and open sourceNo license cost. You control the server
Huge plugin ecosystemConnects to almost any tool: Git, Docker, Kubernetes, cloud, Slack
Pipeline as codeThe Jenkinsfile lives in Git next to your application
FlexibleWorks for Java, Node, Python, .NET, mobile, data, infrastructure
Self-hostedRuns inside your network and can reach private systems

Jenkins Architecture

text +------------------------------+ Users / Git webhooks │ Jenkins CONTROLLER │ UI, REST API, job config, ─────────────────────► schedules builds, stores │ credentials, plugins, build history │ results │ +--------------+---------------+ sends work │ (SSH / inbound WebSocket / Kubernetes) +-------------------+------+-----------+-------------------+ │ AGENT: linux-1 │ AGENT: win-1 │ AGENT: docker pod │ run the actual builds +-------------------+------------------+--------------------+
PartWhat 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
ExecutorOne slot on a node that runs one build at a time. A node with 4 executors can run 4 builds in parallel
Job / ProjectA definition of what to do: freestyle, pipeline, multibranch, folder
BuildOne run of a job, with a number (#1, #2), a log and a result
WorkspaceThe directory on the agent where the code is checked out and built
PluginAn add-on that adds a feature, such as Git, Pipeline or Docker
CredentialsSecrets stored encrypted: passwords, tokens, SSH keys
Run builds on agents: Builds can use a lot of CPU and run untrusted code. Keep the controller for management (set its executors to 0), and use agents for work. This is also a security rule.

Build Results

ResultMeaningColour
SUCCESSAll steps passedBlue or green
UNSTABLEBuild worked but tests failed or a quality check warnedYellow
FAILUREA step failedRed
ABORTEDA person or a timeout stopped itGrey
NOT_BUILTSkipped because an earlier stage failedLight 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

ToolWhere it runsConfigGood for
JenkinsYour servers or cloud, self-hostedJenkinsfile (Groovy) or UIMaximum flexibility, private networks, huge plugin set
GitHub ActionsGitHub-hosted or self-hosted runnersYAML in the repoTeams fully on GitHub
GitLab CIGitLab runners.gitlab-ci.ymlTeams fully on GitLab
Azure DevOps, CircleCI, TeamCityHosted or self-hostedYAML or UISpecific 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

  1. Install Jenkins and run your first jobs
  2. Learn freestyle jobs, then Pipeline as Code with a Jenkinsfile
  3. Build agents, Docker and Kubernetes delivery
  4. Quality, testing, artifacts and deployment
  5. Security, Configuration as Code, backup and upgrades
  6. Three real projects, interview questions and a certification guide

Practice Tasks

  1. Write your own definition of CI, CD and continuous deployment in one sentence each
  2. Draw the controller and agent diagram from memory
  3. List five things a pipeline for your own project should do
  4. 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.

Quick Summary: CI vs CD vs deployment; pipeline stages; Jenkins controller/agent/executor/job/build/workspace/plugin; results; LTS vs weekly; alternatives.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators