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'
24 branches: 20.2, master
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:
31 uds/sdc-cassandra-init,
33 uds/sdc-be-plugin/etsi-nfv-nsd-csar,
34 uds/sdc-be-plugin/vf-csar,
35 uds/sdc-customization/eo-sdc-backend-init,
36 uds/sdc-customization/eo-cassandra-init,
38 uds/sdc-onboard-backend,
43 docker_image_artifact_directory: $WORKSPACE/artifacts/images
44 artifactory_docker_images_path: onap/uds/images
45 artifact_paths: 'sdc/catalog-be/target/catalog-be-*.war'
46 artifactory_artifact_path: onap/uds
47 artifact_directory: $WORKSPACE/artifacts/artifacts
48 artifactory_repo_archive_path: onap/uds/releases
49 repo_archive_artifact_directory: $WORKSPACE/artifacts/repos
50 grep_parameters: -oP (?<=uds.version>)[^<]+
52 pom_location: sdc/pom.xml
53 workspace: /home/jenkins/nordix/slave_root/workspace/
54 node: onap-uds-build-ubuntu1804
57 - '{project-name}-daily-build-package-promote'
58 - '{project-name}-build'
59 - '{project-name}-package-artifacts'
60 - '{project-name}-package-images'
61 - '{project-name}-package-repositories'
62 - '{project-name}-promote-artifacts'
63 - '{project-name}-promote-images'
64 - '{project-name}-promote-repositories'
68 name: '{project-name}-daily-build-package-promote'
69 description: 'Job for building, packing and pushing UDS artifacts including sources, docker images and other arifacts to Artifactory'
70 project-type: 'multijob'
71 workspace: '{workspace}'
74 - multi-project-parameters:
75 projects: '{projects}'
76 branches: '{branches}'
77 project_directories: '{project_directories}'
78 project_versions: '{project_versions}'
81 mvn_params: '{mvn_params}'
82 mvn_settings_xml_version: '{mvn_settings_xml_version}'
83 - artifact_parameters:
84 artifact_paths: '{artifact_paths}'
85 artifactory_artifact_path: '{artifactory_artifact_path}'
86 artifact_directory: '{artifact_directory}'
87 - artifactory-parameters
88 - docker-archive-parameters:
89 docker_images: '{docker_images}'
90 artifactory_docker_images_path: '{artifactory_docker_images_path}'
91 docker_image_artifact_directory: '{docker_image_artifact_directory}'
92 - repo-archive-parameters:
93 grep_parameters: '{grep_parameters}'
94 pom_location: '{pom_location}'
95 archive_name: '{archive_name}'
96 artifactory_repo_archive_path: '{artifactory_repo_archive_path}'
97 repo_archive_artifact_directory: '{repo_archive_artifact_directory}'
100 - 'pull-source-repositories'
101 - 'generate-build-metadata'
104 condition: SUCCESSFUL
106 - name: '{project-name}-build'
107 current-parameters: true
108 node-parameters: true
110 kill-phase-on: FAILURE
111 property-file: $WORKSPACE/build.properties
114 condition: SUCCESSFUL
115 execution-type: SEQUENTIALLY
117 - name: '{project-name}-package-artifacts'
118 current-parameters: true
119 node-parameters: true
121 kill-phase-on: FAILURE
122 property-file: $WORKSPACE/build.properties
123 - name: '{project-name}-package-images'
124 current-parameters: true
125 node-parameters: true
127 kill-phase-on: FAILURE
128 property-file: $WORKSPACE/build.properties
129 - name: '{project-name}-package-repositories'
130 current-parameters: true
131 node-parameters: true
133 kill-phase-on: FAILURE
134 property-file: $WORKSPACE/build.properties
137 condition: SUCCESSFUL
138 execution-type: PARALLEL
140 - name: '{project-name}-promote-artifacts'
141 current-parameters: true
142 node-parameters: true
144 kill-phase-on: FAILURE
145 property-file: $WORKSPACE/build.properties
146 - name: '{project-name}-promote-images'
147 current-parameters: true
148 node-parameters: true
150 kill-phase-on: FAILURE
151 property-file: $WORKSPACE/build.properties
152 - name: '{project-name}-promote-repositories'
153 current-parameters: true
154 node-parameters: true
156 kill-phase-on: FAILURE
157 property-file: $WORKSPACE/build.properties
161 server-name: 'Nordix Gerrit'
163 - change-merged-event
164 - comment-added-contains-event:
165 comment-contains-value: 'remerge'
167 - project-compare-type: 'PLAIN'
168 project-pattern: 'onap/sdc'
170 - branch-compare-type: 'PLAIN'
171 branch-pattern: '20.2'
172 - project-compare-type: 'PLAIN'
173 project-pattern: 'local/onap/uds/sdc-customization'
175 - branch-compare-type: 'PLAIN'
176 branch-pattern: 'master'
184 name: '{project-name}-build'
185 description: 'Job for building out uds repositories'
186 workspace: '{workspace}'
190 - 'maven-build-repositories'
194 name: '{project-name}-package-artifacts'
195 description: 'Job for archiving uds artifacts (.war, .jar files etc.)'
196 workspace: '{workspace}'
200 - 'collect-file-artifacts'
204 name: '{project-name}-package-images'
205 description: 'Job for archiving uds docker images'
206 workspace: '{workspace}'
210 - 'package-docker-images'
214 name: '{project-name}-package-repositories'
215 description: 'Job for archiving uds source repos (sdc, sdc-customization)'
216 workspace: '{workspace}'
220 - 'maven-clean-repositories'
221 - 'package-source-repositories'
225 name: '{project-name}-promote-artifacts'
226 description: 'Job for pushing uds file artifacts (.war, .jar files etc.) to Artifactory'
227 workspace: '{workspace}'
231 - 'promote-file-artifacts-to-artifactory'
233 - 'artifactory-credentials'
237 name: '{project-name}-promote-images'
238 description: 'Job for pushing uds docker images to Artifactory'
239 workspace: '{workspace}'
243 - 'promote-docker-images-to-artifactory'
245 - 'artifactory-credentials'
249 name: '{project-name}-promote-repositories'
250 description: 'Job for pushing uds source repositories (sdc, sdc-customization) to Artifactory'
251 workspace: '{workspace}'
255 - 'promote-source-repositories-to-artifactory'
257 - 'artifactory-credentials'