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

jenkins/run-performance-suite.sh

index 2944bda5ed353b30632d78d63fb3cd139cf1462a..07d002aab7799dc67f6499c0e726354e5fd538c3 100755 (executable)
@@ -57,6 +57,14 @@ if [[ "$REVISION" != '' ]]; then
   git checkout $REVISION
 fi
 
+ECODE=$?
+
+if [[ "$ECODE" != "0" ]]; then
+  title "!!!!!! PERFORMANCE TESTS 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