Automation · Jenkins
Agent
Cheat sheet · https://pcornel.dk/topic.php?topic=5536
Answer
A Jenkins agent is a machine or container that runs build steps assigned by the controller, connected over SSH or inbound JNLP, selected by labels in the pipeline.
Remember
- Agents run build steps assigned by the controller.
- Labels in the pipeline choose the agent.
- Agents need consistent tools and versions.
First checks
- Agent status in /computer — online
- Inbound (JNLP/WebSocket) vs SSH agents — connectivity
- Ephemeral agents (Kubernetes/cloud) — isolation
Verify in this order
controller → agent (label) → build
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5536