fe2bbcc63f55f460cf7549201c3b90e3916d6c62
[releng.git] / jjb / armband / armband-ci-jobs.yaml
1 ---
2 # jenkins job templates for Armband
3 - project:
4     name: 'armband-ci'
5     project: 'armband'
6
7     # -------------------------------
8     # BRANCH ANCHORS
9     # -------------------------------
10     master: &master
11       stream: master
12       branch: '{stream}'
13       gs-pathname: ''
14       disabled: false
15     fraser: &fraser
16       stream: fraser
17       branch: 'stable/{stream}'
18       gs-pathname: '/{stream}'
19       disabled: false
20     # -------------------------------
21     # DEPLOY TYPE ANCHORS
22     # -------------------------------
23     baremetal: &baremetal
24       installer: 'fuel'
25       deploy-type: 'baremetal'
26       slave-label: 'armband-{deploy-type}'
27     virtual: &virtual
28       installer: 'fuel'
29       deploy-type: 'virtual'
30       slave-label: 'armband-{deploy-type}'
31     # -------------------------------
32     # POD, INSTALLER, AND BRANCH MAPPING
33     # -------------------------------
34     # CI POD's
35     # -------------------------------
36     #        fraser
37     # -------------------------------
38     pod:
39       # yamllint disable rule:key-duplicates
40       - armband-baremetal:
41           <<: *baremetal
42           <<: *fraser
43       - armband-virtual:
44           <<: *virtual
45           <<: *fraser
46       # -------------------------------
47       #        master
48       # -------------------------------
49       - armband-baremetal:
50           <<: *baremetal
51           <<: *master
52       - armband-virtual:
53           <<: *virtual
54           <<: *master
55     # yamllint enable rule:key-duplicates
56     # -------------------------------
57     #       scenarios
58     # -------------------------------
59     scenario:
60       # HA scenarios
61       - 'os-nosdn-nofeature-ha':
62           auto-trigger-name: '{installer}-{scenario}-{pod}-{stream}-trigger'
63       - 'os-odl-nofeature-ha':
64           auto-trigger-name: '{installer}-{scenario}-{pod}-{stream}-trigger'
65       - 'os-ovn-nofeature-ha':
66           auto-trigger-name: '{installer}-{scenario}-{pod}-{stream}-trigger'
67       - 'os-nosdn-ovs-ha':
68           auto-trigger-name: '{installer}-{scenario}-{pod}-{stream}-trigger'
69
70       # NOHA scenarios
71       - 'os-nosdn-nofeature-noha':
72           auto-trigger-name: '{installer}-{scenario}-{pod}-{stream}-trigger'
73
74     jobs:
75       - '{installer}-{scenario}-{pod}-daily-{stream}'
76       - '{installer}-deploy-{pod}-daily-{stream}'
77
78 ########################
79 # job templates
80 ########################
81 - job-template:
82     name: '{installer}-{scenario}-{pod}-daily-{stream}'
83
84     disabled: '{obj:disabled}'
85
86     concurrent: false
87
88     properties:
89       - logrotate-default
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             - '{installer}-os-.*?-{pod}-daily-.*'
99             - 'armband-verify-.*'
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           gs-pathname: '{gs-pathname}'
115       - '{slave-label}-defaults':
116           installer: '{installer}'
117       - string:
118           name: DEPLOY_SCENARIO
119           default: '{scenario}'
120
121     builders:
122       - trigger-builds:
123           - project: '{installer}-deploy-{pod}-daily-{stream}'
124             current-parameters: false
125             predefined-parameters:
126               DEPLOY_SCENARIO={scenario}
127             same-node: true
128             block: true
129       - trigger-builds:
130           - project: 'functest-{installer}-{pod}-daily-{stream}'
131             current-parameters: false
132             predefined-parameters:
133               DEPLOY_SCENARIO={scenario}
134             same-node: true
135             block: true
136             block-thresholds:
137               build-step-failure-threshold: 'never'
138               failure-threshold: 'never'
139               unstable-threshold: 'FAILURE'
140       - trigger-builds:
141           - project: 'yardstick-{installer}-{pod}-daily-{stream}'
142             current-parameters: false
143             predefined-parameters:
144               DEPLOY_SCENARIO={scenario}
145             block: true
146             same-node: true
147             block-thresholds:
148               build-step-failure-threshold: 'never'
149               failure-threshold: 'never'
150               unstable-threshold: 'FAILURE'
151       # 1.here the stream means the SUT stream, dovetail stream is defined in its own job
152       # 2.testsuite proposed_tests here is for new test cases planning to add into OVP
153       # 3.run proposed_tests on Monday, Wednesday and Friday against ha scenario
154       # 4.testsuite default here is for the test cases already added into OVP
155       # 5.run default testsuite on Tuesday against ha scenario
156       # 6.not used for release criteria or compliance,
157       #   only to debug the dovetail tool bugs with arm pods
158       - conditional-step:
159           condition-kind: and
160           condition-operands:
161             - condition-kind: regex-match
162               regex: '.*-ha'
163               label: '{scenario}'
164             - condition-kind: day-of-week
165               day-selector: select-days
166               days:
167                 SAT: true
168               use-build-time: true
169           steps:
170             - trigger-builds:
171                 - project: 'dovetail-{installer}-{pod}-proposed_tests-{stream}'
172                   current-parameters: false
173                   predefined-parameters:
174                     DEPLOY_SCENARIO={scenario}
175                   block: true
176                   same-node: true
177                   block-thresholds:
178                     build-step-failure-threshold: 'never'
179                     failure-threshold: 'never'
180                     unstable-threshold: 'FAILURE'
181       - conditional-step:
182           condition-kind: and
183           condition-operands:
184             - condition-kind: regex-match
185               regex: '.*-ha'
186               label: '{scenario}'
187             - condition-kind: day-of-week
188               day-selector: select-days
189               days:
190                 SUN: true
191               use-build-time: true
192           steps:
193             - trigger-builds:
194                 - project: 'dovetail-{installer}-{pod}-default-{stream}'
195                   current-parameters: false
196                   predefined-parameters:
197                     DEPLOY_SCENARIO={scenario}
198                   block: true
199                   same-node: true
200                   block-thresholds:
201                     build-step-failure-threshold: 'never'
202                     failure-threshold: 'never'
203                     unstable-threshold: 'FAILURE'
204       # Armband uses Fuel's log collection project job, no need to duplicate
205       - conditional-step:
206           condition-kind: not
207           condition-operand:
208             condition-kind: regex-match
209             regex: 'danube'
210             label: '{stream}'
211           steps:
212             - trigger-builds:
213                 - project: 'fuel-collect-logs-{deploy-type}-daily-{stream}'
214                   current-parameters: false
215                   predefined-parameters:
216                     DEPLOY_SCENARIO={scenario}
217                   block: true
218                   same-node: true
219                   block-thresholds:
220                     build-step-failure-threshold: 'never'
221                     failure-threshold: 'never'
222                     unstable-threshold: 'FAILURE'
223
224 - job-template:
225     name: '{installer}-deploy-{pod}-daily-{stream}'
226
227     concurrent: true
228
229     properties:
230       - logrotate-default
231       - throttle:
232           enabled: true
233           max-total: 4
234           max-per-node: 1
235           option: 'project'
236       - build-blocker:
237           use-build-blocker: true
238           blocking-jobs:
239             - '{installer}-deploy-{pod}-daily-{stream}'
240             - '{installer}-deploy-generic-daily-.*'
241           block-level: 'NODE'
242
243     parameters:
244       - project-parameter:
245           project: '{project}'
246           branch: '{branch}'
247       - '{installer}-defaults':
248           gs-pathname: '{gs-pathname}'
249       - '{slave-label}-defaults':
250           installer: '{installer}'
251       - testapi-parameter
252       - string:
253           name: DEPLOY_SCENARIO
254           default: 'os-odl-nofeature-ha'
255
256     scm:
257       - git-scm
258
259     wrappers:
260       - build-name:
261           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
262
263     builders:
264       - track-begin-timestamp
265       - shell:
266           !include-raw-escape: ../fuel/fuel-deploy.sh
267
268     publishers:
269       - email:
270           recipients: armband@enea.com
271       - email-jenkins-admins-on-failure
272       - report-provision-result
273
274 ########################
275 # trigger macros
276 ########################
277 # CI PODs
278 # ----------------------------------------------------------------
279 # Enea Armband CI Baremetal Triggers running against master branch
280 # ----------------------------------------------------------------
281 - trigger:
282     name: 'fuel-os-nosdn-nofeature-ha-armband-baremetal-master-trigger'
283     triggers:
284       - timed: '0 1 * * 1'
285 - trigger:
286     name: 'fuel-os-nosdn-nofeature-noha-armband-baremetal-master-trigger'
287     triggers:
288       - timed: ''
289 - trigger:
290     name: 'fuel-os-odl-nofeature-ha-armband-baremetal-master-trigger'
291     triggers:
292       - timed: '0 1 * * 3,7'
293 - trigger:
294     name: 'fuel-os-ovn-nofeature-ha-armband-baremetal-master-trigger'
295     triggers:
296       - timed: ''
297 - trigger:
298     name: 'fuel-os-nosdn-ovs-ha-armband-baremetal-master-trigger'
299     triggers:
300       - timed: '0 1 * * 4'
301 # ---------------------------------------------------------------------
302 # Enea Armband CI Baremetal Triggers running against fraser branch
303 # ---------------------------------------------------------------------
304 - trigger:
305     name: 'fuel-os-nosdn-nofeature-ha-armband-baremetal-fraser-trigger'
306     triggers:
307       - timed: '0 1 * * 2'
308 - trigger:
309     name: 'fuel-os-nosdn-nofeature-noha-armband-baremetal-fraser-trigger'
310     triggers:
311       - timed: ''
312 - trigger:
313     name: 'fuel-os-odl-nofeature-ha-armband-baremetal-fraser-trigger'
314     triggers:
315       - timed: '0 1 * * 5'
316 - trigger:
317     name: 'fuel-os-ovn-nofeature-ha-armband-baremetal-fraser-trigger'
318     triggers:
319       - timed: ''
320 - trigger:
321     name: 'fuel-os-nosdn-ovs-ha-armband-baremetal-fraser-trigger'
322     triggers:
323       - timed: '0 1 * * 6'
324
325 # --------------------------------------------------------------
326 # Enea Armband CI Virtual Triggers running against master branch
327 # --------------------------------------------------------------
328 - trigger:
329     name: 'fuel-os-nosdn-nofeature-ha-armband-virtual-master-trigger'
330     triggers:
331       - timed: ''
332 - trigger:
333     name: 'fuel-os-nosdn-nofeature-noha-armband-virtual-master-trigger'
334     triggers:
335       - timed: ''
336 - trigger:
337     name: 'fuel-os-odl-nofeature-ha-armband-virtual-master-trigger'
338     triggers:
339       - timed: ''
340 - trigger:
341     name: 'fuel-os-ovn-nofeature-ha-armband-virtual-master-trigger'
342     triggers:
343       - timed: ''
344 - trigger:
345     name: 'fuel-os-nosdn-ovs-ha-armband-virtual-master-trigger'
346     triggers:
347       - timed: ''
348 # -------------------------------------------------------------------
349 # Enea Armband CI Virtual Triggers running against fraser branch
350 # -------------------------------------------------------------------
351 - trigger:
352     name: 'fuel-os-nosdn-nofeature-ha-armband-virtual-fraser-trigger'
353     triggers:
354       - timed: ''
355 - trigger:
356     name: 'fuel-os-nosdn-nofeature-noha-armband-virtual-fraser-trigger'
357     triggers:
358       - timed: ''
359 - trigger:
360     name: 'fuel-os-odl-nofeature-ha-armband-virtual-fraser-trigger'
361     triggers:
362       - timed: ''
363 - trigger:
364     name: 'fuel-os-ovn-nofeature-ha-armband-virtual-fraser-trigger'
365     triggers:
366       - timed: ''
367 - trigger:
368     name: 'fuel-os-nosdn-ovs-ha-armband-virtual-fraser-trigger'
369     triggers:
370       - timed: ''