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. |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 3 | # Modification Copyright 2021-2022 Nordix Foundation. |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 4 | # Modifications Copyright (C) 2021 Bell Canada. All rights reserved. |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 5 | # ============================================================================= |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # |
| 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ============LICENSE_END====================================================== |
| 20 | |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 21 | source "${SCRIPTS}"/get-branch.sh |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 22 | |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 23 | export POLICY_MARIADB_VER=10.5.8 |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 24 | echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER} |
| 25 | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 26 | function getVersion |
| 27 | { |
| 28 | REPO=$1 |
| 29 | curl -qL --silent \ |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 30 | https://github.com/onap/policy-"$REPO"/raw/"${GERRIT_BRANCH}"/pom.xml | |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 31 | xmllint --xpath \ |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 32 | '/*[local-name()="project"]/*[local-name()="version"]/text()' - | |
| 33 | awk -F \. '{print $1"."$2"-SNAPSHOT-latest"}' |
Jim Hahn | cfc44f0 | 2021-04-08 15:28:15 -0400 | [diff] [blame] | 34 | } |
| 35 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 36 | export POLICY_MODELS_VERSION=$(getVersion models) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 37 | echo POLICY_MODELS_VERSION="${POLICY_MODELS_VERSION}" |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 38 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 39 | export POLICY_API_VERSION=$(getVersion api) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 40 | echo POLICY_API_VERSION="${POLICY_API_VERSION}" |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 41 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 42 | export POLICY_PAP_VERSION=$(getVersion pap) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 43 | echo POLICY_PAP_VERSION="${POLICY_PAP_VERSION}" |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 44 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 45 | export POLICY_XACML_PDP_VERSION=$(getVersion xacml-pdp) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 46 | echo POLICY_XACML_PDP_VERSION="${POLICY_XACML_PDP_VERSION}" |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 47 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 48 | export POLICY_DROOLS_VERSION=$(getVersion drools-pdp) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 49 | echo POLICY_DROOLS_VERSION="${POLICY_DROOLS_VERSION}" |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 50 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 51 | export POLICY_DROOLS_APPS_VERSION=$(getVersion drools-applications) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 52 | echo POLICY_DROOLS_APPS_VERSION="${POLICY_DROOLS_APPS_VERSION}" |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 53 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 54 | export POLICY_APEX_PDP_VERSION=$(getVersion apex-pdp) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 55 | echo POLICY_APEX_PDP_VERSION="${POLICY_APEX_PDP_VERSION}" |
Taka Cho | 6d188af | 2021-01-11 16:48:33 -0500 | [diff] [blame] | 56 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 57 | export POLICY_DISTRIBUTION_VERSION=$(getVersion distribution) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 58 | echo POLICY_DISTRIBUTION_VERSION="${POLICY_DISTRIBUTION_VERSION}" |
Sirisha_Manchikanti | 4d0a1d7 | 2021-06-08 09:28:21 +0100 | [diff] [blame] | 59 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 60 | export POLICY_CLAMP_VERSION=$(getVersion clamp) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 61 | echo POLICY_CLAMP_VERSION="${POLICY_CLAMP_VERSION}" |
ktimoney | 88a991b | 2021-08-09 17:23:35 +0100 | [diff] [blame] | 62 | |
a.sreekumar | d00369a | 2021-10-19 12:38:04 +0100 | [diff] [blame] | 63 | export POLICY_DOCKER_VERSION=$(getVersion docker) |
adheli.tavares | 7abe36c | 2022-02-02 14:53:10 +0000 | [diff] [blame] | 64 | echo POLICY_DOCKER_VERSION="${POLICY_DOCKER_VERSION}" |
saul.gill | 2642450 | 2022-03-15 11:56:01 +0000 | [diff] [blame] | 65 | |
| 66 | export POLICY_GUI_VERSION=$(getVersion gui) |
| 67 | echo POLICY_GUI_VERSION="${POLICY_GUI_VERSION}" |