Enable fuel daily runs on POD2
[releng.git] / jjb / fuel / fuel.yml
1 ########################
2 # Job configuration for fuel
3 ########################
4 - project:
5
6     name: fuel
7
8     project: 'fuel'
9
10     installer: 'fuel'
11
12     jobs:
13         - 'fuel-verify-build-{stream}'
14         - 'fuel-verify-virtual-deploy-{stream}'
15         - 'fuel-merge-build-{stream}'
16         - 'fuel-merge-virtual-deploy-{stream}'
17         - 'fuel-daily-{stream}'
18         - 'fuel-build-{stream}'
19         - 'fuel-deploy-{stream}'
20         - 'fuel-lab-reconfig-{stream}'
21
22     stream:
23         - master:
24             branch: 'master'
25             gs-pathname: ''
26
27 ########################
28 # job templates
29 ########################
30
31 - job-template:
32     name: 'fuel-verify-build-{stream}'
33
34     project-type: freestyle
35
36     node: ericsson-build
37
38     concurrent: true
39
40     properties:
41         - throttle:
42             enabled: true
43             max-total: 3
44
45     logrotate:
46         daysToKeep: 30
47         numToKeep: 10
48         artifactDaysToKeep: -1
49         artifactNumToKeep: -1
50
51     parameters:
52         - project-parameter:
53             project: '{project}'
54         - gerrit-parameter:
55             branch: '{branch}'
56         - fuel-parameter:
57             installer: '{installer}'
58             gs-pathname: '{gs-pathname}'
59
60     scm:
61         - gerrit-trigger-scm:
62             credentials-id: '{ssh-credentials}'
63             refspec: '$GERRIT_REFSPEC'
64             choosing-strategy: 'gerrit'
65
66     wrappers:
67         - ssh-agent-credentials:
68             user: '{ssh-credentials}'
69
70     triggers:
71         - gerrit:
72             trigger-on:
73                 - patchset-created-event:
74                     exclude-drafts: 'false'
75                     exclude-trivial-rebase: 'false'
76                     exclude-no-code-change: 'false'
77                 - draft-published-event
78                 - comment-added-contains-event:
79                     comment-contains-value: 'recheck'
80                 - comment-added-contains-event:
81                     comment-contains-value: 'reverify'
82             projects:
83               - project-compare-type: 'ANT'
84                 project-pattern: '{project}'
85                 branches:
86                   - branch-compare-type: 'ANT'
87                     branch-pattern: '**/{branch}'
88
89     builders:
90         - shell:
91             !include-raw ./fuel-build.sh
92 #        - shell:
93 #            !include-raw ./fuel-upload-artifact.sh
94 #        - shell:
95 #            !include-raw ./fuel-workspace-cleanup.sh
96
97 - job-template:
98     name: 'fuel-verify-virtual-deploy-{stream}'
99
100     project-type: freestyle
101
102     node: ericsson-build
103
104     concurrent: true
105
106     properties:
107         - throttle:
108             enabled: true
109             max-total: 2
110             max-per-node: 1
111
112     logrotate:
113         daysToKeep: 30
114         numToKeep: 10
115         artifactDaysToKeep: -1
116         artifactNumToKeep: -1
117
118     parameters:
119         - project-parameter:
120             project: '{project}'
121         - gerrit-parameter:
122             branch: '{branch}'
123         - fuel-parameter:
124             installer: '{installer}'
125             gs-pathname: '{gs-pathname}'
126
127     scm:
128         - gerrit-trigger-scm:
129             credentials-id: '{ssh-credentials}'
130             refspec: '$GERRIT_REFSPEC'
131             choosing-strategy: 'gerrit'
132
133     wrappers:
134         - ssh-agent-credentials:
135             user: '{ssh-credentials}'
136
137     triggers:
138         - gerrit:
139             trigger-on:
140                 - patchset-created-event:
141                     exclude-drafts: 'false'
142                     exclude-trivial-rebase: 'false'
143                     exclude-no-code-change: 'false'
144                 - draft-published-event
145                 - comment-added-contains-event:
146                     comment-contains-value: 'recheck'
147                 - comment-added-contains-event:
148                     comment-contains-value: 'reverify'
149             projects:
150               - project-compare-type: 'ANT'
151                 project-pattern: '{project}'
152                 branches:
153                   - branch-compare-type: 'ANT'
154                     branch-pattern: '**/{branch}'
155             dependency-jobs: 'fuel-verify-build-{stream}'
156
157     builders:
158 #        - shell:
159 #            !include-raw ./fuel-download-artifact.sh
160         - shell:
161             !include-raw ./fuel-virtual-deploy.sh
162 #        - shell:
163 #            !include-raw ./fuel-workspace-cleanup.sh
164
165 - job-template:
166     name: 'fuel-merge-build-{stream}'
167
168     project-type: freestyle
169
170     node: ericsson-build
171
172     concurrent: true
173
174     properties:
175         - throttle:
176             enabled: true
177             max-total: 2
178
179     logrotate:
180         daysToKeep: 30
181         numToKeep: 40
182         artifactDaysToKeep: -1
183         artifactNumToKeep: 5
184
185     parameters:
186         - project-parameter:
187             project: '{project}'
188         - gerrit-parameter:
189             branch: '{branch}'
190         - fuel-parameter:
191             installer: '{installer}'
192             gs-pathname: ''
193     scm:
194         - gerrit-trigger-scm:
195             credentials-id: '{ssh-credentials}'
196             refspec: ''
197             choosing-strategy: 'default'
198
199     wrappers:
200         - ssh-agent-credentials:
201             user: '{ssh-credentials}'
202
203     triggers:
204         - gerrit:
205             trigger-on:
206                 - change-merged-event
207                 - comment-added-contains-event:
208                     comment-contains-value: 'remerge'
209             projects:
210               - project-compare-type: 'ANT'
211                 project-pattern: '{project}'
212                 branches:
213                     - branch-compare-type: 'ANT'
214                       branch-pattern: '**/{branch}'
215
216     builders:
217         - shell:
218             !include-raw ./fuel-build.sh
219 #        - shell:
220 #            !include-raw ./fuel-upload-artifact.sh
221 #        - shell:
222 #            !include-raw ./fuel-workspace-cleanup.sh
223
224 - job-template:
225     name: 'fuel-merge-virtual-deploy-{stream}'
226
227     project-type: freestyle
228
229     node: ericsson-build
230
231     concurrent: true
232
233     properties:
234         - throttle:
235             enabled: true
236             max-total: 2
237             max-per-node: 1
238
239     logrotate:
240         daysToKeep: 30
241         numToKeep: 40
242         artifactDaysToKeep: -1
243         artifactNumToKeep: 5
244
245     parameters:
246         - project-parameter:
247             project: '{project}'
248         - gerrit-parameter:
249             branch: '{branch}'
250         - fuel-parameter:
251             installer: '{installer}'
252             gs-pathname: ''
253     scm:
254         - gerrit-trigger-scm:
255             credentials-id: '{ssh-credentials}'
256             refspec: ''
257             choosing-strategy: 'default'
258
259     wrappers:
260         - ssh-agent-credentials:
261             user: '{ssh-credentials}'
262
263     triggers:
264         - gerrit:
265             trigger-on:
266                 - change-merged-event
267                 - comment-added-contains-event:
268                     comment-contains-value: 'remerge'
269             projects:
270               - project-compare-type: 'ANT'
271                 project-pattern: '{project}'
272                 branches:
273                     - branch-compare-type: 'ANT'
274                       branch-pattern: '**/{branch}'
275             dependency-jobs: 'fuel-merge-build-{stream}'
276
277     builders:
278 #        - shell:
279 #            !include-raw ./fuel-download-artifact.sh
280         - shell:
281             !include-raw ./fuel-virtual-deploy.sh
282 #        - shell:
283 #            !include-raw ./fuel-workspace-cleanup.sh
284
285 - job-template:
286     name: 'fuel-daily-{stream}'
287
288     project-type: freestyle
289
290     node: ericsson-build
291
292     disabled: false
293
294     triggers:
295         - 'fuel-{strem}-trigger'
296
297     parameters:
298         - project-parameter:
299             project: '{project}'
300         - fuel-parameter:
301             installer: '{installer}'
302             gs-pathname: '{gs-pathname}'
303
304     scm:
305         - git-scm:
306             credentials-id: '{ssh-credentials}'
307             refspec: ''
308             branch: '{branch}'
309
310     logrotate:
311         daysToKeep: '{build-days-to-keep}'
312         numToKeep: '{build-num-to-keep}'
313         artifactDaysToKeep: '{build-artifact-days-to-keep}'
314         artifactNumToKeep: '{build-artifact-num-to-keep}'
315
316     builders:
317         - trigger-builds:
318           - project: 'fuel-build-{stream}'
319             git-revision: true
320             block: true
321         - trigger-builds:
322           - project: 'fuel-lab-reconfig-{stream}'
323             git-revision: true
324             block: true
325         - trigger-builds:
326           - project: 'fuel-deploy-{stream}'
327             git-revision: true
328             block: true
329         - trigger-builds:
330           - project: 'functest-fuel-{stream}'
331             block: true
332             block-thresholds:
333                 build-step-failure-threshold: 'never'
334                 failure-threshold: 'never'
335                 unstable-threshold: 'FAILURE'
336
337     triggers:
338         - 'fuel-{stream}-daily-trigger'
339
340 - job-template:
341     name: 'fuel-build-{stream}'
342
343     project-type: freestyle
344
345     node: ericsson-build
346
347     logrotate:
348         daysToKeep: 30
349         numToKeep: 10
350         artifactDaysToKeep: -1
351         artifactNumToKeep: -1
352
353     parameters:
354         - project-parameter:
355             project: '{project}'
356         - fuel-parameter:
357             installer: '{installer}'
358             gs-pathname: '{gs-pathname}'
359
360     scm:
361         - git-scm:
362             credentials-id: '{ssh-credentials}'
363             refspec: ''
364             branch: '{branch}'
365
366     builders:
367         - shell:
368             !include-raw ./fuel-build.sh
369         - shell:
370             !include-raw ./fuel-upload-artifact.sh
371         - shell:
372             !include-raw ./fuel-workspace-cleanup.sh
373
374     publishers:
375         - email:
376             recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
377
378 - job-template:
379     name: 'fuel-deploy-{stream}'
380
381     project-type: freestyle
382
383     disabled: false
384
385     node: opnfv-jump-2
386
387     parameters:
388         - project-parameter:
389             project: '{project}'
390         - fuel-parameter:
391             installer: '{installer}'
392             gs-pathname: '{gs-pathname}'
393         - string:
394             name: GIT_BASE
395             default: ssh://gerrit.opnfv.org:29418/$PROJECT
396             description: "POD2 has some issues with cloning using https so that's why GIT_BASE is overriden here again."
397
398     scm:
399         - git-scm:
400             credentials-id: '{ssh-credentials}'
401             refspec: ''
402             branch: '{branch}'
403
404     logrotate:
405         daysToKeep: 30
406         numToKeep: 10
407         artifactDaysToKeep: -1
408         artifactNumToKeep: -1
409
410     builders:
411         - shell:
412             !include-raw ./fuel-download-artifact.sh
413         - shell:
414             !include-raw ./fuel-deploy.sh
415
416     publishers:
417         - email:
418             recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
419
420 - job-template:
421     name: 'fuel-lab-reconfig-{stream}'
422
423     project-type: freestyle
424
425     disabled: false
426
427     node: master
428
429     logrotate:
430         daysToKeep: 30
431         numToKeep: 10
432         artifactDaysToKeep: -1
433         artifactNumToKeep: -1
434
435     parameters:
436         - project-parameter:
437             project: '{project}'
438         - fuel-parameter:
439             installer: '{installer}'
440             gs-pathname: '{gs-pathname}'
441         - string:
442             name: GIT_BASE
443             default: ssh://gerrit.opnfv.org:29418/$PROJECT
444             description: "Used for overriding the GIT URL coming from parameters macro."
445
446     scm:
447         - git-scm:
448             credentials-id: '{ssh-credentials}'
449             refspec: ''
450             branch: '{branch}'
451
452     properties:
453         - build-blocker:
454             use-build-blocker: true
455             blocking-jobs:
456                 - "apex-daily.*"
457
458     builders:
459         - shell:
460             !include-raw ./fuel-lab-reconfig.sh
461
462 ########################
463 # parameter macros
464 ########################
465 - parameter:
466     name: fuel-parameter
467     parameters:
468         - string:
469             name: INSTALLER
470             default: '{installer}'
471             description: "Installer to use."
472         - string:
473             name: BUILD_DIRECTORY
474             default: $WORKSPACE/build_output
475             description: "Directory where the build artifact will be located upon the completion of the build."
476         - string:
477             name: CACHE_DIRECTORY
478             default: $HOME/opnfv/cache/$INSTALLER
479             description: "Directory where the cache to be used during the build is located."
480         - string:
481             name: GIT_BASE
482             default: https://gerrit.opnfv.org/gerrit/$PROJECT
483             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
484         - string:
485             name: GS_URL
486             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
487             description: "URL to Google Storage."
488
489 ########################
490 # trigger macros
491 ########################
492 - trigger:
493     name: 'fuel-master-daily-trigger'
494     triggers:
495         - timed: '0 5 * * *'