1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2019 Nordix Foundation.
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=========================================================
20 name: 'uds-daily-build-package-promote'
21 projects: 'onap/sdc local/onap/uds/sdc-customization'
25 project_directories: sdc sdc-customization
27 mvn_params: '-DskipTests -Pdocker'
28 # mvn_params: '-DskipTests -Pdocker' # re-enable when unit tests pass
29 mvn_settings_xml_version:
32 uds/sdc-cassandra-init,
34 uds/sdc-be-plugin/etsi-nfv-nsd-csar,
35 uds/sdc-be-plugin/vf-csar,
36 uds/sdc-customization/eo-sdc-backend-init,
37 uds/sdc-customization/eo-cassandra-init,
39 uds/sdc-onboard-backend,
44 docker_image_artifact_directory: $WORKSPACE/artifacts/images
45 artifactory_docker_images_path: onap/uds/images
46 artifact_paths: 'sdc/catalog-be/target/catalog-be.war'
47 artifactory_artifact_path: onap/uds
48 artifact_directory: $WORKSPACE/artifacts/artifacts
49 artifactory_repo_archive_path: onap/uds/releases
50 repo_archive_artifact_directory: $WORKSPACE/artifacts/repos
51 grep_parameters: -oP (?<=uds.version>)[^<]+
53 pom_location: sdc/pom.xml
54 workspace: /home/jenkins/nordix/slave_root/workspace/
55 node: onap-uds-build-ubuntu1804
58 - '{project-name}-daily-build-package-promote'
59 - '{project-name}-build'
60 - '{project-name}-package-artifacts'
61 - '{project-name}-package-images'
62 - '{project-name}-package-repositories'
63 - '{project-name}-promote-artifacts'
64 - '{project-name}-promote-images'
65 - '{project-name}-promote-repositories'
69 name: '{project-name}-daily-build-package-promote'
70 description: 'Job for building, packing and pushing UDS artifacts including sources, docker images and other arifacts to Artifactory'
71 project-type: 'multijob'
72 workspace: '{workspace}'
78 - multi-project-parameters:
79 projects: '{projects}'
80 branches: '{branches}'
81 project_directories: '{project_directories}'
82 project_versions: '{project_versions}'
85 mvn_params: '{mvn_params}'
86 mvn_settings_xml_version: '{mvn_settings_xml_version}'
87 mvn_version: '{mvn_version}'
88 - artifact_parameters:
89 artifact_paths: '{artifact_paths}'
90 artifactory_artifact_path: '{artifactory_artifact_path}'
91 artifact_directory: '{artifact_directory}'
92 - artifactory-parameters
93 - docker-archive-parameters:
94 docker_images: '{docker_images}'
95 artifactory_docker_images_path: '{artifactory_docker_images_path}'
96 docker_image_artifact_directory: '{docker_image_artifact_directory}'
97 - repo-archive-parameters:
98 grep_parameters: '{grep_parameters}'
99 pom_location: '{pom_location}'
100 archive_name: '{archive_name}'
101 artifactory_repo_archive_path: '{artifactory_repo_archive_path}'
102 repo_archive_artifact_directory: '{repo_archive_artifact_directory}'
105 - 'pull-source-repositories'
106 - 'generate-build-metadata'
109 condition: SUCCESSFUL
111 - name: '{project-name}-build'
112 current-parameters: true
113 node-parameters: true
115 kill-phase-on: FAILURE
116 property-file: $WORKSPACE/build.properties
119 condition: SUCCESSFUL
120 execution-type: SEQUENTIALLY
122 - name: '{project-name}-package-artifacts'
123 current-parameters: true
124 node-parameters: true
126 kill-phase-on: FAILURE
127 property-file: $WORKSPACE/build.properties
128 - name: '{project-name}-package-images'
129 current-parameters: true
130 node-parameters: true
132 kill-phase-on: FAILURE
133 property-file: $WORKSPACE/build.properties
134 - name: '{project-name}-package-repositories'
135 current-parameters: true
136 node-parameters: true
138 kill-phase-on: FAILURE
139 property-file: $WORKSPACE/build.properties
142 condition: SUCCESSFUL
143 execution-type: PARALLEL
145 - name: '{project-name}-promote-artifacts'
146 current-parameters: true
147 node-parameters: true
149 kill-phase-on: FAILURE
150 property-file: $WORKSPACE/build.properties
151 - name: '{project-name}-promote-images'
152 current-parameters: true
153 node-parameters: true
155 kill-phase-on: FAILURE
156 property-file: $WORKSPACE/build.properties
157 - name: '{project-name}-promote-repositories'
158 current-parameters: true
159 node-parameters: true
161 kill-phase-on: FAILURE
162 property-file: $WORKSPACE/build.properties
166 server-name: 'Nordix Gerrit'
168 - change-merged-event
169 - comment-added-contains-event:
170 comment-contains-value: 'remerge'
172 - project-compare-type: 'PLAIN'
173 project-pattern: 'onap/sdc'
175 - branch-compare-type: 'PLAIN'
176 branch-pattern: '20.2'
177 - project-compare-type: 'PLAIN'
178 project-pattern: 'local/onap/uds/sdc-customization'
180 - branch-compare-type: 'PLAIN'
181 branch-pattern: 'master'
189 name: '{project-name}-build'
190 description: 'Job for building out uds repositories'
191 workspace: '{workspace}'
195 - 'maven-build-repositories'
199 name: '{project-name}-package-artifacts'
200 description: 'Job for archiving uds artifacts (.war, .jar files etc.)'
201 workspace: '{workspace}'
205 - 'collect-file-artifacts'
209 name: '{project-name}-package-images'
210 description: 'Job for archiving uds docker images'
211 workspace: '{workspace}'
215 - 'package-docker-images'
219 name: '{project-name}-package-repositories'
220 description: 'Job for archiving uds source repos (sdc, sdc-customization)'
221 workspace: '{workspace}'
225 - 'maven-clean-repositories'
226 - 'package-source-repositories'
230 name: '{project-name}-promote-artifacts'
231 description: 'Job for pushing uds file artifacts (.war, .jar files etc.) to Artifactory'
232 workspace: '{workspace}'
236 - 'promote-file-artifacts-to-artifactory'
238 - 'artifactory-credentials'
242 name: '{project-name}-promote-images'
243 description: 'Job for pushing uds docker images to Artifactory'
244 workspace: '{workspace}'
248 - 'promote-docker-images-to-artifactory'
250 - 'artifactory-credentials'
254 name: '{project-name}-promote-repositories'
255 description: 'Job for pushing uds source repositories (sdc, sdc-customization) to Artifactory'
256 workspace: '{workspace}'
260 - 'promote-source-repositories-to-artifactory'
262 - 'artifactory-credentials'