agent icon indicating copy to clipboard operation
agent copied to clipboard

Add validate_dependencies flag to pipeline upload

Open dabarrell opened this issue 8 months ago • 0 comments

Description

Adds a --validate-dependencies flag to the pipeline upload command, which will fail the upload if any steps depend on keys that don't exist.

Context

Changes

❯ ./buildkite-agent-local pipeline upload --help
Usage:

    buildkite-agent pipeline upload [file] [options...]

<snip>

Options:

<snip>

  --validate-dependencies      When true, validates the dependencies of each step when uploading. [$BUILDKITE_PIPELINE_VALIDATE_DEPENDENCIES]

Testing

  • [x] Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • [x] Code is formatted (with go fmt ./...)

dabarrell avatar Jun 24 '25 06:06 dabarrell