about summary refs log blame commit diff
path: root/ops/pipelines/static-pipeline.yaml
blob: c428780a0613f8f41b576a611701e9fb35780acb (plain) (tree)
1
2
3
4
5




                                                                      









                                                                   
                                                                             
                                                 
                                                            
# 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