]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
try harder to trap jenkins
authorHolger Levsen <holger@layer-acht.org>
Thu, 25 Oct 2012 13:18:06 +0000 (15:18 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 25 Oct 2012 13:18:06 +0000 (15:18 +0200)
liveboot_build.sh

index 3ed9c352018b87a2572807d7d2b9c86c2d9216cf..6ac7e0151bf3aade71d059025773ff4c92c8d496 100755 (executable)
@@ -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