blob: a20cdf6328a29df820eac19e08dfe0a2323f9dbd [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.
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
19source ${SCRIPTS}/get-branch-mariadb.sh
20
21echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER}
22
Jim Hahncfc44f02021-04-08 15:28:15 -040023function 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
32POLICY_MODELS_VERSION=$(getVersion models)
Taka Cho6d188af2021-01-11 16:48:33 -050033export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest
34echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION}
35
Jim Hahncfc44f02021-04-08 15:28:15 -040036POLICY_API_VERSION=$(getVersion api)
Taka Cho6d188af2021-01-11 16:48:33 -050037export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest
38echo POLICY_API_VERSION=${POLICY_API_VERSION}
39
Jim Hahncfc44f02021-04-08 15:28:15 -040040POLICY_PAP_VERSION=$(getVersion pap)
Taka Cho6d188af2021-01-11 16:48:33 -050041export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest
42echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION}
43
Jim Hahncfc44f02021-04-08 15:28:15 -040044POLICY_XACML_PDP_VERSION=$(getVersion xacml-pdp)
Taka Cho6d188af2021-01-11 16:48:33 -050045export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest
46echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION}
47
Jim Hahncfc44f02021-04-08 15:28:15 -040048POLICY_DROOLS_VERSION=$(getVersion drools-pdp)
Taka Cho6d188af2021-01-11 16:48:33 -050049export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest
50echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION}
51
Jim Hahncfc44f02021-04-08 15:28:15 -040052POLICY_DROOLS_APPS_VERSION=$(getVersion drools-applications)
Taka Cho6d188af2021-01-11 16:48:33 -050053export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest
54echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION}
55
Jim Hahncfc44f02021-04-08 15:28:15 -040056POLICY_APEX_PDP_VERSION=$(getVersion apex-pdp)
Taka Cho6d188af2021-01-11 16:48:33 -050057export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest
58echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION}
59
Jim Hahncfc44f02021-04-08 15:28:15 -040060POLICY_DISTRIBUTION_VERSION=$(getVersion distribution)
Taka Cho6d188af2021-01-11 16:48:33 -050061export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest
62echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION}
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +010063
64POLICY_CLAMP_VERSION=$(getVersion clamp)
65export POLICY_CLAMP_VERSION=${POLICY_CLAMP_VERSION:0:5}-SNAPSHOT-latest
66echo POLICY_CLAMP_VERSION=${POLICY_CLAMP_VERSION}