blob: d3f6bcdaf3ed3db28196eb10eeecba021400c18a [file] [log] [blame]
Taka Cho6d188af2021-01-11 16:48:33 -05001# ============LICENSE_START====================================================
2# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
adheli.tavares7abe36c2022-02-02 14:53:10 +00003# Modification Copyright 2021-2022 Nordix Foundation.
a.sreekumard00369a2021-10-19 12:38:04 +01004# Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
Taka Cho6d188af2021-01-11 16:48:33 -05005# =============================================================================
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.tavares7abe36c2022-02-02 14:53:10 +000021source "${SCRIPTS}"/get-branch.sh
Taka Cho6d188af2021-01-11 16:48:33 -050022
adheli.tavares7abe36c2022-02-02 14:53:10 +000023export POLICY_MARIADB_VER=10.5.8
Taka Cho6d188af2021-01-11 16:48:33 -050024echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER}
25
Jim Hahncfc44f02021-04-08 15:28:15 -040026function getVersion
27{
28 REPO=$1
29 curl -qL --silent \
adheli.tavares7abe36c2022-02-02 14:53:10 +000030 https://github.com/onap/policy-"$REPO"/raw/"${GERRIT_BRANCH}"/pom.xml |
Jim Hahncfc44f02021-04-08 15:28:15 -040031 xmllint --xpath \
a.sreekumard00369a2021-10-19 12:38:04 +010032 '/*[local-name()="project"]/*[local-name()="version"]/text()' - |
33 awk -F \. '{print $1"."$2"-SNAPSHOT-latest"}'
Jim Hahncfc44f02021-04-08 15:28:15 -040034}
35
a.sreekumard00369a2021-10-19 12:38:04 +010036export POLICY_MODELS_VERSION=$(getVersion models)
adheli.tavares7abe36c2022-02-02 14:53:10 +000037echo POLICY_MODELS_VERSION="${POLICY_MODELS_VERSION}"
Taka Cho6d188af2021-01-11 16:48:33 -050038
a.sreekumard00369a2021-10-19 12:38:04 +010039export POLICY_API_VERSION=$(getVersion api)
adheli.tavares7abe36c2022-02-02 14:53:10 +000040echo POLICY_API_VERSION="${POLICY_API_VERSION}"
Taka Cho6d188af2021-01-11 16:48:33 -050041
a.sreekumard00369a2021-10-19 12:38:04 +010042export POLICY_PAP_VERSION=$(getVersion pap)
adheli.tavares7abe36c2022-02-02 14:53:10 +000043echo POLICY_PAP_VERSION="${POLICY_PAP_VERSION}"
Taka Cho6d188af2021-01-11 16:48:33 -050044
a.sreekumard00369a2021-10-19 12:38:04 +010045export POLICY_XACML_PDP_VERSION=$(getVersion xacml-pdp)
adheli.tavares7abe36c2022-02-02 14:53:10 +000046echo POLICY_XACML_PDP_VERSION="${POLICY_XACML_PDP_VERSION}"
Taka Cho6d188af2021-01-11 16:48:33 -050047
a.sreekumard00369a2021-10-19 12:38:04 +010048export POLICY_DROOLS_VERSION=$(getVersion drools-pdp)
adheli.tavares7abe36c2022-02-02 14:53:10 +000049echo POLICY_DROOLS_VERSION="${POLICY_DROOLS_VERSION}"
Taka Cho6d188af2021-01-11 16:48:33 -050050
a.sreekumard00369a2021-10-19 12:38:04 +010051export POLICY_DROOLS_APPS_VERSION=$(getVersion drools-applications)
adheli.tavares7abe36c2022-02-02 14:53:10 +000052echo POLICY_DROOLS_APPS_VERSION="${POLICY_DROOLS_APPS_VERSION}"
Taka Cho6d188af2021-01-11 16:48:33 -050053
a.sreekumard00369a2021-10-19 12:38:04 +010054export POLICY_APEX_PDP_VERSION=$(getVersion apex-pdp)
adheli.tavares7abe36c2022-02-02 14:53:10 +000055echo POLICY_APEX_PDP_VERSION="${POLICY_APEX_PDP_VERSION}"
Taka Cho6d188af2021-01-11 16:48:33 -050056
a.sreekumard00369a2021-10-19 12:38:04 +010057export POLICY_DISTRIBUTION_VERSION=$(getVersion distribution)
adheli.tavares7abe36c2022-02-02 14:53:10 +000058echo POLICY_DISTRIBUTION_VERSION="${POLICY_DISTRIBUTION_VERSION}"
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +010059
a.sreekumard00369a2021-10-19 12:38:04 +010060export POLICY_CLAMP_VERSION=$(getVersion clamp)
adheli.tavares7abe36c2022-02-02 14:53:10 +000061echo POLICY_CLAMP_VERSION="${POLICY_CLAMP_VERSION}"
ktimoney88a991b2021-08-09 17:23:35 +010062
a.sreekumard00369a2021-10-19 12:38:04 +010063export POLICY_DOCKER_VERSION=$(getVersion docker)
adheli.tavares7abe36c2022-02-02 14:53:10 +000064echo POLICY_DOCKER_VERSION="${POLICY_DOCKER_VERSION}"
saul.gill26424502022-03-15 11:56:01 +000065
66export POLICY_GUI_VERSION=$(getVersion gui)
67echo POLICY_GUI_VERSION="${POLICY_GUI_VERSION}"