Use it when configuring, checking or troubleshooting Agent in CI/CD.
Agent · CI/CD
An Agent is a worker process or node used by some CI/CD systems to execute delegated pipeline work; exact lifecycle and trust semantics are platform-specific.
1. Agents (Jenkins, Azure DevOps) run jobs for the controller.
2. Keep toolchains consistent (containers).
3. Clean workspaces.
4. Secure agent credentials.
5. Scale with demand.
controller → agent → job
Context & applicabilityCommon mistakes · platform/version boundaries
- Self-hosted runners on public repositories (anyone can run code via pull requests).
- Runners with cloud admin credentials in environment variables.
- Agents never updated.
- Shared runners for production and development pipelines.
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 Failure modes and next checks Narrow the fault
Suspicious evidence: A stale or long-lived agent retains workspace state, credentials or tools that make the pipeline non-reproducible or cross-job unsafe.
Agent and runner are not universal synonyms; controller/worker registration, persistence, workspace isolation and credential exposure differ by platform.
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.
- Agent and runner are not universal synonyms; controller/worker registration, persistence, workspace isolation and credential exposure differ by platform.
- Pipeline status is execution evidence, not independent proof of target service health or business outcome.
- The exact revision, evaluated pipeline definition, effective inputs and execution worker are part of the evidence context.
- Preserve artifact identity and target read-back so validation, promotion and runtime acceptance cannot be silently conflated.
- Agent connectivity to controller — health
- Agent workspace cleanup — hygiene
- Agent tools/versions — consistency
ReferenceWhy it matters1 section · depth on demand
In depth
A CI/CD agent (runner, executor) is the machine or container that executes pipeline jobs. Its environment decides which tools are available, which networks it can reach and which credentials it can use — so it determines both what a pipeline can do and what an attacker could do through it.
| Choice | Consideration |
|---|---|
| Hosted vs self-hosted | Convenience vs internal network access |
| Ephemeral vs persistent | Clean, safe builds vs cached speed |
| Container image | Pinned tools, reproducible |
| Labels/tags | Route jobs to suitable agents |
| Network placement | Only reach what the jobs need |
Treat agents as production infrastructure: patch them, isolate them per trust level (separate agents for production deployment), and monitor their capacity.
ReferenceImportant terms & boundaries1 section · depth on demand
Agents by platform
| Platform | Term | Notes |
|---|---|---|
| GitHub Actions | Runner | Hosted or self-hosted; use ephemeral runners for untrusted code |
| GitLab CI | Runner | Executors: shell, docker, kubernetes |
| Azure DevOps | Agent | Microsoft-hosted or self-hosted pools |
| Jenkins | Agent (node) | Controller schedules builds on agents |
Self-hosted agents keep state between jobs unless ephemeral; never run public-repo pull requests on persistent self-hosted runners.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: Runner registered with labels self-hosted, linux, lab.
jobs:
deploy-lab:
runs-on: [self-hosted, linux, lab]
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- run: ./scripts/deploy.shExpected output
gh api repos/OWNER/REPO/actions/runners --jq '.runners[] | "\(.name) \(.status) \([.labels[].name] | join(","))"'Expected state: The runner is online and carries every label the job asks for.
lab-runner-01 online self-hosted,linux,X64,labA job waits in Queued forever when no online runner has all the requested labels. Illustrative authored output: field layout matches the tool, values will differ in your environment.Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Agent CI/CD proof-boundary map
Fast trigger/execution/artifact/promotion/target-proof boundaries for Agent.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trigger / evaluation | Exact commit and evaluated pipeline/inputs are known | Wrong ref, inherited rule or hidden variable changes the run |
| Execution / validation | Expected worker, jobs and tests execute with traceable context | Skips, retries, stale cache or worker drift hides the failure |
| Artifact / promotion | Immutable artifact is linked to release, approval and environment | Rebuild/mutable tag breaks provenance or approval scope |
| Target proof | Rollout plus independent readiness/acceptance confirms the intended release | Pipeline/API success is treated as runtime health |