summaryrefslogtreecommitdiffstats
path: root/csit/get-versions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'csit/get-versions.sh')
-rwxr-xr-x[-rw-r--r--]csit/get-versions.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/csit/get-versions.sh b/csit/get-versions.sh
index 6e50d088..87c43b50 100644..100755
--- a/csit/get-versions.sh
+++ b/csit/get-versions.sh
@@ -1,3 +1,5 @@
+#! /bin/bash
+
# ============LICENSE_START====================================================
# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
# Modification Copyright 2021-2022 Nordix Foundation.
@@ -18,7 +20,13 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END======================================================
-source "${SCRIPTS}"/get-branch.sh
+
+if [[ -z "$GERRIT_BRANCH" ]]
+then
+ source "${SCRIPTS}"/get-branch.sh
+else
+ echo GERRIT_BRANCH="${GERRIT_BRANCH}"
+fi
export POLICY_MARIADB_VER=10.5.8
echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER}