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