diff options
author | Gary Wu <gary.wu@futurewei.com> | 2019-07-08 17:43:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-08 17:43:25 +0000 |
commit | ca509e7e079d34e723184cab62a3b4783350e2c6 (patch) | |
tree | 138fa895f9d492de19abd25f9395675956fd0e8f /plans/policy/apex-pdp | |
parent | 4c62996cc2e741e2bfbe1c3562dd046dd070d20d (diff) | |
parent | d46ab2eb2f4254adbe2b9f604b12c0a7f4bf99ed (diff) |
Merge "Pull correct docker images for master branch"
Diffstat (limited to 'plans/policy/apex-pdp')
-rw-r--r-- | plans/policy/apex-pdp/setup.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/plans/policy/apex-pdp/setup.sh b/plans/policy/apex-pdp/setup.sh index 1e61726b..22e813df 100644 --- a/plans/policy/apex-pdp/setup.sh +++ b/plans/policy/apex-pdp/setup.sh @@ -19,6 +19,10 @@ # # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= +source ${SCRIPTS}/policy/config/policy-csit.conf +export POLICY_MARIADB_VER +echo ${GERRIT_BRANCH} +echo ${POLICY_MARIADB_VER} echo "Uninstall docker-py and reinstall docker." pip uninstall -y docker-py @@ -53,7 +57,7 @@ ${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn -v cd .. git clone http://gerrit.onap.org/r/oparent -git clone --depth 1 https://gerrit.onap.org/r/policy/models -b master +git clone --depth 1 https://gerrit.onap.org/r/policy/models -b ${GERRIT_BRANCH} cd models/models-sim/models-sim-dmaap ${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn clean install -DskipTests --settings ${WORK_DIR}/oparent/settings.xml bash ./src/main/package/docker/docker_build.sh @@ -61,6 +65,15 @@ cd ${WORKSPACE} rm -rf ${WORK_DIR} 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_APEX_PDP_VERSION="$(curl -q --silent https://git.onap.org/policy/apex-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)" + +echo ${POLICY_API_VERSION} +echo ${POLICY_PAP_VERSION} +echo ${POLICY_APEX_PDP_VERSION} + # Adding this waiting container due to race condition between pap and mariadb docker-compose -f ${WORKSPACE}/scripts/policy/policy-apex-pdp/docker-compose-apex.yml run --rm start_dependencies |