blob: d37b4792bf6d4dbc5c8efc0b612c7b06a3bfa4bb [file] [log] [blame]
Jim Hahn00532422020-09-17 17:03:34 -04001# ============LICENSE_START====================================================
2# Copyright (C) 2020 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
19SCRIPTS="${SCRIPTS-scripts}"
20
21source ${SCRIPTS}/policy/config/policy-csit.conf
22export POLICY_MARIADB_VER
23
24echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER}
25
26POLICY_MODELS_VERSION=$(
27 curl -q --silent \
28 https://git.onap.org/policy/models/plain/pom.xml?h=${GERRIT_BRANCH} |
29 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
30export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest
31echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION}
32
33POLICY_API_VERSION=$(
34 curl -q --silent \
35 https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} |
36 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
37export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest
38echo POLICY_API_VERSION=${POLICY_API_VERSION}
39
40POLICY_PAP_VERSION=$(
41 curl -q --silent \
42 https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} |
43 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
44export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest
45echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION}
46
47POLICY_XACML_PDP_VERSION=$(
48 curl -q --silent \
49 https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
50 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
51export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest
52echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION}
53
54POLICY_DROOLS_VERSION=$(
55 curl -q --silent \
56 https://git.onap.org/policy/drools-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
57 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
58export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest
59echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION}
60
61POLICY_DROOLS_APPS_VERSION=$(
62 curl -q --silent \
63 https://git.onap.org/policy/drools-applications/plain/pom.xml?h=${GERRIT_BRANCH} |
64 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
65export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest
66echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION}
67
68POLICY_APEX_PDP_VERSION=$(
69 curl -q --silent \
70 https://git.onap.org/policy/apex-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
71 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
72export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest
73echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION}
74
75POLICY_DISTRIBUTION_VERSION=$(
76 curl -q --silent \
77 https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} |
78 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
79export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest
80echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION}