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