From 1857334d37e23aa17892338190fa29bac6c81e33 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 17 Nov 2020 23:15:28 +0100 Subject: 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 --- ops/pipelines/fallback.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ops/pipelines/fallback.yaml diff --git a/ops/pipelines/fallback.yaml b/ops/pipelines/fallback.yaml new file mode 100644 index 0000000000..73308d937b --- /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:" -- cgit 1.4.1