From e4231c9816dc532b4d4eb0c9e8d7e8e347d0ebe4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 10 Dec 2021 10:10:02 +0300 Subject: refactor(ops/pipelines): Move :duck: logic into static pipeline This simplifies the fallback logic used in case of Nix evaluation failure and makes it so that the evaluation step itself is the one that is marked as failed in Buildkite. This is possible because the pipeline upload command will insert new steps at the point where it runs in the pipeline, and not later. Change-Id: I870534c004ebc457a1602623c4e5f9c0c68e28fc --- ops/pipelines/fallback.yaml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 ops/pipelines/fallback.yaml (limited to 'ops/pipelines/fallback.yaml') diff --git a/ops/pipelines/fallback.yaml b/ops/pipelines/fallback.yaml deleted file mode 100644 index 73308d937b..0000000000 --- a/ops/pipelines/fallback.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# 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