blob: 1906292c548e8112a4f0633b0e9f02d09692888e [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
23POLICY_MODELS_VERSION=$(
24 curl -q --silent \
25 https://git.onap.org/policy/models/plain/pom.xml?h=${GERRIT_BRANCH} |
26 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
27export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest
28echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION}
29
30POLICY_API_VERSION=$(
31 curl -q --silent \
32 https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} |
33 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
34export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest
35echo POLICY_API_VERSION=${POLICY_API_VERSION}
36
37POLICY_PAP_VERSION=$(
38 curl -q --silent \
39 https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} |
40 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
41export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest
42echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION}
43
44POLICY_XACML_PDP_VERSION=$(
45 curl -q --silent \
46 https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
47 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
48export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest
49echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION}
50
51POLICY_DROOLS_VERSION=$(
52 curl -q --silent \
53 https://git.onap.org/policy/drools-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
54 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
55export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest
56echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION}
57
58POLICY_DROOLS_APPS_VERSION=$(
59 curl -q --silent \
60 https://git.onap.org/policy/drools-applications/plain/pom.xml?h=${GERRIT_BRANCH} |
61 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
62export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest
63echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION}
64
65POLICY_APEX_PDP_VERSION=$(
66 curl -q --silent \
67 https://git.onap.org/policy/apex-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
68 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
69export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest
70echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION}
71
72POLICY_DISTRIBUTION_VERSION=$(
73 curl -q --silent \
74 https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} |
75 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
76export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest
77echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION}