From 73c862279aad7aa4c87bfe5ae2c69a0f56bb59df Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 17 Nov 2020 23:27:38 +0100 Subject: feat(ops/pipelines): Check in the static pipeline This file represents the static pipeline which is configured in the Buildkite web UI. Updates to this file should be applied in the admin interface. These steps are responsible for launching the dynamic pipeline evaluation, or falling back to the fallback pipeline if evaluation fails. Change-Id: I6d7dd623cde65e8c69faea729f737c9bba00c2fb Reviewed-on: https://cl.tvl.fyi/c/depot/+/2103 Tested-by: BuildkiteCI Reviewed-by: glittershark --- ops/pipelines/static-pipeline.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ops/pipelines/static-pipeline.yaml (limited to 'ops/pipelines/static-pipeline.yaml') diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml new file mode 100644 index 0000000000..515ab2cb64 --- /dev/null +++ b/ops/pipelines/static-pipeline.yaml @@ -0,0 +1,15 @@ +# This file defines the static pipeline which is uploaded in the +# Buildkite admin interface. These steps run at the beginning of each +# build and cause the dynamic pipeline generation to run. +--- +steps: + - label: ":llama:" + command: | + function fallback() { + echo 'Using fallback pipeline ...' + buildkite-agent pipeline upload ops/pipelines/fallback.yaml + exit + } + + nix-build -A ops.pipelines.depot -o depot.yaml || fallback + buildkite-agent pipeline upload depot.yaml || fallback -- cgit 1.4.1