diff options
author | Vincent Ambo <mail@tazj.in> | 2020-11-17T22·15+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-11-17T22·33+0000 |
commit | 1857334d37e23aa17892338190fa29bac6c81e33 (patch) | |
tree | 391ba41dd05ce10d1fabb45d014591c8e6ebd954 | |
parent | 77097f8056529937ef3c970f9ee5c308665e6d5f (diff) |
feat(ops/pipelines): Add a fallback Buildkite configuration r/1881
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>
-rw-r--r-- | ops/pipelines/fallback.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ops/pipelines/fallback.yaml b/ops/pipelines/fallback.yaml new file mode 100644 index 000000000000..73308d937b0c --- /dev/null +++ b/ops/pipelines/fallback.yaml @@ -0,0 +1,8 @@ +# 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:" |