From: Andrew Grimberg Date: Thu, 10 Dec 2015 18:18:01 +0000 (-0800) Subject: Make the script fail build if mvn deploy fails X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e8c846324ab5fe82fa8f1dbc5307c2a60142fe7f;p=ci-management.git Make the script fail build if mvn deploy fails The script wasn't picking up a failed mvn deploy failure. This changes it so that we need an definite exit code of 0 to not fail the build. Change-Id: I094bf1e149f779061223496a0b2bc347a3705b5b Signed-off-by: Andrew Grimberg --- diff --git a/jjb/vpp/include-raw-vpp-maven-push.sh b/jjb/vpp/include-raw-vpp-maven-push.sh index 3a72bd3d0..ad6c52516 100644 --- a/jjb/vpp/include-raw-vpp-maven-push.sh +++ b/jjb/vpp/include-raw-vpp-maven-push.sh @@ -39,7 +39,7 @@ function push_file () -gs $GLOBAL_SETTINGS_FILE -s $SETTINGS_FILE # make sure the script bombs if we fail an upload - if [ ! "$?" ]; then + if [ "$?" != '0' ]; then echo "ERROR: There was an error with the upload" exit 1 fi