about summary refs log tree commit diff
path: root/ops/pipelines/static-pipeline.yaml
blob: c428780a0613f8f41b576a611701e9fb35780acb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file defines the static Buildkite pipeline which attempts to
# create the dynamic pipeline of all depot targets.
#
# If something fails during the creation of the pipeline, the fallback
# is executed instead which will simply report an error to Gerrit.
---
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 --show-trace || fallback
      buildkite-agent meta-data set 'failure' '0'
      buildkite-agent pipeline upload depot.yaml || fallback