Abort diagnostics suite with prejudice if the git checkout fails.
authorWard Vandewege <ward@curoverse.com>
Mon, 23 Jan 2017 18:55:50 +0000 (13:55 -0500)
committerWard Vandewege <ward@curoverse.com>
Mon, 23 Jan 2017 18:55:50 +0000 (13:55 -0500)
No issue #

jenkins/run-diagnostics-suite.sh

index 015a0539c832fdcec36c257cb5ae51aee48c32c2..ef25fd40fde73540773247cdd3a6c8d8873fc215 100755 (executable)
@@ -57,6 +57,14 @@ if [[ "$REVISION" != '' ]]; then
   git checkout $REVISION
 fi
 
+ECODE=$?
+
+if [[ "$ECODE" != "0" ]]; then
+  title "!!!!!! DIAGNOSTICS FAILED (`timer`) !!!!!!"
+  EXITCODE=$(($EXITCODE + $ECODE))
+  exit $EXITCODE
+fi
+
 cp -f /home/jenkins/diagnostics/arvados-workbench/$INSTANCE-application.yml $WORKSPACE/apps/workbench/config/application.yml
 
 cd $WORKSPACE/apps/workbench