aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/policy
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-05-28 08:55:32 -0400
committerJim Hahn <jrh3@att.com>2020-05-28 08:57:13 -0400
commit3fdcd619e63905d6a47a13a345a243ac30d212ec (patch)
treeb827bc7d9d8cce6561b3ab51174931088c4d736d /scripts/policy
parent60e200441cd0f81d88c63b41eb82d3e236328014 (diff)
Default CSIT to master branch
Added "defaultbranch=master" to .gitreview file. Also modified Policy CSITs to get the branch from the .gitreview file instead of hard-coding it in a config file. Issue-ID: POLICY-2597 Change-Id: I05e969d3efdaf09c4fca4012131983ca26423ab0 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'scripts/policy')
-rw-r--r--scripts/policy/config/policy-csit.conf6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/policy/config/policy-csit.conf b/scripts/policy/config/policy-csit.conf
index 1858698a..95c14504 100644
--- a/scripts/policy/config/policy-csit.conf
+++ b/scripts/policy/config/policy-csit.conf
@@ -1,3 +1,7 @@
-GERRIT_BRANCH=master
POLICY_MARIADB_VER=10.2.25
NEXUS_URL=https://nexus.onap.org/content/repositories/snapshots
+
+GIT_TOP=$(git rev-parse --show-toplevel)
+GERRIT_BRANCH=$(awk -F= '$1 == "defaultbranch" { print $2 }' \
+ "${GIT_TOP}"/.gitreview)
+echo GERRIT_BRANCH=${GERRIT_BRANCH}