From 2d8189ed863ed5ad0caa0696acb579dd8d363c88 Mon Sep 17 00:00:00 2001 From: Jan-Simon Moeller Date: Wed, 17 Jun 2020 12:45:26 +0200 Subject: Avoid CIBT jobs failing on lavacli wait call Lavacli wait has a bug and returns Submitted. Running...................................................... Unable to call 'jobs.wait': [Errno 2] No such file or directory Avoid this failing the job as the following evaluation will still work. Signed-off-by: Jan-Simon Moeller Change-Id: If8fa942b7ddc49857d2f010f02ae3f53d01476ac --- jjb/common/include-agl-lava-jobs-submit.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 a94b25bc..912487dc 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -13,7 +13,7 @@ fi if [ ! -e $JOB_FILE ]; then echo "ERROR: LAVA job file $JOB_FILE not present." - exit 1 + exit 123 fi JOB_BASE=$(basename $JOB_FILE .yaml) @@ -34,7 +34,7 @@ fi job_id=$(lavacli -i $lab jobs submit $JOB_FILE_NEW) if [ $? -ne 0 ]; then echo "ERROR: job submission error" - exit 1 + exit 123 fi # Printing the job URL in the log echo "THe job id is: ${job_id}" @@ -48,7 +48,7 @@ echo "####################################################" echo "" # use lavacli wait job instead of the polling. -lavacli -i $lab jobs wait $job_id --timeout 7200 +lavacli -i $lab jobs wait $job_id --timeout 7200 || true lavacli -i $lab jobs show $job_id --yaml > $JOB_STATUS state=$(grep ^state: $JOB_STATUS| cut -d' ' -f2) if [ "$state" == "Finished" ]; then @@ -190,6 +190,6 @@ set +x if [ x"$status" = x"Complete" ]; then exit 0 fi -#exit 1 +#exit 123 # for now do not fail exit 0 -- cgit 1.2.3-korg