From: Holger Levsen Date: Thu, 25 Oct 2012 13:18:06 +0000 (+0200) Subject: try harder to trap jenkins X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=17e202d9311d87834f204d376bfe650324038c11;p=profitbricks%2Fjenkins-build-scripts.git try harder to trap jenkins --- diff --git a/liveboot_build.sh b/liveboot_build.sh index 3ed9c35..6ac7e01 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -9,8 +9,6 @@ set_failure() { exit 1 } -set -e -#set -x export if [ "$REQUEST_ID" = "" ] ; then @@ -45,7 +43,8 @@ $SCRIPTSDIR/liveboot2db.py $JOB_NAME $BUILD_NUMBER $REQUEST_ID $BUILD_START # # trap failures # -trap set_failure INT TERM EXIT KILL STOP ABRT +set -e +trap set_failure INT TERM EXIT ERR # # build liveboot