From 923c6db464b459bf14045370684d1a4f4f8a4633 Mon Sep 17 00:00:00 2001 From: Loys Ollivier Date: Mon, 18 Dec 2017 10:07:19 +0100 Subject: 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 --- jjb/common/include-agl-lava-labs-prepare.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'jjb') 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 -- cgit 1.2.3-korg