Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame^] | 1 | # ============LICENSE_START==================================================== |
| 2 | # Copyright (C) 2020-2021 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 | source ${SCRIPTS}/get-branch-mariadb.sh |
| 20 | |
| 21 | echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER} |
| 22 | |
| 23 | POLICY_MODELS_VERSION=$( |
| 24 | curl -q --silent \ |
| 25 | https://git.onap.org/policy/models/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 26 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 27 | export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest |
| 28 | echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION} |
| 29 | |
| 30 | POLICY_API_VERSION=$( |
| 31 | curl -q --silent \ |
| 32 | https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 33 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 34 | export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest |
| 35 | echo POLICY_API_VERSION=${POLICY_API_VERSION} |
| 36 | |
| 37 | POLICY_PAP_VERSION=$( |
| 38 | curl -q --silent \ |
| 39 | https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 40 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 41 | export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest |
| 42 | echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION} |
| 43 | |
| 44 | POLICY_XACML_PDP_VERSION=$( |
| 45 | curl -q --silent \ |
| 46 | https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 47 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 48 | export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest |
| 49 | echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION} |
| 50 | |
| 51 | POLICY_DROOLS_VERSION=$( |
| 52 | curl -q --silent \ |
| 53 | https://git.onap.org/policy/drools-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 54 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 55 | export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest |
| 56 | echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION} |
| 57 | |
| 58 | POLICY_DROOLS_APPS_VERSION=$( |
| 59 | curl -q --silent \ |
| 60 | https://git.onap.org/policy/drools-applications/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 61 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 62 | export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest |
| 63 | echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION} |
| 64 | |
| 65 | POLICY_APEX_PDP_VERSION=$( |
| 66 | curl -q --silent \ |
| 67 | https://git.onap.org/policy/apex-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 68 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 69 | export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest |
| 70 | echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION} |
| 71 | |
| 72 | POLICY_DISTRIBUTION_VERSION=$( |
| 73 | curl -q --silent \ |
| 74 | https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} | |
| 75 | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -) |
| 76 | export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest |
| 77 | echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION} |