forked from lix-project/lix
check-hydra-status.sh: Ignore unfinished builds
This commit is contained in:
parent
b8d57e2883
commit
5b809f9e0e
|
@ -16,8 +16,13 @@ someBuildFailed=0
|
||||||
for buildId in $BUILDS_FOR_LATEST_EVAL; do
|
for buildId in $BUILDS_FOR_LATEST_EVAL; do
|
||||||
buildInfo=$(curl -sS -H 'Accept: application/json' "https://hydra.nixos.org/build/$buildId")
|
buildInfo=$(curl -sS -H 'Accept: application/json' "https://hydra.nixos.org/build/$buildId")
|
||||||
|
|
||||||
buildStatus=$(echo "$buildInfo" | \
|
finished=$(echo "$buildInfo" | jq -r '.finished')
|
||||||
jq -r '.buildstatus')
|
|
||||||
|
if [[ $finished = 0 ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
buildStatus=$(echo "$buildInfo" | jq -r '.buildstatus')
|
||||||
|
|
||||||
if [[ $buildStatus != 0 ]]; then
|
if [[ $buildStatus != 0 ]]; then
|
||||||
someBuildFailed=1
|
someBuildFailed=1
|
||||||
|
|
Loading…
Reference in a new issue