aboutsummaryrefslogtreecommitdiff
path: root/scripts/check-hydra-status.sh
diff options
context:
space:
mode:
authorPuck Meerburg <puck@puckipedia.com>2024-03-14 18:15:46 +0000
committerPuck Meerburg <puck@puckipedia.com>2024-03-14 18:15:46 +0000
commit93cc063344323a8b0d630d0a67acd121cdc3f86a (patch)
treebd302e9d9c087a8921ff6b5ad4ebe982762535f2 /scripts/check-hydra-status.sh
parentc26599b1430e4d06a0c32290837b58537a7c4600 (diff)
Delete the existing installer
We're not going to use it. Fixes: #31 Change-Id: Ib17a2eb6cae1ecbbf9ad1062e576ba6107a3c13b
Diffstat (limited to 'scripts/check-hydra-status.sh')
-rw-r--r--scripts/check-hydra-status.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/scripts/check-hydra-status.sh b/scripts/check-hydra-status.sh
deleted file mode 100644
index e62705e94..000000000
--- a/scripts/check-hydra-status.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env bash
-
-set -euo pipefail
-# set -x
-
-
-# mapfile BUILDS_FOR_LATEST_EVAL < <(
-# curl -H 'Accept: application/json' https://hydra.nixos.org/jobset/nix/master/evals | \
-# jq -r '.evals[0].builds[] | @sh')
-BUILDS_FOR_LATEST_EVAL=$(
-curl -sS -H 'Accept: application/json' https://hydra.nixos.org/jobset/nix/master/evals | \
- jq -r '.evals[0].builds[]')
-
-someBuildFailed=0
-
-for buildId in $BUILDS_FOR_LATEST_EVAL; do
- buildInfo=$(curl --fail -sS -H 'Accept: application/json' "https://hydra.nixos.org/build/$buildId")
-
- finished=$(echo "$buildInfo" | jq -r '.finished')
-
- if [[ $finished = 0 ]]; then
- continue
- fi
-
- buildStatus=$(echo "$buildInfo" | jq -r '.buildstatus')
-
- if [[ $buildStatus != 0 ]]; then
- someBuildFailed=1
- echo "Job “$(echo "$buildInfo" | jq -r '.job')” failed on hydra: $buildInfo"
- fi
-done
-
-exit "$someBuildFailed"