aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilal A <bilal@research.att.com>2019-06-17 15:51:08 +0000
committerBilal A <bilal@research.att.com>2019-06-17 18:14:04 +0000
commit2f39fae08c3c61939152aabe9b298834e7d2c4e9 (patch)
treec328fadd2f2264cfbdebab62a653bd9f4aab6d5d
parentc5fc0e448929f393941870cf071f3f1f54c4604c (diff)
Fixing image download problem
Adding fallback image name to download if image name present in pom.xml is not available in nexus repo. Issue-ID: POLICY-1864 Signed-off-by: Bilal A <bilal@research.att.com> Change-Id: I0f00faef1e33a27edd195de3eba82276ca38d501
-rw-r--r--plans/policy/distribution/setup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/plans/policy/distribution/setup.sh b/plans/policy/distribution/setup.sh
index 63d85083..eca23066 100644
--- a/plans/policy/distribution/setup.sh
+++ b/plans/policy/distribution/setup.sh
@@ -22,9 +22,11 @@ echo $GERRIT_BRANCH
sudo apt-get -y install libxml2-utils
export POLICY_DISTRIBUTION_VERSION="$(curl --silent https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_DISTRIBUTION_VERSION=$POLICY_DISTRIBUTION_VERSION"-latest"
echo $POLICY_DISTRIBUTION_VERSION
docker run -d --name policy-distribution -p 6969:6969 -it nexus3.onap.org:10001/onap/policy-distribution:$POLICY_DISTRIBUTION_VERSION
+
POLICY_DISTRIBUTION_IP=`get-instance-ip.sh policy-distribution`
echo DISTRIBUTION IP IS ${POLICY_DISTRIBUTION_IP}
# Wait for initialization