diff options
Diffstat (limited to 'ops/pipelines/depot.nix')
-rw-r--r-- | ops/pipelines/depot.nix | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ops/pipelines/depot.nix b/ops/pipelines/depot.nix index f2db69a78ff3..de03755373c0 100644 --- a/ops/pipelines/depot.nix +++ b/ops/pipelines/depot.nix @@ -77,40 +77,6 @@ let # Simultaneously run protobuf checks protoCheck - # Wait for all previous checks to complete - ({ - wait = null; - continue_on_failure = true; - }) - - # Wait for all steps to complete, then exit with success or - # failure depending on whether any other steps failed. - # - # This information is checked by querying the Buildkite GraphQL - # API and fetching the count of failed steps. - # - # This step must be :duck:! (yes, really!) - ({ - command = let duck = pkgs.writeShellScript "duck" '' - set -ueo pipefail - - readonly FAILED_JOBS=$(${pkgs.curl}/bin/curl 'https://graphql.buildkite.com/v1' \ - --silent \ - -H "Authorization: Bearer $(cat /etc/secrets/buildkite-besadii)" \ - -d "{\"query\": \"query BuildStatusQuery { build(uuid: \\\"$BUILDKITE_BUILD_ID\\\") { jobs(passed: false) { count } } }\"}" | \ - ${pkgs.jq}/bin/jq -r '.data.build.jobs.count') - - echo "$FAILED_JOBS build jobs failed." - - if (( $FAILED_JOBS > 0 )); then - exit 1 - fi - ''; in "${duck}"; - - label = ":duck:"; - key = ":duck:"; - }) - # After duck, on success, create a gcroot if the build branch is # canon. # |