X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=plans%2Fpolicy%2Fapi%2Fsetup.sh;fp=plans%2Fpolicy%2Fapi%2Fsetup.sh;h=6f6cc294c41052729f02b05e209d5e63418f140b;hb=c5fc0e448929f393941870cf071f3f1f54c4604c;hp=6168085e4ea3686040a7b6ef03b51329b8f75b53;hpb=4f4849dc9bd3b584e564ccd83651607941f2a95e;p=integration%2Fcsit.git diff --git a/plans/policy/api/setup.sh b/plans/policy/api/setup.sh index 6168085e..6f6cc294 100644 --- a/plans/policy/api/setup.sh +++ b/plans/policy/api/setup.sh @@ -17,11 +17,19 @@ # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= +# Select branch +GERRIT_BRANCH=$(cat ${SCRIPTS}/policy/config/policy-csit.conf | cut -d "=" -f2) +echo $GERRIT_BRANCH + echo "Uninstall docker-py and reinstall docker." pip uninstall -y docker-py pip uninstall -y docker pip install -U docker==2.7.0 + +sudo apt-get -y install libxml2-utils +export POLICY_API_VERSION="$(curl --silent https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)" +echo $POLICY_API_VERSION # Adding this waiting container to avoid race condition between api and mariadb containers. docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-api.yml run --rm start_dependencies