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>
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"