Use it when the symptom is “Pipeline Failure”: work through the layers in order and stop at the first one that fails.
Pipeline Failure
Pipeline Failure isolates CI/CD automation across trigger/ref, pipeline evaluation, variables/secrets, runner/toolchain, dependency/cache, stage/job, artifact, approval, deployment and environment acceptance boundaries.
1. Pipeline failure: code, tests, dependencies, runner, secrets, permissions, flaky tests.
2. Read logs.
3. Compare with last green.
4. Pin dependencies.
5. Fix root cause.
trigger → runner → job → step → error
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
git status --short --branchPrimary Commands
Configuration and operational commands for this Topic.
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 Operational evidence path Verify boundary
trigger → commit/config → variable/policy evaluation → runner/toolchain/cache → stage/job → artifact digest → approval/release → deployment task → environment rollout → service acceptance
Healthy evidence: commit/config/run/runner and artifact identities are pinned, first failed stage is evidenced, partial environment state is known, and rollout plus service acceptance verify.
Step 2 Telling causes apart Verify boundary
Known-good requires the pipeline to consume the intended commit, every required stage to report success, the produced artifact to be traceable to that commit, and any deployment/read-back gate to confirm the expected target version. Broken state is wrong/dirty checkout, failed required stage, missing artifact or successful pipeline with mismatched deployed revision. git status --short --branch shows local worktree/branch state only; end-to-end evidence needs run metadata and artifact/target identity.
Step 3 Common mistakes Verify boundary
- Pipeline environment differs from local.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: only final red/green status is inspected, retries use different caches or floating images, partial deployments are ignored, or green pipeline is final evidence.
Step 5 Observation-driven branch and next-check logic Narrow the fault
Anchor on pipeline run ID and expected commit. Inspect git status --short --branch in the working copy/runner when available and compare HEAD/branch with the run metadata. If the checkout is wrong or dirty, fix source acquisition before build logic; if source is correct, locate the first failed stage and preserve its exit code/log/artifact references. For flaky failures, compare runner image, dependency lock/cache and environment variables. Do not rerun the whole pipeline until the first failing step and revision identity are recorded.
Step 6 Where it fails Narrow the fault
Where Pipeline Failure usually goes wrong: stage/job dependency graph, runner identity, artifact handoff, failure propagation and target deployment read-back.
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.
- Pipeline red ≠ source code is necessarily defective.
- Pipeline green ≠ deployed service is healthy.
- Retry job ≠ same inputs, cache, runner or environment.
- Artifact built ≠ artifact deployed or trusted.
- Failed job log — error
- Re-run with debug logging — detail
- Diff from last green run (deps, runner image) — changes
ReferenceWhat it is1 section · depth on demand
Core model
Pin repository commit and pipeline definition; capture pipeline/run/job IDs and runner image; identify first failed stage/job while accounting for dependencies; preserve artifact identity and partial deployments; separate control-plane green/red from target rollout; correct bounded cause and rerun safely.
ReferenceHow it works1 section · depth on demand
How it works and how it fails
Pipeline Failure spans source revision selection, trigger, runner/executor provisioning, dependency/cache restore, build/test stages, artifact publication and deployment gates. git status --short --branch identifies the local checkout branch and worktree cleanliness, which is one input boundary. A clean repository does not show the CI runner used the intended commit, nor that later stages/artifacts correspond to that revision.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Pipeline status is orchestration evidence; it cannot by itself show artifact integrity, deployment completion or service health.
In depth
A pipeline failure is a CI/CD run that stops at a job or step. The failing step's log and a comparison with the last successful run usually point to the cause: code, dependencies, environment or secrets.
| Category | Example |
|---|---|
| Code | Test or lint failure |
| Dependency | New package version breaks build |
| Environment | Runner image updated, tool missing |
| Access | Secret missing, token permissions |
| Infrastructure | Runner offline, network to target |
Pin tool and dependency versions so failures come from your changes, not from silent upstream updates.
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 Automation Troubleshooting > Pipeline Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/architecture/patterns/retry · confidence 94%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
Pipeline Failure troubleshooting proof-boundary map
Fast symptom/scope, first-failed-boundary, effective-outcome and recovery/closure map for Pipeline Failure.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |
Deep reference
Healthy vs suspicious evidence
Output interpretation
For Pipeline Failure, rely on structured fields and stable IDs (stage/job dependency graph, runner identity, artifact handoff, failure propagation and target deployment read-back) rather than text formatted for display.