From: Loys Ollivier Date: Mon, 18 Dec 2017 09:07:19 +0000 (+0100) Subject: jjb/common: lava-labs-prepare.sh: disable error exit X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F12665%2F1;p=ci-management.git jjb/common: lava-labs-prepare.sh: disable error exit Disable exit on error detection in lava-labs-prepare.sh, this script is looking for error codes when needed and exits gracefully. Change-Id: I0044466ef3f7ad7b606b1452d51676a4472e87d0 Signed-off-by: Loys Ollivier --- diff --git a/jjb/common/include-agl-lava-labs-prepare.sh b/jjb/common/include-agl-lava-labs-prepare.sh index f02a2b3f..947e0862 100644 --- a/jjb/common/include-agl-lava-labs-prepare.sh +++ b/jjb/common/include-agl-lava-labs-prepare.sh @@ -10,6 +10,10 @@ # # Strucuture: [JENKINS_LAB_NAME]="LAB_URL;JENKINS_LAB_USER;JENKINS_LAB_TOKEN;RELENG_LAB_NAME" # + +# Let the script handle errors nicely +set +e + declare -A labs labs=( [agl]="https://lava.automotivelinux.org/;$LAB_AGL_USER;$LAB_AGL_TOKEN;lab-agl-core" @@ -103,3 +107,6 @@ if [ "$device_available" -eq 0 ]; then echo "ERROR: device not found in any available lab." exit 0 fi + +# Re-enable error detection +set -e