aboutsummaryrefslogtreecommitdiffstats
path: root/plans/policy/xacml-pdp/setup.sh
diff options
context:
space:
mode:
authorBilal A <bilal@research.att.com>2019-12-17 02:17:57 +0000
committerBilal A <bilal@research.att.com>2019-12-17 02:17:57 +0000
commit71e5737a578370615458b2a85067aa3ee69bc089 (patch)
treebfb3a3385980cda29933d274de1012572bb8fc20 /plans/policy/xacml-pdp/setup.sh
parent99022c8b866b18a8d08b8f1247dc63a4e81c834b (diff)
Updating CSITs to pull required images
LF scripts delete the images that don't have "-latest" at the end. These changes instead of pulling images based on exact pom.xml file version, now pull images with tags: major.minor-SNAPSHOT-latest Issue-ID: POLICY-2286 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: Ieebf0f2587e4b4f26152a1199a29ba4c6e93a298
Diffstat (limited to 'plans/policy/xacml-pdp/setup.sh')
-rw-r--r--plans/policy/xacml-pdp/setup.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/plans/policy/xacml-pdp/setup.sh b/plans/policy/xacml-pdp/setup.sh
index 9a2e92fe..e66102c6 100644
--- a/plans/policy/xacml-pdp/setup.sh
+++ b/plans/policy/xacml-pdp/setup.sh
@@ -70,9 +70,12 @@ sleep 3
sudo apt-get -y install libxml2-utils
-export POLICY_API_VERSION="$(curl -q --silent https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
-export POLICY_PAP_VERSION="$(curl -q --silent https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
-export POLICY_XACML_PDP_VERSION="$(curl -q --silent https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+POLICY_API_VERSION_EXTRACT="$(curl -q --silent https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_API_VERSION="${POLICY_API_VERSION_EXTRACT:0:3}-SNAPSHOT-latest"
+POLICY_PAP_VERSION_EXTRACT="$(curl -q --silent https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_PAP_VERSION="${POLICY_PAP_VERSION_EXTRACT:0:3}-SNAPSHOT-latest"
+POLICY_XACML_PDP_VERSION_EXTRACT="$(curl -q --silent https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_XACML_PDP_VERSION="${POLICY_XACML_PDP_VERSION_EXTRACT:0:3}-SNAPSHOT-latest"
echo ${POLICY_API_VERSION}
echo ${POLICY_PAP_VERSION}