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 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 23 | function getVersion |
| 24 | { |
| 25 | REPO=$1 |
| 26 | curl -qL --silent \ |
| 27 | https://github.com/onap/policy-$REPO/raw/${GERRIT_BRANCH}/pom.xml | |
| 28 | xmllint --xpath \ |
| 29 | '/*[local-name()="project"]/*[local-name()="version"]/text()' - |
| 30 | } |
| 31 | |
| 32 | POLICY_MODELS_VERSION=$(getVersion models) |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 33 | export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest |
| 34 | echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION} |
| 35 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 36 | POLICY_API_VERSION=$(getVersion api) |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 37 | export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest |
| 38 | echo POLICY_API_VERSION=${POLICY_API_VERSION} |
| 39 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 40 | POLICY_PAP_VERSION=$(getVersion pap) |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 41 | export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest |
| 42 | echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION} |
| 43 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 44 | POLICY_XACML_PDP_VERSION=$(getVersion xacml-pdp) |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 45 | export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest |
| 46 | echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION} |
| 47 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 48 | POLICY_DROOLS_VERSION=$(getVersion drools-pdp) |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 49 | export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest |
| 50 | echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION} |
| 51 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 52 | POLICY_DROOLS_APPS_VERSION=$(getVersion drools-applications) |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 53 | export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest |
| 54 | echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION} |
| 55 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 56 | POLICY_APEX_PDP_VERSION=$(getVersion apex-pdp) |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 57 | export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest |
| 58 | echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION} |
| 59 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 60 | POLICY_DISTRIBUTION_VERSION=$(getVersion distribution) |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 61 | export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest |
| 62 | echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION} |
Sirisha_Manchikanti | 4d0a1d7 | 2021-06-08 09:28:21 +0100 | [diff] [blame^] | 63 | |
| 64 | POLICY_CLAMP_VERSION=$(getVersion clamp) |
| 65 | export POLICY_CLAMP_VERSION=${POLICY_CLAMP_VERSION:0:5}-SNAPSHOT-latest |
| 66 | echo POLICY_CLAMP_VERSION=${POLICY_CLAMP_VERSION} |