From: Marjan Schiller Date: Thu, 13 Jun 2013 13:51:50 +0000 (+0200) Subject: Changed execution for liveboot_set_test_state.sh X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=883833a62a2a4190a480068fdde5e1d716151e4f;p=profitbricks%2Fjenkins-build-scripts.git Changed execution for liveboot_set_test_state.sh --- diff --git a/liveboot_set_test_state.sh b/liveboot_set_test_state.sh index 743e22c..8a93392 100755 --- a/liveboot_set_test_state.sh +++ b/liveboot_set_test_state.sh @@ -26,6 +26,13 @@ git checkout $GIT_BRANCH ./liveboot_test_reporter.py $BUILD_NUMBER $TEST_STATE EOF -bash -x $BUILD_SCRIPT +set -e +trap set_failure INT TERM EXIT ERR KILL STOP HUP ABRT PIPE CHLD + +echo "sudo pbuilder --execute --bindmounts /srv/build/ -- $BUILD_SCRIPT" > ${BUILD_SCRIPT}_sudo +bash -x ${BUILD_SCRIPT}_sudo +rm $BUILD_SCRIPT ${BUILD_SCRIPT}_sudo + +trap - INT TERM EXIT figlet "OK" \ No newline at end of file