aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-lava-labs-prepare.sh
diff options
context:
space:
mode:
authorLoys Ollivier <lollivier@baylibre.com>2017-12-18 10:07:19 +0100
committerLoys Ollivier <lollivier@baylibre.com>2017-12-18 10:07:19 +0100
commit923c6db464b459bf14045370684d1a4f4f8a4633 (patch)
treece2ad5d91b646e290c69e6d7f9ad8658a16c8ef3 /jjb/common/include-agl-lava-labs-prepare.sh
parent2f9cdc4a592e46a4bbe5576281c8a16296096c9d (diff)
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 <lollivier@baylibre.com>
Diffstat (limited to 'jjb/common/include-agl-lava-labs-prepare.sh')
-rw-r--r--jjb/common/include-agl-lava-labs-prepare.sh7
1 files changed, 7 insertions, 0 deletions
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