From 719bb9fc8fab4e9e90042a5c889476fdb16c355f Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Mon, 8 Jul 2019 19:00:50 +0200 Subject: Also react on lava jobs that were canceled in jenkins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- jjb/common/include-agl-lava-jobs-submit.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'jjb/common/include-agl-lava-jobs-submit.sh') 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" -- cgit 1.2.3-korg