diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-02-10 11:10:29 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-02-10 11:10:58 +0100 |
commit | b8d57e28839587832109f6607eb28819559fc30c (patch) | |
tree | 58c2759d084a22779597193ee42c8dbcc232ceea /scripts | |
parent | 52f52319ad21bdbd7a33bb85eccc83756648f110 (diff) |
check-hydra-status.sh: Improve error behaviour
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/check-hydra-status.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check-hydra-status.sh b/scripts/check-hydra-status.sh index c1d2d7c40..7efe9cf97 100644 --- a/scripts/check-hydra-status.sh +++ b/scripts/check-hydra-status.sh @@ -19,9 +19,9 @@ for buildId in $BUILDS_FOR_LATEST_EVAL; do buildStatus=$(echo "$buildInfo" | \ jq -r '.buildstatus') - if [[ "$buildStatus" -ne 0 ]]; then + if [[ $buildStatus != 0 ]]; then someBuildFailed=1 - echo "Job “$(echo "$buildInfo" | jq -r '.job')” failed on hydra" + echo "Job “$(echo "$buildInfo" | jq -r '.job')” failed on hydra: $buildInfo" fi done |