blob: ce545e0f82e6c00e3248e9021d80da0b9fd1d936 [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.
ktimoney88a991b2021-08-09 17:23:35 +01003# Modification Copyright 2021. Nordix Foundation.
Taka Cho6d188af2021-01-11 16:48:33 -05004# =============================================================================
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
20source ${SCRIPTS}/get-branch-mariadb.sh
21
22echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER}
23
Jim Hahncfc44f02021-04-08 15:28:15 -040024function 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
33POLICY_MODELS_VERSION=$(getVersion models)
Taka Cho6d188af2021-01-11 16:48:33 -050034export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest
35echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION}
36
Jim Hahncfc44f02021-04-08 15:28:15 -040037POLICY_API_VERSION=$(getVersion api)
Taka Cho6d188af2021-01-11 16:48:33 -050038export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest
39echo POLICY_API_VERSION=${POLICY_API_VERSION}
40
Jim Hahncfc44f02021-04-08 15:28:15 -040041POLICY_PAP_VERSION=$(getVersion pap)
Taka Cho6d188af2021-01-11 16:48:33 -050042export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest
43echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION}
44
Jim Hahncfc44f02021-04-08 15:28:15 -040045POLICY_XACML_PDP_VERSION=$(getVersion xacml-pdp)
Taka Cho6d188af2021-01-11 16:48:33 -050046export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest
47echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION}
48
Jim Hahncfc44f02021-04-08 15:28:15 -040049POLICY_DROOLS_VERSION=$(getVersion drools-pdp)
Taka Cho6d188af2021-01-11 16:48:33 -050050export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest
51echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION}
52
Jim Hahncfc44f02021-04-08 15:28:15 -040053POLICY_DROOLS_APPS_VERSION=$(getVersion drools-applications)
Taka Cho6d188af2021-01-11 16:48:33 -050054export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest
55echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION}
56
Jim Hahncfc44f02021-04-08 15:28:15 -040057POLICY_APEX_PDP_VERSION=$(getVersion apex-pdp)
Taka Cho6d188af2021-01-11 16:48:33 -050058export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest
59echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION}
60
Jim Hahncfc44f02021-04-08 15:28:15 -040061POLICY_DISTRIBUTION_VERSION=$(getVersion distribution)
Taka Cho6d188af2021-01-11 16:48:33 -050062export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest
63echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION}
Sirisha_Manchikanti4d0a1d72021-06-08 09:28:21 +010064
65POLICY_CLAMP_VERSION=$(getVersion clamp)
66export POLICY_CLAMP_VERSION=${POLICY_CLAMP_VERSION:0:5}-SNAPSHOT-latest
67echo POLICY_CLAMP_VERSION=${POLICY_CLAMP_VERSION}
ktimoney88a991b2021-08-09 17:23:35 +010068
69POLICY_DOCKER_VERSION=$(getVersion docker)
70export POLICY_DOCKER_VERSION=${POLICY_DOCKER_VERSION:0:5}-SNAPSHOT-latest
71echo POLICY_DOCKER_VERSION=${POLICY_DOCKER_VERSION}