Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Agent · CI/CD

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Agent in CI/CD.

First 30 seconds

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.

Operational verification

controller → agent → job

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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.
Platform / version applicability
Vendor-neutral CI/CD semantics; GitHub Actions, Jenkins and other platform behavior remains in their owning branches while target runtime acceptance remains in the owning infrastructure/application Domain
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformVendor-neutral CI/CD semantics; GitHub Actions, Jenkins and other platform behavior remains in their owning branches while target runtime acceptance remains in the owning infrastructure/application Domain · Automation → CI/CD owns vendor-neutral pipeline evaluation, execution workers, artifacts, build/test/release/deployment workflow, approvals, environments, variables/secrets usage, caching/concurrency, rollback and pipeline troubleshooting. Git owns repository semantics; Security owns credential governance; GitHub Actions/Jenkins own platform-specific behavior; target Domains own runtime implementation and service acceptance.
Scope / prerequisiteUse it when configuring, checking or troubleshooting Agent in CI/CD.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • 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.

ChoiceConsideration
Hosted vs self-hostedConvenience vs internal network access
Ephemeral vs persistentClean, safe builds vs cached speed
Container imagePinned tools, reproducible
Labels/tagsRoute jobs to suitable agents
Network placementOnly 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

PlatformTermNotes
GitHub ActionsRunnerHosted or self-hosted; use ephemeral runners for untrusted code
GitLab CIRunnerExecutors: shell, docker, kubernetes
Azure DevOpsAgentMicrosoft-hosted or self-hosted pools
JenkinsAgent (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
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

GitHub Actions Self-hosted runner, current releaseRoute a job to a self-hosted runner by labels.

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.sh

Expected output

GitHub Actions Self-hosted runner, current releasegh 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,lab
A 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.
Terminology layer

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.

Aliases that resolve here
Agentbuild agentCI agent
Embedded reference data

Quick lookup tables

Agent CI/CD proof-boundary map

Fast trigger/execution/artifact/promotion/target-proof boundaries for Agent.

BoundaryHealthy evidenceSuspicious evidence
Trigger / evaluationExact commit and evaluated pipeline/inputs are knownWrong ref, inherited rule or hidden variable changes the run
Execution / validationExpected worker, jobs and tests execute with traceable contextSkips, retries, stale cache or worker drift hides the failure
Artifact / promotionImmutable artifact is linked to release, approval and environmentRebuild/mutable tag breaks provenance or approval scope
Target proofRollout plus independent readiness/acceptance confirms the intended releasePipeline/API success is treated as runtime health
Confirmation

Confirm action

Continue?