Jim Hahn | 0053242 | 2020-09-17 17:03:34 -0400 | [diff] [blame] | 1 | # ============LICENSE_START==================================================== |
| 2 | # Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. |
| 3 | # ============================================================================= |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END====================================================== |
| 18 | |
| 19 | SCRIPTS="${SCRIPTS-scripts}" |
| 20 | |
| 21 | source ${SCRIPTS}/policy/config/policy-csit.conf |
| 22 | export POLICY_MARIADB_VER |
| 23 | |
| 24 | echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER} |
| 25 | |
| 26 | POLICY_MODELS_VERSION=$( |
| 27 | curl -q --silent \ |
| 28 | https://git.onap.org/policy/models/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 29 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 30 | export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest |
| 31 | echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION} |
| 32 | |
| 33 | POLICY_API_VERSION=$( |
| 34 | curl -q --silent \ |
| 35 | https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 36 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 37 | export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest |
| 38 | echo POLICY_API_VERSION=${POLICY_API_VERSION} |
| 39 | |
| 40 | POLICY_PAP_VERSION=$( |
| 41 | curl -q --silent \ |
| 42 | https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 43 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 44 | export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest |
| 45 | echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION} |
| 46 | |
| 47 | POLICY_XACML_PDP_VERSION=$( |
| 48 | curl -q --silent \ |
| 49 | https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 50 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 51 | export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest |
| 52 | echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION} |
| 53 | |
| 54 | POLICY_DROOLS_VERSION=$( |
| 55 | curl -q --silent \ |
| 56 | https://git.onap.org/policy/drools-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 57 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 58 | export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest |
| 59 | echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION} |
| 60 | |
| 61 | POLICY_DROOLS_APPS_VERSION=$( |
| 62 | curl -q --silent \ |
| 63 | https://git.onap.org/policy/drools-applications/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 64 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 65 | export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest |
| 66 | echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION} |
| 67 | |
| 68 | POLICY_APEX_PDP_VERSION=$( |
| 69 | curl -q --silent \ |
| 70 | https://git.onap.org/policy/apex-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 71 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 72 | export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest |
| 73 | echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION} |
| 74 | |
| 75 | POLICY_DISTRIBUTION_VERSION=$( |
| 76 | curl -q --silent \ |
| 77 | https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 78 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 79 | export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest |
| 80 | echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION} |