tvl-depot/ops/pipelines/fallback.yaml
Vincent Ambo 1857334d37 feat(ops/pipelines): Add a fallback Buildkite configuration
This adds a simple fallback Buildkite pipeline configuration which
always fails the pipeline, but correctly reports back the failure
status.

Note that this also requires changes in the Buildkite configuration
that is not in version-control.

Relates to b/66.

Change-Id: I6802a6f76448c3893798a06d514e6ccba0f50dd2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2102
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
2020-11-17 22:33:11 +00:00

8 lines
339 B
YAML

# This build configuration provides a fallback which marks a build as
# failed. This is used if evaluating the build configuration fails,
# for example because of a syntax error in Nix code.
---
steps:
- command: "echo 'Nix evaluation failed!' && exit 1"
# This step *must* be :duck: to trigger the correct hook.
label: ":duck:"