From e8c846324ab5fe82fa8f1dbc5307c2a60142fe7f Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Thu, 10 Dec 2015 10:18:01 -0800 Subject: 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 --- jjb/vpp/include-raw-vpp-maven-push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jjb') 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 -- cgit 1.2.3-korg