Use this when managing the Jenkins controller.
Controller · Jenkins
The Jenkins controller hosts the web UI, configuration, job definitions, credentials and scheduling. Run builds on agents rather than the controller for security and performance.
1. The controller should not run builds (executors 0).
2. Harden: SSO, matrix/role auth.
3. Updates and plugin hygiene.
4. Script console restricted.
5. Audit logs.
users/SCM → controller → schedules agents
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
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 scheduling, queue ownership, agent coordination, persistence and controller-side bottlenecks.
Step 2 Common mistakes Narrow the fault
- Running builds on the controller.
- Plugins not updated (common vulnerability source).
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.
- The controller holds configuration, jobs and credentials.
- Set controller executors to 0; run builds on agents.
- Back up JENKINS_HOME.
curl -sS https://<jenkins>/login -o /dev/null -w '%{http_code}'— reachable- Number of executors on controller = 0 — no builds on controller
- Security realm and authorization strategy — access
ReferenceWhy it matters1 section · depth on demand
What it is
The Jenkins controller hosts configuration, the UI, job definitions and scheduling; builds should run on agents, not the controller.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The Jenkins controller is the central server: it stores job configuration, schedules builds, serves the web UI and API, manages credentials and plugins, and dispatches work to agents. Because it holds credentials and can run code on every agent, it is one of the most sensitive systems in a delivery pipeline.
Good practice:
- Run builds on agents, not on the controller (set the built-in node's executors to 0).
- Back up
JENKINS_HOME(jobs, credentials, plugins) and test restores. - Keep Jenkins and plugins updated; most Jenkins security advisories concern plugins.
- Use Configuration as Code (JCasC) so the controller can be rebuilt from Git.
- Restrict who can configure jobs and run scripts (Script Console is full code execution).
curl -s -u user:token https://jenkins.example.com/api/json?pretty=true | head
java -jar jenkins-cli.jar -s https://jenkins.example.com/ -auth @creds who-am-i
Mechanics
The linked authority for bounded mechanics is Jenkins Handbook — Using Jenkins agents; 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 > Controller. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.jenkins.io/doc/book/using/using-agents/ · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For controller scheduling, queue ownership, agent coordination, persistence and controller-side bottlenecks, prefer typed fields and stable IDs over human presentation text.