Use this to understand Jenkins components.
Jenkins Architecture
Jenkins architecture is a controller that schedules jobs and stores configuration, agents that run builds, plugins that add features, and pipelines defined as code in Jenkinsfiles.
1. Architecture: controller schedules, agents build.
2. Configuration as Code plugin.
3. Back up JENKINS_HOME.
4. Reverse proxy with TLS.
5. Minimal plugins.
controller → agents → builds
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Record controller, job/folder, build number, stage/step, agent and artifact IDs; inspect the runtime/control-plane result; then query the build/test/package/deployment result and any external system mutated by the Pipeline through an independent read path and compare it with the versioned intent. The negative fixture should deliberately exercise risks such as controller/agent drift, plugin behavior changes, workspace contamination, credential leakage, retrying non-idempotent stages and green Pipeline status masking bad external state, choosing the cases most relevant to controller persistence, queue, agents/executors, plugin boundary and scaling/failure domains that affect Pipeline scheduling and durability. For Jenkins → Jenkins Architecture, the evidence must connect the control-plane result to the build/test/package/deployment result and any external system mutated by the Pipeline and explain any gap between desired, controller-reported and consumer-visible state.
Step 2 Common mistakes Narrow the fault
- Builds on the controller.
Step 3 Where it fails Narrow the fault
Common failure classes include controller/agent drift, plugin behavior changes, workspace contamination, credential leakage, retrying non-idempotent stages and green Pipeline status masking bad external state. Before retrying a mutating operation, read current target state using the stable identity controller, job/folder, build number, stage/step, agent and artifact IDs; if state is unknown, stop broad retries.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Controller, agents, plugins and pipelines make up Jenkins.
- Pipelines live in Jenkinsfiles in Git.
- Plugins add most features and most risk.
- Controller + agents + plugins + credentials — architecture
- JCasC (configuration as code) — reproducible config
- Backup of JENKINS_HOME — recovery
ReferenceWhy it matters1 section · depth on demand
In depth
Jenkins architecture separates the controller (web UI, job configuration, scheduling, credentials) from agents that execute work. Agents connect over SSH or inbound (JNLP/WebSocket) and can be static machines or ephemeral containers.
| Element | Note |
|---|---|
| Controller executors | Set to 0 so builds never run on the controller |
| Labels | Route jobs to suitable agents (linux && ansible) |
| Ephemeral agents | Kubernetes/Docker plugins create fresh agents per build |
JENKINS_HOME | All configuration and history — back it up |
Agents need network access to targets, so place them in the right network zones rather than opening the controller to everything.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Jenkins → Jenkins Architecture is owned at runtime by the Jenkins controller, queue, Pipeline engine and selected agents/executors. Its durable intent is versioned Jenkinsfile/job configuration, credentials references and agent/tool constraints; the stable identity contract is controller, job/folder, build number, stage/step, agent and artifact IDs. The consumer-visible target is the build/test/package/deployment result and any external system mutated by the Pipeline. The operating invariants are that Jenkinsfile revision is known, credentials stay scoped, agent/tool requirements are reproducible, stage status is not confused with target-evidence of the actual state, and artifacts are traceable to one build. Follow the chain of components SCM/webhook → Jenkins controller/queue → agent allocation → stage/step execution → artifact/deploy action → external read-back and record which layer currently owns truth. The linked authority for bounded mechanics is Jenkins Handbook — Architecting for Scale; documentation support is separate from observed lab/production Evidence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Jenkins > Jenkins Architecture. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.jenkins.io/doc/book/scaling/architecting-for-scale/ · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture at minimum job/build ID, SCM revision, queue/agent, stage/step, exit status, test results, artifact digest/location, credential binding metadata and deployment read-back. For controller persistence, queue, agents/executors, plugin boundary and scaling/failure domains that affect Pipeline scheduling and durability, prefer typed fields and stable IDs over human presentation text.