From: Ward Vandewege Date: Wed, 8 Oct 2014 14:56:24 +0000 (-0400) Subject: Allow for run-diagnostics-suite.sh to pull the git revision to test from X-Git-Url: https://git.arvados.org/arvados-dev.git/commitdiff_plain/c1ab6401ba557f8ca015eb462f8bbba692c7b88a Allow for run-diagnostics-suite.sh to pull the git revision to test from a configuration file. No issue # --- diff --git a/jenkins/run-diagnostics-suite.sh b/jenkins/run-diagnostics-suite.sh index e1229ff..015a053 100755 --- a/jenkins/run-diagnostics-suite.sh +++ b/jenkins/run-diagnostics-suite.sh @@ -10,6 +10,22 @@ if [[ "$INSTANCE" == '' ]]; then exit 1 fi +if [[ "$REVISION" == '' ]]; then + # See if there's a configuration file with the revision? + CONFIG_PATH=/home/jenkins/configuration/$INSTANCE.arvadosapi.com-versions.conf + if [[ -f $CONFIG_PATH ]]; then + echo "Loading git revision from $CONFIG_PATH" + . $CONFIG_PATH + REVISION=$ARVADOS_GIT_REVISION + fi +fi + +if [[ "$REVISION" != '' ]]; then + echo "Git revision is $REVISION" +else + echo "No valid git revision found, proceeding with what is in place." +fi + # Sanity check if ! [[ -n "$WORKSPACE" ]]; then echo "WORKSPACE environment variable not set"