Use computes + control for NUM_OS_SYSTEM
[releng.git] / jjb / daisy4nfv / daisy-daily-jobs.yaml
1 ---
2 # jenkins job templates for Daisy
3 # TODO
4 # [ ] enable baremetal jobs after baremetal deployment finish
5 # [ ] enable jobs in danuble
6 # [ ] add more scenarios
7 # [ ] integration with yardstick
8
9 - project:
10
11     name: 'daisy'
12     project: '{name}'
13     installer: '{name}'
14
15     # -------------------------------
16     # BRANCH ANCHORS
17     # -------------------------------
18     master: &master
19       stream: master
20       branch: '{stream}'
21       disabled: true
22       gs-pathname: ''
23     fraser: &fraser
24       stream: fraser
25       branch: 'stable/{stream}'
26       gs-pathname: '/{stream}'
27       disabled: true
28
29     # -------------------------------
30     # POD, INSTALLER, AND BRANCH MAPPING
31     # -------------------------------
32     pod:
33       # -------------------------------
34       #        CI PODs
35       # -------------------------------
36       - baremetal:
37           slave-label: daisy-baremetal
38           <<: *master
39       - virtual:
40           slave-label: daisy-virtual
41           <<: *master
42       - baremetal:
43           slave-label: daisy-baremetal
44           <<: *fraser
45       - virtual:
46           slave-label: daisy-virtual
47           <<: *fraser
48       # -------------------------------
49       #        None-CI PODs
50       # -------------------------------
51       - zte-pod3:
52           slave-label: zte-pod3
53           <<: *master
54       - zte-pod3:
55           slave-label: zte-pod3
56           <<: *fraser
57       - zte-pod9:
58           slave-label: zte-pod9
59           <<: *master
60       - zte-pod9:
61           slave-label: zte-pod9
62           <<: *fraser
63
64     # -------------------------------
65     #       scenarios
66     # -------------------------------
67     scenario:
68       # HA scenarios
69       - 'os-nosdn-nofeature-ha':
70           auto-trigger-name: 'daisy-{scenario}-{pod}-daily-{stream}-trigger'
71       # NOHA scenarios
72       - 'os-nosdn-nofeature-noha':
73           auto-trigger-name: 'daisy-{scenario}-{pod}-daily-{stream}-trigger'
74       # ODL_L3 scenarios
75       - 'os-odl-nofeature-ha':
76           auto-trigger-name: 'daisy-{scenario}-{pod}-daily-{stream}-trigger'
77       # ovs_dpdk scenarios
78       - 'os-nosdn-ovs_dpdk-noha':
79           auto-trigger-name: 'daisy-{scenario}-{pod}-daily-{stream}-trigger'
80
81     jobs:
82       - '{project}-{scenario}-{pod}-daily-{stream}'
83       - '{project}-deploy-{pod}-daily-{stream}'
84
85 ########################
86 # job templates
87 ########################
88 - job-template:
89     name: '{project}-{scenario}-{pod}-daily-{stream}'
90
91     disabled: '{obj:disabled}'
92
93     concurrent: false
94
95     properties:
96       - logrotate-default
97       - throttle:
98           enabled: true
99           max-total: 4
100           max-per-node: 1
101           option: 'project'
102       - build-blocker:
103           use-build-blocker: true
104           blocking-jobs:
105             - 'daisy-os-.*?-{pod}-daily-.*?'
106             - 'daisy-daily-.*'
107             - 'daisy-kolla-build-.*'
108           block-level: 'NODE'
109
110     wrappers:
111       - build-name:
112           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
113
114     triggers:
115       - '{auto-trigger-name}'
116
117     parameters:
118       - project-parameter:
119           project: '{project}'
120           branch: '{branch}'
121       - '{installer}-defaults'
122       - '{slave-label}-defaults':
123           installer: '{installer}'
124       - 'testapi-parameter'
125       - 'daisy-project-parameter':
126           gs-pathname: '{gs-pathname}'
127       - string:
128           name: DEPLOY_SCENARIO
129           default: '{scenario}'
130
131     builders:
132       - description-setter:
133           description: "POD: $NODE_NAME"
134       - trigger-builds:
135           - project: 'daisy-deploy-{pod}-daily-{stream}'
136             current-parameters: false
137             predefined-parameters: |
138               DEPLOY_SCENARIO={scenario}
139               INSTALLER_VERSION={stream}
140               UPSTREAM_JOB_NAME=$JOB_NAME
141               UPSTREAM_BUILD_ID=$BUILD_ID
142             same-node: true
143             block: true
144       - trigger-builds:
145           - project: 'functest-daisy-{pod}-daily-{stream}'
146             current-parameters: false
147             predefined-parameters: |
148               DEPLOY_SCENARIO={scenario}
149               INSTALLER_VERSION={stream}
150               UPSTREAM_JOB_NAME=$JOB_NAME
151               UPSTREAM_BUILD_ID=$BUILD_ID
152             same-node: true
153             block: true
154             block-thresholds:
155               build-step-failure-threshold: 'never'
156               failure-threshold: 'never'
157               unstable-threshold: 'FAILURE'
158       - trigger-builds:
159           - project: 'yardstick-daisy-{pod}-daily-{stream}'
160             current-parameters: false
161             predefined-parameters: |
162               DEPLOY_SCENARIO={scenario}
163               INSTALLER_VERSION={stream}
164               UPSTREAM_JOB_NAME=$JOB_NAME
165               UPSTREAM_BUILD_ID=$BUILD_ID
166             block: true
167             same-node: true
168             block-thresholds:
169               build-step-failure-threshold: 'never'
170               failure-threshold: 'never'
171               unstable-threshold: 'FAILURE'
172
173 - job-template:
174     name: '{project}-deploy-{pod}-daily-{stream}'
175
176     disabled: '{obj:disabled}'
177
178     concurrent: true
179
180     properties:
181       - logrotate-default
182       - throttle:
183           enabled: true
184           max-total: 4
185           max-per-node: 1
186           option: 'project'
187       - build-blocker:
188           use-build-blocker: true
189           blocking-jobs:
190             - 'daisy-kolla-build-.*'
191             - '{installer}-(build|deploy|test)-daily-(fraser|master)'
192             - '{installer}-deploy-(baremetal|virtual|zte-pod3|zte-pod9)-daily-(fraser|master)'
193             - '(functest|yardstick)-{installer}-(baremetal|virtual|zte-pod3|zte-pod9)-daily-(fraser|master)'
194           block-level: 'NODE'
195
196     parameters:
197       - project-parameter:
198           project: '{project}'
199           branch: '{branch}'
200       - '{installer}-defaults'
201       - '{slave-label}-defaults':
202           installer: '{installer}'
203       - 'testapi-parameter'
204       - 'daisy-project-parameter':
205           gs-pathname: '{gs-pathname}'
206       - 'deploy-scenario'
207       - string:
208           name: DEPLOY_TIMEOUT
209           default: '150'
210           description: 'Deployment timeout in minutes'
211
212     scm:
213       - git-scm
214
215     wrappers:
216       - build-name:
217           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
218
219     builders:
220       - description-setter:
221           description: "POD: $NODE_NAME"
222       - 'track-begin-timestamp'
223       - shell:
224           !include-raw-escape: ./daisy4nfv-download-artifact.sh
225       - shell:
226           !include-raw-escape: ./daisy-deploy.sh
227     publishers:
228       - 'report-provision-result'
229
230 ########################
231 # trigger macros
232 ########################
233 # ----------------------------------------------
234 # Triggers for job running on daisy-baremetal against master branch
235 # ----------------------------------------------
236 # Basic HA Scenarios
237 - trigger:
238     name: 'daisy-os-nosdn-nofeature-ha-baremetal-daily-master-trigger'
239     triggers:
240       - timed: ''
241 # Basic NOHA Scenarios
242 - trigger:
243     name: 'daisy-os-nosdn-nofeature-noha-baremetal-daily-master-trigger'
244     triggers:
245       - timed: ''
246 # ODL Scenarios
247 - trigger:
248     name: 'daisy-os-odl-nofeature-ha-baremetal-daily-master-trigger'
249     triggers:
250       - timed: ''
251 # ovs_dpdk Scenarios
252 - trigger:
253     name: 'daisy-os-nosdn-ovs_dpdk-noha-baremetal-daily-master-trigger'
254     triggers:
255       - timed: ''
256
257 # ----------------------------------------------
258 # Triggers for job running on daisy-virtual against master branch
259 # ----------------------------------------------
260 # Basic HA Scenarios
261 - trigger:
262     name: 'daisy-os-nosdn-nofeature-ha-virtual-daily-master-trigger'
263     triggers:
264       - timed: '0 16 * * *'
265 # Basic NOHA Scenarios
266 - trigger:
267     name: 'daisy-os-nosdn-nofeature-noha-virtual-daily-master-trigger'
268     triggers:
269       - timed: ''
270 # ODL Scenarios
271 - trigger:
272     name: 'daisy-os-odl-nofeature-ha-virtual-daily-master-trigger'
273     triggers:
274       - timed: '0 12 * * *'
275 # ovs_dpdk Scenarios
276 - trigger:
277     name: 'daisy-os-nosdn-ovs_dpdk-noha-virtual-daily-master-trigger'
278     triggers:
279       - timed: ''
280
281 # ----------------------------------------------
282 # Triggers for job running on daisy-baremetal against fraser branch
283 # ----------------------------------------------
284 # Basic HA Scenarios
285 - trigger:
286     name: 'daisy-os-nosdn-nofeature-ha-baremetal-daily-fraser-trigger'
287     triggers:
288       - timed: '0 0,6 * * *'
289 # Basic NOHA Scenarios
290 - trigger:
291     name: 'daisy-os-nosdn-nofeature-noha-baremetal-daily-fraser-trigger'
292     triggers:
293       - timed: ''
294 # ODL Scenarios
295 - trigger:
296     name: 'daisy-os-odl-nofeature-ha-baremetal-daily-fraser-trigger'
297     triggers:
298       - timed: '0 12,18 * * *'
299 # ovs_dpdk Scenarios
300 - trigger:
301     name: 'daisy-os-nosdn-ovs_dpdk-noha-baremetal-daily-fraser-trigger'
302     triggers:
303       - timed: ''
304
305 # ----------------------------------------------
306 # Triggers for job running on daisy-virtual against fraser branch
307 # ----------------------------------------------
308 # Basic HA Scenarios
309 - trigger:
310     name: 'daisy-os-nosdn-nofeature-ha-virtual-daily-fraser-trigger'
311     triggers:
312       - timed: '0 0 * * *'
313 # Basic NOHA Scenarios
314 - trigger:
315     name: 'daisy-os-nosdn-nofeature-noha-virtual-daily-fraser-trigger'
316     triggers:
317       - timed: ''
318 # ODL Scenarios
319 - trigger:
320     name: 'daisy-os-odl-nofeature-ha-virtual-daily-fraser-trigger'
321     triggers:
322       - timed: '0 20 * * *'
323 # ovs_dpdk Scenarios
324 - trigger:
325     name: 'daisy-os-nosdn-ovs_dpdk-noha-virtual-daily-fraser-trigger'
326     triggers:
327       - timed: ''
328
329 # ----------------------------------------------
330 # Triggers for job running on zte-pod3 against master branch
331 # ----------------------------------------------
332 # Basic HA Scenarios
333 - trigger:
334     name: 'daisy-os-nosdn-nofeature-ha-zte-pod3-daily-master-trigger'
335     triggers:
336       - timed: ''
337 # Basic NOHA Scenarios
338 - trigger:
339     name: 'daisy-os-nosdn-nofeature-noha-zte-pod3-daily-master-trigger'
340     triggers:
341       - timed: ''
342 # ODL Scenarios
343 - trigger:
344     name: 'daisy-os-odl-nofeature-ha-zte-pod3-daily-master-trigger'
345     triggers:
346       - timed: ''
347 # ovs_dpdk Scenarios
348 - trigger:
349     name: 'daisy-os-nosdn-ovs_dpdk-noha-zte-pod3-daily-master-trigger'
350     triggers:
351       - timed: ''
352
353 # ----------------------------------------------
354 # Triggers for job running on zte-pod3 against fraser branch
355 # ----------------------------------------------
356 # Basic HA Scenarios
357 - trigger:
358     name: 'daisy-os-nosdn-nofeature-ha-zte-pod3-daily-fraser-trigger'
359     triggers:
360       - timed: ''
361 # Basic NOHA Scenarios
362 - trigger:
363     name: 'daisy-os-nosdn-nofeature-noha-zte-pod3-daily-fraser-trigger'
364     triggers:
365       - timed: ''
366 # ODL Scenarios
367 - trigger:
368     name: 'daisy-os-odl-nofeature-ha-zte-pod3-daily-fraser-trigger'
369     triggers:
370       - timed: '0 16,22 * * *'
371 # ovs_dpdk Scenarios
372 - trigger:
373     name: 'daisy-os-nosdn-ovs_dpdk-noha-zte-pod3-daily-fraser-trigger'
374     triggers:
375       - timed: ''
376
377 # ----------------------------------------------
378 # ZTE POD9 Triggers running against master branch
379 # ----------------------------------------------
380 # ovs_dpdk Scenarios
381 - trigger:
382     name: 'daisy-os-nosdn-ovs_dpdk-noha-zte-pod9-daily-master-trigger'
383     triggers:
384       - timed: '0 20 * * *'
385 # Basic HA Scenarios
386 - trigger:
387     name: 'daisy-os-nosdn-nofeature-ha-zte-pod9-daily-master-trigger'
388     triggers:
389       - timed: ''
390 # Basic NOHA Scenarios
391 - trigger:
392     name: 'daisy-os-nosdn-nofeature-noha-zte-pod9-daily-master-trigger'
393     triggers:
394       - timed: ''
395 # ODL Scenarios
396 - trigger:
397     name: 'daisy-os-odl-nofeature-ha-zte-pod9-daily-master-trigger'
398     triggers:
399       - timed: ''
400
401 # ----------------------------------------------
402 # ZTE POD9 Triggers running against fraser branch
403 # ----------------------------------------------
404 # ovs_dpdk Scenarios
405 - trigger:
406     name: 'daisy-os-nosdn-ovs_dpdk-noha-zte-pod9-daily-fraser-trigger'
407     triggers:
408       - timed: '0 10 * * *'
409 # Basic HA Scenarios
410 - trigger:
411     name: 'daisy-os-nosdn-nofeature-ha-zte-pod9-daily-fraser-trigger'
412     triggers:
413       - timed: ''
414 # Basic NOHA Scenarios
415 - trigger:
416     name: 'daisy-os-nosdn-nofeature-noha-zte-pod9-daily-fraser-trigger'
417     triggers:
418       - timed: ''
419 # ODL Scenarios
420 - trigger:
421     name: 'daisy-os-odl-nofeature-ha-zte-pod9-daily-fraser-trigger'
422     triggers:
423       - timed: ''