X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=plans%2Fpolicy%2Fdrools-applications%2Fsetup.sh;h=e550cdb0a35241ca2661f5cf546d8768439722cd;hb=71e5737a578370615458b2a85067aa3ee69bc089;hp=24422a6384a55cb44f47a61ac5b0907375432fa3;hpb=2d3f0db728f0e4c24e4a5461edea4a4ffa97d97b;p=integration%2Fcsit.git diff --git a/plans/policy/drools-applications/setup.sh b/plans/policy/drools-applications/setup.sh index 24422a63..e550cdb0 100755 --- a/plans/policy/drools-applications/setup.sh +++ b/plans/policy/drools-applications/setup.sh @@ -16,12 +16,22 @@ # # 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 pip uninstall -y docker pip install -U docker==2.7.0 +sudo apt-get -y install libxml2-utils +POLICY_DROOLS_APPS_VERSION_EXTRACT="$(curl -q --silent https://git.onap.org/policy/drools-applications/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)" +echo ${POLICY_DROOLS_APPS_VERSION_EXTRACT} +export POLICY_DROOLS_APPS_VERSION="${POLICY_DROOLS_APPS_VERSION_EXTRACT:0:3}-SNAPSHOT-latest" +echo ${POLICY_DROOLS_APPS_VERSION} + docker login -u docker -p docker nexus3.onap.org:10001 # Adding this waiting container to avoid race condition between api and mariadb containers.