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_settings_xml_version:
29 uds/sdc-cassandra-init,
31 uds/sdc-be-plugin/etsi-nfv-nsd-csar,
32 uds/sdc-be-plugin/vf-csar,
33 uds/sdc-customization/eo-sdc-backend-init,
34 uds/sdc-customization/eo-cassandra-init,
36 uds/sdc-onboard-backend,
41 docker_image_artifact_directory: $WORKSPACE/artifacts/images
42 artifactory_docker_images_path: onap/uds/images
43 artifact_paths: 'sdc/catalog-be/target/catalog-be-*.war'
44 artifactory_artifact_path: onap/uds
45 artifact_directory: $WORKSPACE/artifacts/artifacts
46 artifactory_repo_archive_path: onap/uds/releases
47 repo_archive_artifact_directory: $WORKSPACE/artifacts/repos
48 grep_parameters: -oP (?<=uds.version>)[^<]+
50 pom_location: sdc/pom.xml
51 workspace: /home/jenkins/nordix/slave_root/workspace/
52 node: onap-uds-build-ubuntu1804
55 - '{project-name}-daily-build-package-promote'
56 - '{project-name}-build'
57 - '{project-name}-package-artifacts'
58 - '{project-name}-package-images'
59 - '{project-name}-package-repositories'
60 - '{project-name}-promote-artifacts'
61 - '{project-name}-promote-images'
62 - '{project-name}-promote-repositories'
66 name: '{project-name}-daily-build-package-promote'
67 description: 'Job for building, packing and pushing UDS artifacts including sources, docker images and other arifacts to Artifactory'
68 project-type: 'multijob'
69 workspace: '{workspace}'
72 - multi-project-parameters:
73 projects: '{projects}'
74 branches: '{branches}'
75 project_directories: '{project_directories}'
76 project_versions: '{project_versions}'
79 mvn_settings_xml_version: '{mvn_settings_xml_version}'
80 - artifact_parameters:
81 artifact_paths: '{artifact_paths}'
82 artifactory_artifact_path: '{artifactory_artifact_path}'
83 artifact_directory: '{artifact_directory}'
84 - artifactory-parameters
85 - docker-archive-parameters:
86 docker_images: '{docker_images}'
87 artifactory_docker_images_path: '{artifactory_docker_images_path}'
88 docker_image_artifact_directory: '{docker_image_artifact_directory}'
89 - repo-archive-parameters:
90 grep_parameters: '{grep_parameters}'
91 pom_location: '{pom_location}'
92 archive_name: '{archive_name}'
93 artifactory_repo_archive_path: '{artifactory_repo_archive_path}'
94 repo_archive_artifact_directory: '{repo_archive_artifact_directory}'
97 - 'pull-source-repositories'
98 - 'generate-build-metadata'
101 condition: SUCCESSFUL
103 - name: '{project-name}-build'
104 current-parameters: true
105 node-parameters: true
107 kill-phase-on: FAILURE
108 property-file: $WORKSPACE/build.properties
111 condition: SUCCESSFUL
112 execution-type: SEQUENTIALLY
114 - name: '{project-name}-package-artifacts'
115 current-parameters: true
116 node-parameters: true
118 kill-phase-on: FAILURE
119 property-file: $WORKSPACE/build.properties
120 - name: '{project-name}-package-images'
121 current-parameters: true
122 node-parameters: true
124 kill-phase-on: FAILURE
125 property-file: $WORKSPACE/build.properties
126 - name: '{project-name}-package-repositories'
127 current-parameters: true
128 node-parameters: true
130 kill-phase-on: FAILURE
131 property-file: $WORKSPACE/build.properties
134 condition: SUCCESSFUL
135 execution-type: PARALLEL
137 - name: '{project-name}-promote-artifacts'
138 current-parameters: true
139 node-parameters: true
141 kill-phase-on: FAILURE
142 property-file: $WORKSPACE/build.properties
143 - name: '{project-name}-promote-images'
144 current-parameters: true
145 node-parameters: true
147 kill-phase-on: FAILURE
148 property-file: $WORKSPACE/build.properties
149 - name: '{project-name}-promote-repositories'
150 current-parameters: true
151 node-parameters: true
153 kill-phase-on: FAILURE
154 property-file: $WORKSPACE/build.properties
163 name: '{project-name}-build'
164 description: 'Job for building out uds repositories'
165 workspace: '{workspace}'
169 - 'maven-build-repositories'
173 name: '{project-name}-package-artifacts'
174 description: 'Job for archiving uds artifacts (.war, .jar files etc.)'
175 workspace: '{workspace}'
179 - 'collect-file-artifacts'
183 name: '{project-name}-package-images'
184 description: 'Job for archiving uds docker images'
185 workspace: '{workspace}'
189 - 'package-docker-images'
193 name: '{project-name}-package-repositories'
194 description: 'Job for archiving uds source repos (sdc, sdc-customization)'
195 workspace: '{workspace}'
199 - 'maven-clean-repositories'
200 - 'package-source-repositories'
204 name: '{project-name}-promote-artifacts'
205 description: 'Job for pushing uds file artifacts (.war, .jar files etc.) to Artifactory'
206 workspace: '{workspace}'
210 - 'promote-file-artifacts-to-artifactory'
212 - 'artifactory-credentials'
216 name: '{project-name}-promote-images'
217 description: 'Job for pushing uds docker images to Artifactory'
218 workspace: '{workspace}'
222 - 'promote-docker-images-to-artifactory'
224 - 'artifactory-credentials'
228 name: '{project-name}-promote-repositories'
229 description: 'Job for pushing uds source repositories (sdc, sdc-customization) to Artifactory'
230 workspace: '{workspace}'
234 - 'promote-source-repositories-to-artifactory'
236 - 'artifactory-credentials'