Adding a new verification job for testapi UI.
[releng.git] / jjb / joid / joid-daily-jobs.yaml
1 ---
2 ########################
3 # Job configuration for joid
4 ########################
5 - project:
6
7     name: 'joid'
8
9     project: '{name}'
10
11     installer: '{name}'
12
13     # -------------------------------
14     # BRANCH ANCHORS
15     # -------------------------------
16     fraser: &fraser
17       stream: fraser
18       branch: 'stable/{stream}'
19       disabled: false
20       gs-pathname: '/{stream}'
21     master: &master
22       stream: master
23       branch: '{stream}'
24       disabled: false
25       gs-pathname: ''
26     # -------------------------------
27     # POD, INSTALLER, AND BRANCH MAPPING
28     # -------------------------------
29     #        CI PODs
30     # -------------------------------
31     pod:
32       - baremetal:
33           slave-label: joid-baremetal
34           <<: *fraser
35       - baremetal:
36           slave-label: joid-baremetal
37           <<: *master
38     # -------------------------------
39     # scenarios
40     # -------------------------------
41     scenario:
42       - 'os-nosdn-nofeature-noha':
43           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
44       - 'os-nosdn-nofeature-ha':
45           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
46       - 'os-nosdn-lxd-ha':
47           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
48       - 'os-nosdn-lxd-noha':
49           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
50       - 'os-odl_l2-nofeature-ha':
51           auto-trigger-name: 'daily-trigger-disabled'
52       - 'os-odl_l2-nofeature-noha':
53           auto-trigger-name: 'daily-trigger-disabled'
54       - 'os-ocl-nofeature-ha':
55           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
56       - 'os-ocl-nofeature-noha':
57           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
58       - 'k8-nosdn-nofeature-noha':
59           auto-trigger-name: 'daily-trigger-disabled'
60       - 'k8-nosdn-lb-noha':
61           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
62       - 'k8-ovn-lb-noha':
63           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
64       - 'os-nosdn-openbaton-ha':
65           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
66       - 'k8-canal-lb-noha':
67           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
68       - 'k8-nosdn-lb_ceph-noha':
69           auto-trigger-name: 'joid-{scenario}-{pod}-{stream}-trigger'
70       - 'k8-multus-lb-noha':
71           auto-trigger-name: 'daily-trigger-disabled'
72       - 'os-ovn-nofeature-ha':
73           auto-trigger-name: 'daily-trigger-disabled'
74
75     jobs:
76       - 'joid-{scenario}-{pod}-daily-{stream}'
77       - 'joid-deploy-{pod}-daily-{stream}'
78
79 ########################
80 # job templates
81 ########################
82 - job-template:
83     name: 'joid-{scenario}-{pod}-daily-{stream}'
84
85     disabled: '{obj:disabled}'
86
87     concurrent: false
88
89     properties:
90       - logrotate-default
91       - throttle:
92           enabled: true
93           max-total: 4
94           max-per-node: 1
95           option: 'project'
96       - build-blocker:
97           use-build-blocker: true
98           blocking-jobs:
99             - 'joid-(os|k8)-.*?-{pod}-daily-.*'
100           block-level: 'NODE'
101
102     wrappers:
103       - build-name:
104           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
105
106     triggers:
107       - '{auto-trigger-name}'
108
109     parameters:
110       - project-parameter:
111           project: '{project}'
112           branch: '{branch}'
113       - '{installer}-defaults'
114       - '{slave-label}-defaults':
115           installer: '{installer}'
116       - string:
117           name: DEPLOY_SCENARIO
118           default: '{scenario}'
119
120     builders:
121       - description-setter:
122           description: "POD: $NODE_NAME"
123       - trigger-builds:
124           - project: 'joid-deploy-{pod}-daily-{stream}'
125             current-parameters: true
126             predefined-parameters:
127               DEPLOY_SCENARIO={scenario}
128             same-node: true
129             block: true
130       - trigger-builds:
131           - project: 'functest-joid-{pod}-daily-{stream}'
132             current-parameters: false
133             predefined-parameters:
134               DEPLOY_SCENARIO={scenario}
135             block: true
136             same-node: true
137             block-thresholds:
138               build-step-failure-threshold: 'never'
139               failure-threshold: 'never'
140               unstable-threshold: 'FAILURE'
141       - trigger-builds:
142           - project: 'yardstick-joid-{pod}-daily-{stream}'
143             current-parameters: false
144             predefined-parameters:
145               DEPLOY_SCENARIO={scenario}
146             block: true
147             same-node: true
148             block-thresholds:
149               build-step-failure-threshold: 'never'
150               failure-threshold: 'never'
151               unstable-threshold: 'FAILURE'
152 # 1.dovetail only euphrates by now, not sync with A/B/C branches
153 # 2.here the stream means the SUT stream, dovetail stream is defined in
154 #   its own job
155 # 3.only debug testsuite here(includes basic testcase,
156 #   i.e. one tempest smoke ipv6, two vping from functest)
157 # 4.not used for release criteria or compliance,
158 #   only to debug the dovetail tool bugs with joid
159 # - trigger-builds:
160 #     - project: 'dovetail-joid-{pod}-proposed_tests-{stream}'
161 #       current-parameters: false
162 #       predefined-parameters:
163 #         DEPLOY_SCENARIO={scenario}
164 #       block: true
165 #       same-node: true
166 #       block-thresholds:
167 #         build-step-failure-threshold: 'never'
168 #         failure-threshold: 'never'
169 #         unstable-threshold: 'FAILURE'
170
171 - job-template:
172     name: 'joid-deploy-{pod}-daily-{stream}'
173
174     disabled: '{obj:disabled}'
175
176     concurrent: true
177
178     properties:
179       - logrotate-default
180       - throttle:
181           enabled: true
182           max-total: 4
183           max-per-node: 1
184           option: 'project'
185       - build-blocker:
186           use-build-blocker: true
187           blocking-jobs:
188             - 'joid-deploy-{pod}-daily-.*'
189           block-level: 'NODE'
190
191     wrappers:
192       - build-name:
193           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
194       - timeout:
195           timeout: 180
196           fail: true
197
198     parameters:
199       - project-parameter:
200           project: '{project}'
201           branch: '{branch}'
202       - '{installer}-defaults'
203       - '{slave-label}-defaults':
204           installer: '{installer}'
205       - string:
206           name: DEPLOY_SCENARIO
207           default: 'os-odl_l2-nofeature-ha'
208
209     scm:
210       - git-scm
211
212     builders:
213       - description-setter:
214           description: "POD: $NODE_NAME"
215       - 'builder-macro'
216 ########################
217 # builder macros
218 ########################
219 - builder:
220     name: 'builder-macro'
221     builders:
222       - shell: |
223           #!/bin/bash
224           echo "Running $INSTALLER_TYPE with controller $SDN_CONTROLLER"
225           echo
226           echo "------ First Executing clean.sh ------"
227           cd $WORKSPACE/ci
228           ./clean.sh
229       - shell:
230           !include-raw: ./joid-deploy.sh
231
232 ########################
233 # trigger macros
234 ########################
235 # os-nosdn-nofeature-ha trigger - branch: fraser
236 - trigger:
237     name: 'joid-os-nosdn-nofeature-ha-baremetal-fraser-trigger'
238     triggers:
239       - timed: '5 2 * * *'
240 # os-nosdn-nofeature-ha trigger - branch: master
241 - trigger:
242     name: 'joid-os-nosdn-nofeature-ha-baremetal-master-trigger'
243     triggers:
244       - timed: '5 2 * * *'
245 # os-odl_l2-nofeature-ha trigger - branch: fraser
246 - trigger:
247     name: 'joid-os-odl_l2-nofeature-ha-baremetal-fraser-trigger'
248     triggers:
249       - timed: '5 7 * * *'
250 # os-odl_l2-nofeature-ha trigger - branch: master
251 - trigger:
252     name: 'joid-os-odl_l2-nofeature-ha-baremetal-master-trigger'
253     triggers:
254       - timed: '5 7 * * *'
255 # os-nosdn-lxd-noha trigger - branch: fraser
256 - trigger:
257     name: 'joid-os-nosdn-lxd-noha-baremetal-fraser-trigger'
258     triggers:
259       - timed: '5 22 * * *'
260 # os-nosdn-lxd-noha trigger - branch: master
261 - trigger:
262     name: 'joid-os-nosdn-lxd-noha-baremetal-master-trigger'
263     triggers:
264       - timed: '5 22 * * *'
265 # os-nosdn-lxd-ha trigger - branch: fraser
266 - trigger:
267     name: 'joid-os-nosdn-lxd-ha-baremetal-fraser-trigger'
268     triggers:
269       - timed: '5 10 * * *'
270 # os-nosdn-lxd-ha trigger - branch: master
271 - trigger:
272     name: 'joid-os-nosdn-lxd-ha-baremetal-master-trigger'
273     triggers:
274       - timed: '5 10 * * *'
275 # os-nosdn-nofeature-noha trigger - branch: fraser
276 - trigger:
277     name: 'joid-os-nosdn-nofeature-noha-baremetal-fraser-trigger'
278     triggers:
279       - timed: '5 4 * * *'
280 # os-nosdn-nofeature-noha trigger - branch: master
281 - trigger:
282     name: 'joid-os-nosdn-nofeature-noha-baremetal-master-trigger'
283     triggers:
284       - timed: '5 4 * * *'
285 # k8-nosdn-nofeature-noha trigger - branch: fraser
286 - trigger:
287     name: 'joid-k8-nosdn-nofeature-noha-baremetal-fraser-trigger'
288     triggers:
289       - timed: '5 15 * * *'
290 # k8-nosdn-nofeature-noha trigger - branch: master
291 - trigger:
292     name: 'joid-k8-nosdn-nofeature-noha-baremetal-master-trigger'
293     triggers:
294       - timed: '5 15 * * *'
295 # k8-nosdn-lb-noha trigger - branch: fraser
296 - trigger:
297     name: 'joid-k8-nosdn-lb-noha-baremetal-fraser-trigger'
298     triggers:
299       - timed: '5 20 * * *'
300 # k8-nosdn-lb-noha trigger - branch: master
301 - trigger:
302     name: 'joid-k8-nosdn-lb-noha-baremetal-master-trigger'
303     triggers:
304       - timed: '5 20 * * *'
305 # k8-ovn-lb-noha trigger - branch: fraser
306 - trigger:
307     name: 'joid-k8-ovn-lb-noha-baremetal-fraser-trigger'
308     triggers:
309       - timed: '5 17 * * *'
310 # k8-ovn-lb-noha trigger - branch: master
311 - trigger:
312     name: 'joid-k8-ovn-lb-noha-baremetal-master-trigger'
313     triggers:
314       - timed: '5 17 * * *'
315 # os-nosdn-openbaton-ha trigger - branch: fraser
316 - trigger:
317     name: 'joid-os-nosdn-openbaton-ha-baremetal-fraser-trigger'
318     triggers:
319       - timed: ''  # Disabled as there is no branch for orchestra
320 # os-nosdn-openbaton-ha trigger - branch: master
321 - trigger:
322     name: 'joid-os-nosdn-openbaton-ha-baremetal-master-trigger'
323     triggers:
324       - timed: '5 23 * * *'
325 # os-ocl-nofeature-ha trigger - branch: fraser
326 - trigger:
327     name: 'joid-os-ocl-nofeature-ha-baremetal-fraser-trigger'
328     triggers:
329       - timed: '5 13 * * *'
330 # os-ocl-nofeature-ha trigger - branch: master
331 - trigger:
332     name: 'joid-os-ocl-nofeature-ha-baremetal-master-trigger'
333     triggers:
334       - timed: '5 13 * * *'
335 # os-ocl-nofeature-noha trigger - branch: fraser
336 - trigger:
337     name: 'joid-os-ocl-nofeature-noha-baremetal-fraser-trigger'
338     triggers:
339       - timed: '5 16 * * *'
340 # os-ocl-nofeature-noha trigger - branch: master
341 - trigger:
342     name: 'joid-os-ocl-nofeature-noha-baremetal-master-trigger'
343     triggers:
344       - timed: '5 16 * * *'
345 # k8-canal-lb-noha trigger - branch: fraser
346 - trigger:
347     name: 'joid-k8-canal-lb-noha-baremetal-fraser-trigger'
348     triggers:
349       - timed: '5 14 * * *'
350 # k8-canal-lb-noha trigger - branch: master
351 - trigger:
352     name: 'joid-k8-canal-lb-noha-baremetal-master-trigger'
353     triggers:
354       - timed: '5 14 * * *'
355 # k8-multus-lb-noha trigger - branch: fraser
356 - trigger:
357     name: 'joid-k8-multus-lb-noha-baremetal-fraser-trigger'
358     triggers:
359       - timed: '5 18 * * *'
360 # k8-multus-lb-noha trigger - branch: master
361 - trigger:
362     name: 'joid-k8-multus-lb-noha-baremetal-master-trigger'
363     triggers:
364       - timed: '5 18 * * *'
365 # k8-nosdn-lb_ceph-noha trigger - branch: fraser
366 - trigger:
367     name: 'joid-k8-nosdn-lb_ceph-noha-baremetal-fraser-trigger'
368     triggers:
369       - timed: '5 18 * * *'
370 # k8-nosdn-lb_ceph-noha trigger - branch: master
371 - trigger:
372     name: 'joid-k8-nosdn-lb_ceph-noha-baremetal-master-trigger'
373     triggers:
374       - timed: '5 18 * * *'
375 # os-ovn-nofeature-ha trigger - branch: fraser
376 - trigger:
377     name: 'joid-os-ovn-nofeature-ha-baremetal-fraser-trigger'
378     triggers:
379       - timed: '5 19 * * *'
380 # os-ovn-nofeature-ha trigger - branch: master
381 - trigger:
382     name: 'joid-os-ovn-nofeature-ha-baremetal-master-trigger'
383     triggers:
384       - timed: '5 19 * * *'