diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2019-07-08 19:00:50 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2019-07-08 19:00:50 +0200 |
commit | 719bb9fc8fab4e9e90042a5c889476fdb16c355f (patch) | |
tree | e0f030ad03cb1c9d2707f435b4b00bd04345fdfb /jjb | |
parent | 76681fa87c78a72d050d8310d97f1ebb9d86acb2 (diff) |
Also react on lava jobs that were canceled in jenkins
This is needed to avoid jenkins polling until the timeout when a job
was aborted.
Change-Id: Ibcf0fffaeaac86a1198e4f0411e784ff74ab9f5b
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/common/include-agl-lava-jobs-submit.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index 5ddb14fd..46172751 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -63,6 +63,11 @@ for i in $(seq 1 $JOB_TIMEOUT); do continue fi state=$(grep ^state: $JOB_STATUS| cut -d' ' -f2) + if [ $state == "Canceled" ]; then + status=$(grep ^health: $JOB_STATUS| cut -d' ' -f2) + echo "LAVA job $job_id completed with status: $status" + break + fi if [ $state == "Finished" ]; then status=$(grep ^health: $JOB_STATUS| cut -d' ' -f2) echo "LAVA job $job_id completed with status: $status" |