Disable git-revision for packaging test framework
[infra/cicd.git] / jjb / cloud-infra / onap-jobs / onap-release-jobs.yaml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2019 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 - project:
21     name: 'onap-release'
22
23     project: 'ONAP-release'
24
25
26     stream:
27       - 'master':
28           branch: 'master'
29           oom_branch: 'master'
30           deploy-scenario: 'onap-full-nofeature'
31           k8s-version: '1.15'
32           promote-stack: 'false'
33           container-tool: 'docker'
34       - 'guilin':
35           branch: 'guilin'
36           oom_branch: 'master'
37           deploy-scenario: 'onap-full-nofeature'
38           k8s-version: '1.15'
39           promote-stack: 'true'
40           container-tool: 'docker'
41       - 'frankfurt':
42           branch: 'frankfurt'
43           oom_branch: 'master'
44           deploy-scenario: 'onap-sdc-nofeature'
45           k8s-version: '1.15'
46           promote-stack: 'true'
47           container-tool: 'docker'
48       - 'elalto':
49           branch: 'elalto'
50           oom_branch: 'master'
51           deploy-scenario: 'onap-sdc-nofeature'
52           k8s-version: '1.15'
53           promote-stack: 'true'
54           container-tool: 'docker'
55
56     environment-type:
57       - offline:
58           disabled: false
59           execution-mode: offline-deployment
60           openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
61
62     phase:
63       - deploy
64
65
66     type:
67       - cloud:
68           provisioner-type: 'heat'
69           slave-type: 'jumphost'
70           pdf: "https://gerrit.nordix.org/gitweb?p=infra/provisioner/heat.git;a=blob_plain;f=playbooks/roles/create-stack/files/heat-environment-ci-city-ubuntu1804-onap.yaml"
71           idf: "https://gerrit.nordix.org/gitweb?p=infra/provisioner/heat.git;a=blob_plain;f=playbooks/roles/create-stack/files/heat-idf.yaml"
72
73     distro:
74       - ubuntu1804
75
76     cloud:
77       - city:
78           openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
79
80     jobs:
81       - 'onap-release-{distro}-{stream}'
82       - 'onap-package-{distro}-{stream}'
83       - 'onap-test-package-{distro}-{stream}'
84       - 'onap-promote-{distro}-{stream}'
85
86
87
88 - job-template:
89     name: 'onap-release-{distro}-{stream}'
90
91     project-type: multijob
92
93     disabled: '{obj:disabled}'
94
95     node: 'engine-package-{distro}-fra'
96
97     concurrent: false
98
99     parameters:
100       - string:
101           name: BRANCH
102           default: '{branch}'
103           description: 'Branch the job is created for. DO NOT MODIFY!'
104       - string:
105           name: DISTRO
106           default: '{distro}'
107           description: 'Distribution to provision and configre target nodes with. DO NOT MODIFY!'
108       - string:
109           name: DEPLOY_SCENARIO
110           default: '{deploy-scenario}'
111           description: 'Scenario to test change with. This depends on the branch of the stack.'
112       - string:
113           name: CONTAINER_TOOL
114           default: '{container-tool}'
115           description: 'Command to use when pulling images. Options docker or podman'
116       - string:
117           name: CI_LOOP
118           default: 'release'
119           description: 'CI loop type. DO NOT MODIFY!'
120       - string:
121           name: VERBOSITY
122           default: 'false'
123           description: 'Engine verbosity'
124       - string:
125           name: NORDIX_ENGINE_VERSION
126           default: 'master'
127           description: 'Engine version of engine to package, deploy, test, release'
128       - string:
129           name: STACK_TYPE
130           default: 'onap'
131           description: 'Stack to package, deploy, test, release'
132       - string:
133           name: STACK_VERSION
134           default: '{branch}'
135           description: 'Stack version of engine to package, deploy, test, release'
136       - string:
137           name: NORDIX_OOM_VERSION
138           default: '{oom_branch}'
139           description: 'Stack version of oom to package, deploy, test, release'
140       - string:
141           name: PROMOTE_STACK
142           default: '{promote-stack}'
143           description: 'Heat version of engine to package, deploy, test, release'
144
145     properties:
146       - logrotate
147       # NOTE (fdegir): throttle categories are controlled in jenkins global configuration
148       - throttle:
149           enabled: true
150           max-per-node: 1
151           max-total: 1
152           option: category
153           categories:
154             - engine-verify-package
155
156     wrappers:
157       - build-timeout:
158           timeout: 600
159       - mask-passwords
160       - fix-workspace-permissions
161       - openstack:
162           single-use: True
163
164     triggers:
165       - pollscm:
166           cron: "#H 0,8,16 * * *"
167
168     scm:
169       - git:
170           url: https://gerrit.nordix.org/infra/engine.git
171           branches:
172             - master
173           timeout: 15
174           wipe-workspace: true
175
176     builders:
177       - 'generate-release-metadata-macro'
178       - inject:
179           properties-file: "$WORKSPACE/release.properties"
180       - 'generate-ssh-keypair-macro'
181       - 'wait-pkg-mgr-macro'
182       - multijob:
183           name: Packaging
184           condition: SUCCESSFUL
185           execution-type: PARALLEL
186           projects:
187             - name: 'onap-package-{distro}-{stream}'
188               current-parameters: false
189               git-revision: true
190               node-parameters: true
191               property-file: "$WORKSPACE/release.properties"
192               kill-phase-on: FAILURE
193               abort-all-job: true
194       - multijob:
195           name: Test Framework Packaging
196           condition: SUCCESSFUL
197           execution-type: PARALLEL
198           projects:
199             - name: 'onap-test-package-{distro}-{stream}'
200               current-parameters: false
201               git-revision: false
202               node-parameters: true
203               property-file: "$WORKSPACE/release.properties"
204               kill-phase-on: FAILURE
205               abort-all-job: true
206       - multijob:
207           name: Release Test {deploy-scenario}
208           condition: SUCCESSFUL
209           execution-type: PARALLEL
210           projects:
211             - name: 'onap-release-offline-deploy-test-{distro}-city-cloud-{stream}'
212               current-parameters: false
213               git-revision: true
214               node-parameters: false
215               property-file: "$WORKSPACE/release.properties"
216               kill-phase-on: FAILURE
217               abort-all-job: true
218       - multijob:
219           name: Promotion
220           condition: SUCCESSFUL
221           execution-type: PARALLEL
222           projects:
223             - name: 'onap-promote-{distro}-{stream}'
224               current-parameters: false
225               git-revision: true
226               node-parameters: true
227               property-file: "$WORKSPACE/release.properties"
228               kill-phase-on: FAILURE
229               abort-all-job: true
230
231 - job-template:
232     name: 'onap-package-{distro}-{stream}'
233
234     disabled: '{obj:disabled}'
235
236     concurrent: false
237
238     parameters:
239       - string:
240           name: EXECUTION_MODE
241           default: 'packaging'
242           description: 'Execution mode to run engine'
243
244     properties:
245       - logrotate
246
247     wrappers:
248       - build-timeout:
249           timeout: 300
250       - credentials-binding:
251           - username-password-separated:
252               credential-id: 'nordix-cicd-arm-credentials'
253               username: NORDIX_ARM_USERNAME
254               password: NORDIX_ARM_TOKEN
255       - mask-passwords
256       - fix-workspace-permissions
257
258     scm:
259       - git:
260           url: https://gerrit.nordix.org/infra/engine.git
261           branches:
262             - master
263           timeout: 15
264           wipe-workspace: true
265
266     builders:
267       - 'package-macro'
268       - 'upload-artifact-macro'
269
270
271 - job-template:
272     name: 'onap-test-package-{distro}-{stream}'
273
274     disabled: '{obj:disabled}'
275
276     concurrent: false
277
278     parameters:
279       - string:
280           name: EXECUTION_MODE
281           default: 'packaging'
282           description: 'Execution mode to run engine'
283
284     properties:
285       - logrotate
286
287     wrappers:
288       - build-timeout:
289           timeout: 300
290       - credentials-binding:
291           - username-password-separated:
292               credential-id: 'nordix-cicd-arm-credentials'
293               username: NORDIX_ARM_USERNAME
294               password: NORDIX_ARM_TOKEN
295       - mask-passwords
296       - fix-workspace-permissions
297
298     scm:
299       - git:
300           url: https://gerrit.nordix.org/infra/test.git
301           branches:
302             - master
303           timeout: 15
304           wipe-workspace: true
305
306     builders:
307       - 'test-package-macro'
308       - 'upload-artifact-macro'
309
310 - job-template:
311     name: 'onap-promote-{distro}-{stream}'
312
313     disabled: '{obj:disabled}'
314
315     concurrent: false
316
317     properties:
318       - logrotate
319
320     wrappers:
321       - build-timeout:
322           timeout: 600
323       - credentials-binding:
324           - username-password-separated:
325               credential-id: 'nordix-cicd-arm-credentials'
326               username: NORDIX_ARM_USERNAME
327               password: NORDIX_ARM_TOKEN
328       - mask-passwords
329       - fix-workspace-permissions
330
331     scm:
332       - git:
333           url: https://gerrit.nordix.org/infra/engine.git
334           branches:
335             - master
336           timeout: 15
337           wipe-workspace: true
338
339     builders:
340       - 'promote-macro'