Make the script fail build if mvn deploy fails 39/39/1
authorAndrew Grimberg <[email protected]>
Thu, 10 Dec 2015 18:18:01 +0000 (10:18 -0800)
committerAndrew Grimberg <[email protected]>
Thu, 10 Dec 2015 18:18:01 +0000 (10:18 -0800)
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 <[email protected]>
jjb/vpp/include-raw-vpp-maven-push.sh

index 3a72bd3..ad6c525 100644 (file)
@@ -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