mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 00:32:28 +00:00
check-hydra-status.sh: Improve error behaviour
This commit is contained in:
parent
52f52319ad
commit
b8d57e2883
@ -19,9 +19,9 @@ for buildId in $BUILDS_FOR_LATEST_EVAL; do
|
|||||||
buildStatus=$(echo "$buildInfo" | \
|
buildStatus=$(echo "$buildInfo" | \
|
||||||
jq -r '.buildstatus')
|
jq -r '.buildstatus')
|
||||||
|
|
||||||
if [[ "$buildStatus" -ne 0 ]]; then
|
if [[ $buildStatus != 0 ]]; then
|
||||||
someBuildFailed=1
|
someBuildFailed=1
|
||||||
echo "Job “$(echo "$buildInfo" | jq -r '.job')” failed on hydra"
|
echo "Job “$(echo "$buildInfo" | jq -r '.job')” failed on hydra: $buildInfo"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user