## TL;DR

Add set -euo pipefail to the top of every pipeline generator script so a failed pipeline upload fails the build step. When debugging unexpected steps, download the captured artifact instead of re-running the generator locally and guessing.

## Steps

1. Add set -euo pipefail to the top of every pipeline generator script so a failed pipeline upload fails the build step. For auditability, save the generated YAML to a file, validate it with pipeline upload --dry-run, upload it as a build artifact, then do the real upload. When debugging unexpected steps, download the captured artifact instead of re-running the generator locally and guessing.

## When to use

You are seeing this: For auditability, save the generated YAML to a file, validate it with pipeline upload --dry-run, upload it as a build artifact, then do the real upload. Use this skill when you run into "Buildkite dynamic pipeline: a failed upload silently continues the build".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
