eb911311487140ad30c06aa5bd2959d5c3cfe744
[releng.git] / jjb / compass4nfv / compass-ci-jobs.yml
1 - project:
2
3     name: compass-ci
4
5     installer: 'compass'
6
7     project: 'compass4nfv'
8
9     master: &master
10         stream: master
11         branch: '{stream}'
12         gs-pathname: ''
13     colorado: &colorado
14         stream: colorado
15         branch: 'stable/{stream}'
16         gs-pathname: '/{stream}'
17 #--------------------------------
18 # POD, INSTALLER, AND BRANCH MAPPING
19 #--------------------------------
20 #        CI PODs
21 #--------------------------------
22     pod:
23         - baremetal:
24             slave-label: compass-baremetal
25             os-version: 'trusty'
26             <<: *master
27         - virtual:
28             slave-label: compass-virtual
29             os-version: 'trusty'
30             <<: *master
31         - baremetal:
32             slave-label: compass-baremetal
33             os-version: 'trusty'
34             <<: *colorado
35         - virtual:
36             slave-label: compass-virtual
37             os-version: 'trusty'
38             <<: *colorado
39 #--------------------------------
40 #        master
41 #--------------------------------
42         - huawei-pod5:
43             slave-label: '{pod}'
44             os-version: 'centos7'
45             <<: *master
46
47     scenario:
48         - 'os-nosdn-nofeature-ha':
49             disabled: false
50             auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
51             openstack-os-version: ''
52         - 'os-odl_l2-nofeature-ha':
53             disabled: false
54             auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
55             openstack-os-version: ''
56         - 'os-odl_l3-nofeature-ha':
57             disabled: false
58             auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
59             openstack-os-version: ''
60         - 'os-onos-nofeature-ha':
61             disabled: false
62             auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
63             openstack-os-version: ''
64         - 'os-ocl-nofeature-ha':
65             disabled: false
66             auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
67             openstack-os-version: ''
68         - 'os-onos-sfc-ha':
69             disabled: false
70             auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
71             openstack-os-version: ''
72         - 'os-odl_l2-moon-ha':
73             disabled: false
74             auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
75             openstack-os-version: 'xenial'
76         - 'os-nosdn-kvm-ha':
77             disabled: false
78             auto-trigger-name: 'compass-{scenario}-{pod}-{stream}-trigger'
79             openstack-os-version: ''
80
81     jobs:
82         - 'compass-{scenario}-{pod}-daily-{stream}'
83         - 'compass-deploy-{pod}-daily-{stream}'
84
85 ########################
86 # job templates
87 ########################
88 - job-template:
89     name: 'compass-{scenario}-{pod}-daily-{stream}'
90
91     concurrent: true
92
93     properties:
94         - throttle:
95             enabled: true
96             max-per-node: 1
97             option: 'project'
98         - build-blocker:
99             use-build-blocker: true
100             blocking-jobs:
101                 - 'compass-os-.*?-{pod}-daily-.*?'
102                 - 'compass-os-.*?-baremetal-daily-.*?'
103                 - 'compass-verify-[^-]*-[^-]*'
104             block-level: 'NODE'
105
106     wrappers:
107         - build-name:
108             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
109
110     parameters:
111         - project-parameter:
112             project: '{project}'
113         - compass-ci-parameter:
114             installer: '{installer}'
115             gs-pathname: '{gs-pathname}'
116         - string:
117             name: DEPLOY_SCENARIO
118             default: '{scenario}'
119         - '{slave-label}-defaults'
120         - '{installer}-defaults'
121
122     triggers:
123         - '{auto-trigger-name}'
124
125     builders:
126         - description-setter:
127             description: "POD: $NODE_NAME"
128         - trigger-builds:
129             - project: 'compass-deploy-{pod}-daily-{stream}'
130               current-parameters: true
131               predefined-parameters: |
132                 DEPLOY_SCENARIO={scenario}
133                 COMPASS_OS_VERSION={os-version}
134                 COMPASS_OS_VERSION_OPTION={openstack-os-version}
135               same-node: true
136               block: true
137         - trigger-builds:
138             - project: 'functest-compass-{pod}-daily-{stream}'
139               current-parameters: false
140               predefined-parameters:
141                 DEPLOY_SCENARIO={scenario}
142               same-node: true
143               block: true
144               block-thresholds:
145                 build-step-failure-threshold: 'never'
146                 failure-threshold: 'never'
147                 unstable-threshold: 'FAILURE'
148         - trigger-builds:
149             - project: 'yardstick-compass-{pod}-daily-{stream}'
150               current-parameters: false
151               predefined-parameters:
152                 DEPLOY_SCENARIO={scenario}
153               block: true
154               same-node: true
155               block-thresholds:
156                 build-step-failure-threshold: 'never'
157                 failure-threshold: 'never'
158                 unstable-threshold: 'FAILURE'
159         #dovetail only master by now, not sync with A/B/C branches
160         #here the stream means the SUT stream, dovetail stream is defined in its own job
161         - trigger-builds:
162             - project: 'dovetail-compass-{pod}-basic-{stream}'
163               current-parameters: false
164               predefined-parameters:
165                 DEPLOY_SCENARIO={scenario}
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: 'compass-deploy-{pod}-daily-{stream}'
175
176     disabled: false
177
178     concurrent: true
179
180     properties:
181         - throttle:
182             enabled: true
183             max-per-node: 1
184             option: 'project'
185         - build-blocker:
186             use-build-blocker: true
187             blocking-jobs:
188                 - 'compass-deploy-{pod}-daily-.*?'
189                 - 'compass-verify-deploy-.*?'
190             block-level: 'NODE'
191
192     wrappers:
193         - build-name:
194             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
195         - timeout:
196             timeout: 120
197             abort: true
198
199     parameters:
200         - project-parameter:
201             project: '{project}'
202         - compass-ci-parameter:
203             installer: '{installer}'
204             gs-pathname: '{gs-pathname}'
205         - '{slave-label}-defaults'
206         - '{installer}-defaults'
207
208     scm:
209         - git-scm:
210             credentials-id: '{ssh-credentials}'
211             refspec: ''
212             branch: '{branch}'
213
214     wrappers:
215         - build-name:
216             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
217
218
219     builders:
220         - description-setter:
221             description: "POD: $NODE_NAME"
222         - shell:
223             !include-raw-escape: ./compass-download-artifact.sh
224         - shell:
225             !include-raw-escape: ./compass-deploy.sh
226
227     publishers:
228         - archive:
229             artifacts: 'ansible.log'
230             allow-empty: 'true'
231             fingerprint: true
232
233 ########################
234 # parameter macros
235 ########################
236 - parameter:
237     name: compass-ci-parameter
238     parameters:
239         - string:
240             name: BUILD_DIRECTORY
241             default: $WORKSPACE/build_output
242             description: "Directory where the build artifact will be located upon the completion of the build."
243         - string:
244             name: GS_URL
245             default: '$GS_BASE{gs-pathname}'
246             description: "URL to Google Storage."
247         - choice:
248             name: COMPASS_OPENSTACK_VERSION
249             choices:
250                 - 'mitaka'
251                 - 'liberty'
252         - choice:
253             name: COMPASS_OS_VERSION_OPTION
254             choices:
255                 - ''
256                 - 'xenial'
257
258 ########################
259 # trigger macros
260 ########################
261 - trigger:
262     name: 'compass-os-nosdn-nofeature-ha-huawei-pod5-master-trigger'
263     triggers:
264         - timed: '0 19 * * *'
265 - trigger:
266     name: 'compass-os-odl_l2-nofeature-ha-huawei-pod5-master-trigger'
267     triggers:
268         - timed: '0 23 * * *'
269 - trigger:
270     name: 'compass-os-odl_l3-nofeature-ha-huawei-pod5-master-trigger'
271     triggers:
272         - timed: '0 15 * * *'
273 - trigger:
274     name: 'compass-os-onos-nofeature-ha-huawei-pod5-master-trigger'
275     triggers:
276         - timed: '0 7 * * *'
277 - trigger:
278     name: 'compass-os-ocl-nofeature-ha-huawei-pod5-master-trigger'
279     triggers:
280         - timed: '0 11 * * *'
281 - trigger:
282     name: 'compass-os-onos-sfc-ha-huawei-pod5-master-trigger'
283     triggers:
284         - timed: '0 3 * * *'
285 - trigger:
286     name: 'compass-os-odl_l2-moon-ha-huawei-pod5-master-trigger'
287     triggers:
288         - timed: ''
289 - trigger:
290     name: 'compass-os-nosdn-kvm-ha-huawei-pod5-master-trigger'
291     triggers:
292         - timed: ''
293
294 - trigger:
295     name: 'compass-os-nosdn-nofeature-ha-baremetal-master-trigger'
296     triggers:
297         - timed: '0 2 * * *'
298 - trigger:
299     name: 'compass-os-odl_l2-nofeature-ha-baremetal-master-trigger'
300     triggers:
301         - timed: '0 22 * * *'
302 - trigger:
303     name: 'compass-os-odl_l3-nofeature-ha-baremetal-master-trigger'
304     triggers:
305         - timed: '0 18 * * *'
306 - trigger:
307     name: 'compass-os-onos-nofeature-ha-baremetal-master-trigger'
308     triggers:
309         - timed: '0 14 * * *'
310 - trigger:
311     name: 'compass-os-ocl-nofeature-ha-baremetal-master-trigger'
312     triggers:
313         - timed: '0 10 * * *'
314 - trigger:
315     name: 'compass-os-onos-sfc-ha-baremetal-master-trigger'
316     triggers:
317         - timed: '0 6 * * *'
318 - trigger:
319     name: 'compass-os-odl_l2-moon-ha-baremetal-master-trigger'
320     triggers:
321         - timed: ''
322 - trigger:
323     name: 'compass-os-nosdn-kvm-ha-baremetal-master-trigger'
324     triggers:
325         - timed: ''
326
327 - trigger:
328     name: 'compass-os-nosdn-nofeature-ha-baremetal-colorado-trigger'
329     triggers:
330         - timed: ''
331 - trigger:
332     name: 'compass-os-odl_l2-nofeature-ha-baremetal-colorado-trigger'
333     triggers:
334         - timed: ''
335 - trigger:
336     name: 'compass-os-odl_l3-nofeature-ha-baremetal-colorado-trigger'
337     triggers:
338         - timed: ''
339 - trigger:
340     name: 'compass-os-onos-nofeature-ha-baremetal-colorado-trigger'
341     triggers:
342         - timed: ''
343 - trigger:
344     name: 'compass-os-ocl-nofeature-ha-baremetal-colorado-trigger'
345     triggers:
346         - timed: ''
347 - trigger:
348     name: 'compass-os-onos-sfc-ha-baremetal-colorado-trigger'
349     triggers:
350         - timed: ''
351 - trigger:
352     name: 'compass-os-odl_l2-moon-ha-baremetal-colorado-trigger'
353     triggers:
354         - timed: ''
355 - trigger:
356     name: 'compass-os-nosdn-kvm-ha-baremetal-colorado-trigger'
357     triggers:
358         - timed: ''
359
360 - trigger:
361     name: 'compass-os-nosdn-nofeature-ha-virtual-master-trigger'
362     triggers:
363         - timed: '0 21 * * *'
364 - trigger:
365     name: 'compass-os-odl_l2-nofeature-ha-virtual-master-trigger'
366     triggers:
367         - timed: '0 20 * * *'
368 - trigger:
369     name: 'compass-os-odl_l3-nofeature-ha-virtual-master-trigger'
370     triggers:
371         - timed: '0 19 * * *'
372 - trigger:
373     name: 'compass-os-onos-nofeature-ha-virtual-master-trigger'
374     triggers:
375         - timed: '0 18 * * *'
376 - trigger:
377     name: 'compass-os-ocl-nofeature-ha-virtual-master-trigger'
378     triggers:
379         - timed: '0 16 * * *'
380 - trigger:
381     name: 'compass-os-onos-sfc-ha-virtual-master-trigger'
382     triggers:
383         - timed: '0 15 * * *'
384 - trigger:
385     name: 'compass-os-odl_l2-moon-ha-virtual-master-trigger'
386     triggers:
387         - timed: '0 14 * * *'
388 - trigger:
389     name: 'compass-os-nosdn-kvm-ha-virtual-master-trigger'
390     triggers:
391         - timed: ''
392
393 - trigger:
394     name: 'compass-os-nosdn-nofeature-ha-virtual-colorado-trigger'
395     triggers:
396         - timed: '0 21 * * *'
397 - trigger:
398     name: 'compass-os-odl_l2-nofeature-ha-virtual-colorado-trigger'
399     triggers:
400         - timed: '0 20 * * *'
401 - trigger:
402     name: 'compass-os-odl_l3-nofeature-ha-virtual-colorado-trigger'
403     triggers:
404         - timed: '0 19 * * *'
405 - trigger:
406     name: 'compass-os-onos-nofeature-ha-virtual-colorado-trigger'
407     triggers:
408         - timed: '0 18 * * *'
409 - trigger:
410     name: 'compass-os-ocl-nofeature-ha-virtual-colorado-trigger'
411     triggers:
412         - timed: ''
413 - trigger:
414     name: 'compass-os-onos-sfc-ha-virtual-colorado-trigger'
415     triggers:
416         - timed: '0 15 * * *'
417 - trigger:
418     name: 'compass-os-odl_l2-moon-ha-virtual-colorado-trigger'
419     triggers:
420         - timed: '0 14 * * *'
421 - trigger:
422     name: 'compass-os-nosdn-kvm-ha-virtual-colorado-trigger'
423     triggers:
424         - timed: ''