X-Git-Url: https://git.arvados.org/arvados-dev.git/blobdiff_plain/0ec1187c3f9b73dec2078ddfd98d3a248c3a1648..7c80a8b76a2972ef4e42dcc281f46d9e0c8839ea:/jenkins/run-diagnostics-suite.sh 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"