From fc7fe0e6a0c3e4c3dc24bf443fcbdbd9d00ccaa7 Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Mon, 23 Jan 2017 13:35:21 -0500 Subject: [PATCH] Abort performance suite with prejudice if the git checkout fails. No issue # --- jenkins/run-performance-suite.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jenkins/run-performance-suite.sh b/jenkins/run-performance-suite.sh index 2944bda..07d002a 100755 --- a/jenkins/run-performance-suite.sh +++ b/jenkins/run-performance-suite.sh @@ -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 -- 2.30.2