Fix propogation of build errors. 74/1374/1
authorEd Warnicke <eaw@cisco.com>
Thu, 2 Jun 2016 23:29:22 +0000 (18:29 -0500)
committerEd Warnicke <eaw@cisco.com>
Thu, 2 Jun 2016 23:29:22 +0000 (18:29 -0500)
Change-Id: I3e600ab74f5290008489cdbaa1624559067ad8b2
Signed-off-by: Ed Warnicke <eaw@cisco.com>
jjb/vpp/include-raw-vpp-build.sh
jjb/vpp/include-raw-vpp-maven-push.sh

index bacac43..60df7ab 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 # basic build script example
-
+set -xeu -o pipefail
 # do nothing but print the current slave hostname
 hostname
 export CCACHE_DIR=/tmp/ccache
@@ -54,8 +54,7 @@ if [ ${OS} == ubuntu1404 ];then
 fi
 
 build-root/vagrant/build.sh
-if [ $? == 0 ];then
-    echo "*******************************************************************"
-    echo "* VPP BUILD SUCCESSFULLY COMPLETED"
-    echo "*******************************************************************"
-fi
+
+echo "*******************************************************************"
+echo "* VPP BUILD SUCCESSFULLY COMPLETED"
+echo "*******************************************************************"
index acde5af..1211bbf 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-
+set -xeu -o pipefail
 echo "*******************************************************************"
 echo "* STARTING PUSH OF PACKAGES TO REPOS"
 echo "* NOTHING THAT HAPPENS BELOW THIS POINT IS RELATED TO BUILD FAILURE"