X-Git-Url: https://git.arvados.org/arvados-dev.git/blobdiff_plain/6c63e6c0a80c1f77a9f96be9956aa2a31147a89e..0bedacbf91e4bdf6791ca5fc2d5b006f9197d034:/jenkins/run-performance-suite.sh diff --git a/jenkins/run-performance-suite.sh b/jenkins/run-performance-suite.sh index 2944bda..24061b6 100755 --- a/jenkins/run-performance-suite.sh +++ b/jenkins/run-performance-suite.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + EXITCODE=0 INSTANCE=$1 @@ -57,6 +61,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 @@ -74,7 +86,7 @@ RAILS_ENV=performance bundle exec rake test:benchmark ECODE=$? if [[ "$REVISION" != '' ]]; then - git checkout master + git checkout main fi if [[ "$ECODE" != "0" ]]; then