1 # ============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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END======================================================
19 SCRIPTS="${SCRIPTS-scripts}"
21 source ${SCRIPTS}/policy/config/policy-csit.conf
22 export POLICY_MARIADB_VER
24 echo POLICY_MARIADB_VER=${POLICY_MARIADB_VER}
26 POLICY_MODELS_VERSION=$(
28 https://git.onap.org/policy/models/plain/pom.xml?h=${GERRIT_BRANCH} |
29 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
30 export POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION:0:3}-SNAPSHOT-latest
31 echo POLICY_MODELS_VERSION=${POLICY_MODELS_VERSION}
35 https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} |
36 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
37 export POLICY_API_VERSION=${POLICY_API_VERSION:0:3}-SNAPSHOT-latest
38 echo POLICY_API_VERSION=${POLICY_API_VERSION}
42 https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} |
43 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
44 export POLICY_PAP_VERSION=${POLICY_PAP_VERSION:0:3}-SNAPSHOT-latest
45 echo POLICY_PAP_VERSION=${POLICY_PAP_VERSION}
47 POLICY_XACML_PDP_VERSION=$(
49 https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
50 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
51 export POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION:0:3}-SNAPSHOT-latest
52 echo POLICY_XACML_PDP_VERSION=${POLICY_XACML_PDP_VERSION}
54 POLICY_DROOLS_VERSION=$(
56 https://git.onap.org/policy/drools-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
57 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
58 export POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION:0:3}-SNAPSHOT-latest
59 echo POLICY_DROOLS_VERSION=${POLICY_DROOLS_VERSION}
61 POLICY_DROOLS_APPS_VERSION=$(
63 https://git.onap.org/policy/drools-applications/plain/pom.xml?h=${GERRIT_BRANCH} |
64 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
65 export POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION:0:3}-SNAPSHOT-latest
66 echo POLICY_DROOLS_APPS_VERSION=${POLICY_DROOLS_APPS_VERSION}
68 POLICY_APEX_PDP_VERSION=$(
70 https://git.onap.org/policy/apex-pdp/plain/pom.xml?h=${GERRIT_BRANCH} |
71 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
72 export POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION:0:3}-SNAPSHOT-latest
73 echo POLICY_APEX_PDP_VERSION=${POLICY_APEX_PDP_VERSION}
75 POLICY_DISTRIBUTION_VERSION=$(
77 https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} |
78 xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)
79 export POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION:0:3}-SNAPSHOT-latest
80 echo POLICY_DISTRIBUTION_VERSION=${POLICY_DISTRIBUTION_VERSION}