f95b775e8ddfa64c25f0ee2079bfb5b05f590bda
[releng/builder.git] / jjb / integration / integration-templates.yaml
1 # Job templates in this file (please update with every new template):
2 #
3 # Old templates:
4 # {project}-csit-verify-1node-{functionality}-{stream}
5 # {project}-csit-1node-imds-{functionality}-{install}-{stream}
6 #
7 # New (for Be release):
8 # {project}-csit-verify-1node-{functionality}
9 # {project}-csit-1node-{functionality}-{install}-{stream}
10 # {project}-csit-1node-periodic-{functionality}-{install}-{stream}
11 # {project}-csit-verify-3node-{functionality}
12 # {project}-csit-3node-{functionality}-{install}-{stream}
13 # {project}-csit-3node-periodic-{functionality}-{install}-{stream}
14 #
15 # Parameters:
16 #
17 # project-parameter: main project integration/test ($PROJECT)
18 # integration-branch: distribution branch ($BRANCH)
19 # integration-controller-bundleurl: distribution URL ($BUNDLEURL)
20 # integration-controller-scope: only or all features ($CONTROLLERSCOPE)
21 # integration-controller-features: features under test ($CONTROLLER FEATURES)
22 # integration-test-options: robot options ($TESTOPTIONS)
23 # integration-test-plan: robot test plan ($TESTPLAN)
24 # integration-patch-refspec: test branch ($PATCHREFSPEC)
25
26
27
28 # Old templates
29
30 - job-template:
31     name: '{project}-csit-verify-1node-{functionality}-{stream}'
32
33     project-type: freestyle
34     node: dynamic_robot
35
36     logrotate:
37         daysToKeep: '{build-days-to-keep}'
38         numToKeep: '{build-num-to-keep}'
39         artifactDaysToKeep: '{build-artifact-days-to-keep}'
40         artifactNumToKeep: '{build-num-to-keep}'
41
42     parameters:
43         - project-parameter:
44             project: 'integration/test'
45         - integration-branch:
46             branch: 'master'
47         - integration-bundleurl:
48             bundleurl: 'last'
49         - integration-controller-scope:
50             controller-scope: 'only'
51         - integration-controller-features:
52             controller-features: '{install-features}'
53         - integration-test-options:
54             test-options: '{robot-options}'
55         - integration-test-plan:
56             test-plan: '{project}-{functionality}.txt'
57
58     scm:
59         - integration-gerrit-scm:
60             credentials-id: '{ssh-credentials}'
61             basedir: 'test'
62             refspec: '$GERRIT_REFSPEC'
63             branch: 'master'
64
65     wrappers:
66         - build-timeout
67         - integration-jclouds-controller-mininet:
68             controller-vms: 1
69             mininet-image: '{mininet-image}'
70             mininet-vms: '{mininet-vms}'
71             mininet-cloud-name: '{mininet-cloud-name}'
72         - ssh-agent-credentials:
73             users:
74                 - '{ssh-credentials}'
75
76     triggers:
77         - integration-trigger-patch-submitted:
78             name: 'integration/test'
79             branch: '{branch}'
80             pattern: 'csit/suites/{project}/**'
81
82     builders:
83         - integration-install-robotframework
84         - integration-get-slave-addresses
85         - inject:
86             properties-file: 'slave_addresses.txt'
87         - integration-get-bundle-vars
88         - inject:
89             properties-file: 'bundle_vars.txt'
90         - integration-deploy-controller-run-test
91
92     publishers:
93         - integration-robot:
94             unstable-if: 0.0
95             pass-if: 0.0
96         - archive:
97             artifacts: 'karaf.log'
98         - email-notification:
99             email-prefix: '[{project}]'
100
101 - job-template:
102     name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}'
103
104     project-type: freestyle
105     node: dynamic_robot
106
107     logrotate:
108         daysToKeep: '{build-days-to-keep}'
109         numToKeep: '{build-num-to-keep}'
110         artifactDaysToKeep: '{build-artifact-days-to-keep}'
111         artifactNumToKeep: '{build-num-to-keep}'
112
113     parameters:
114         - project-parameter:
115             project: 'integration/test'
116         - integration-branch:
117             branch: '{branch}'
118         - integration-bundleurl:
119             bundleurl: 'last'
120         - integration-controller-scope:
121             controller-scope: '{scope}'
122         - integration-controller-features:
123             controller-features: '{install-features}'
124         - integration-test-options:
125             test-options: '{robot-options}'
126         - integration-test-plan:
127             test-plan: '{project}-{functionality}.txt'
128         - integration-patch-refspec:
129             branch: 'stable/helium'
130
131     scm:
132         - integration-gerrit-scm:
133             credentials-id: '{ssh-credentials}'
134             basedir: 'test'
135             refspec: '$PATCHREFSPEC'
136             branch: 'master'
137
138     wrappers:
139         - build-timeout
140         - integration-jclouds-controller-mininet:
141             controller-vms: 1
142             mininet-image: '{mininet-image}'
143             mininet-vms: '{mininet-vms}'
144             mininet-cloud-name: '{mininet-cloud-name}'
145         - ssh-agent-credentials:
146             users:
147                 - '{ssh-credentials}'
148
149     triggers:
150         - reverse:
151             jobs: '{trigger-jobs}'
152             result: 'success'
153
154     builders:
155         - integration-install-robotframework
156         - integration-get-slave-addresses
157         - inject:
158             properties-file: 'slave_addresses.txt'
159         - integration-get-bundle-vars
160         - inject:
161             properties-file: 'bundle_vars.txt'
162         - integration-deploy-controller-run-test
163
164     publishers:
165         - integration-robot:
166             unstable-if: 0.0
167             pass-if: 100.0
168         - archive:
169             artifacts: 'karaf.log'
170         - email-notification:
171             email-prefix: '[{project}]'
172         - plot:
173           - title: '{01-plot-title}'
174             yaxis: '{01-plot-yaxis}'
175             group: '{01-plot-group}'
176             num-builds: '5400'
177             style: line
178             use-description: false
179             csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
180             keep-records: true
181             series:
182               - file: '{01-plot-data-file}'
183                 inclusion-flag: 'off'
184                 display-table: true
185                 format: csv
186           - title: '{02-plot-title}'
187             yaxis: '{02-plot-yaxis}'
188             group: '{02-plot-group}'
189             num-builds: '5400'
190             style: line
191             use-description: false
192             csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
193             keep-records: true
194             series:
195               - file: '{02-plot-data-file}'
196                 inclusion-flag: 'off'
197                 display-table: true
198                 format: csv
199
200 # New templates
201
202 - job-template:
203     name: '{project}-csit-verify-1node-{functionality}'
204
205     project-type: freestyle
206     node: dynamic_robot
207
208     logrotate:
209         daysToKeep: '{build-days-to-keep}'
210         numToKeep: '{build-num-to-keep}'
211         artifactDaysToKeep: '{build-artifact-days-to-keep}'
212         artifactNumToKeep: '{build-num-to-keep}'
213
214     parameters:
215         - project-parameter:
216             project: 'integration/test'
217         - integration-branch:
218             branch: 'master'
219         - integration-bundleurl:
220             bundleurl: 'last'
221         - integration-controller-scope:
222             controller-scope: 'only'
223         - integration-controller-features:
224             controller-features: '{install-features}'
225         - integration-test-options:
226             test-options: '{robot-options}'
227         - integration-test-plan:
228             test-plan: '{project}-{functionality}.txt'
229
230     scm:
231         - integration-gerrit-scm:
232             credentials-id: '{ssh-credentials}'
233             basedir: 'test'
234             refspec: '$GERRIT_REFSPEC'
235             branch: 'master'
236
237     wrappers:
238         - build-timeout
239         - integration-jclouds-controller-mininet:
240             controller-vms: 1
241             mininet-image: '{mininet-image}'
242             mininet-vms: '{mininet-vms}'
243             mininet-cloud-name: '{mininet-cloud-name}'
244         - ssh-agent-credentials:
245             users:
246                 - '{ssh-credentials}'
247
248     triggers:
249         - integration-trigger-patch-submitted:
250             name: 'integration/test'
251             branch: 'master'
252             pattern: 'csit/suites/{project}/**'
253
254     builders:
255         - integration-install-robotframework
256         - integration-get-slave-addresses
257         - inject:
258             properties-file: 'slave_addresses.txt'
259         - integration-get-bundle-vars
260         - inject:
261             properties-file: 'bundle_vars.txt'
262         - integration-deploy-controller-run-test
263
264     publishers:
265         - integration-robot:
266             unstable-if: 0.0
267             pass-if: 0.0
268         - archive:
269             artifacts: 'karaf.log'
270         - email-notification:
271             email-prefix: '[{project}]'
272
273 - job-template:
274     name: '{project}-csit-1node-{functionality}-{install}-{stream}'
275
276     project-type: freestyle
277     node: dynamic_robot
278
279     logrotate:
280         daysToKeep: '{build-days-to-keep}'
281         numToKeep: '{build-num-to-keep}'
282         artifactDaysToKeep: '{build-artifact-days-to-keep}'
283         artifactNumToKeep: '{build-num-to-keep}'
284
285     parameters:
286         - project-parameter:
287             project: 'integration/test'
288         - integration-branch:
289             branch: '{branch}'
290         - integration-bundleurl:
291             bundleurl: 'last'
292         - integration-controller-scope:
293             controller-scope: '{scope}'
294         - integration-controller-features:
295             controller-features: '{install-features}'
296         - integration-test-options:
297             test-options: '{robot-options}'
298         - integration-test-plan:
299             test-plan: '{project}-{functionality}.txt'
300         - integration-patch-refspec:
301             branch: 'master'
302
303     scm:
304         - integration-gerrit-scm:
305             credentials-id: '{ssh-credentials}'
306             basedir: 'test'
307             refspec: '$PATCHREFSPEC'
308             branch: 'master'
309
310     wrappers:
311         - build-timeout
312         - integration-jclouds-controller-mininet:
313             controller-vms: 1
314             mininet-image: '{mininet-image}'
315             mininet-vms: '{mininet-vms}'
316             mininet-cloud-name: '{mininet-cloud-name}'
317         - ssh-agent-credentials:
318             users:
319                 - '{ssh-credentials}'
320
321     triggers:
322         - reverse:
323             jobs: '{trigger-jobs}'
324             result: 'success'
325
326     builders:
327         - integration-install-robotframework
328         - integration-get-slave-addresses
329         - inject:
330             properties-file: 'slave_addresses.txt'
331         - integration-get-bundle-vars
332         - inject:
333             properties-file: 'bundle_vars.txt'
334         - integration-deploy-controller-run-test
335
336     publishers:
337         - integration-robot:
338             unstable-if: 0.0
339             pass-if: 100.0
340         - archive:
341             artifacts: 'karaf.log'
342         - email-notification:
343             email-prefix: '[{project}]'
344         - plot:
345           - title: '{01-plot-title}'
346             yaxis: '{01-plot-yaxis}'
347             group: '{01-plot-group}'
348             num-builds: '5400'
349             style: line
350             use-description: false
351             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
352             series:
353               - file: '{01-plot-data-file}'
354                 inclusion-flag: 'off'
355                 display-table: true
356                 format: csv
357           - title: '{02-plot-title}'
358             yaxis: '{02-plot-yaxis}'
359             group: '{02-plot-group}'
360             num-builds: '5400'
361             style: line
362             use-description: false
363             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
364             series:
365               - file: '{02-plot-data-file}'
366                 inclusion-flag: 'off'
367                 display-table: true
368                 format: csv
369
370 - job-template:
371     name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}'
372
373     project-type: freestyle
374     node: dynamic_robot
375
376     logrotate:
377         daysToKeep: '{build-days-to-keep}'
378         numToKeep: '{build-num-to-keep}'
379         artifactDaysToKeep: '{build-artifact-days-to-keep}'
380         artifactNumToKeep: '{build-num-to-keep}'
381
382     parameters:
383         - project-parameter:
384             project: 'integration/test'
385         - integration-branch:
386             branch: '{branch}'
387         - integration-bundleurl:
388             bundleurl: 'last'
389         - integration-controller-scope:
390             controller-scope: '{scope}'
391         - integration-controller-features:
392             controller-features: '{install-features}'
393         - integration-test-options:
394             test-options: '{robot-options}'
395         - integration-test-plan:
396             test-plan: '{project}-{functionality}.txt'
397         - integration-patch-refspec:
398             branch: 'master'
399
400     scm:
401         - integration-gerrit-scm:
402             credentials-id: '{ssh-credentials}'
403             basedir: 'test'
404             refspec: '$PATCHREFSPEC'
405             branch: 'master'
406
407     wrappers:
408         - integration-jclouds-controller-mininet:
409             controller-vms: 1
410             mininet-image: '{mininet-image}'
411             mininet-vms: '{mininet-vms}'
412             mininet-cloud-name: '{mininet-cloud-name}'
413         - ssh-agent-credentials:
414             users:
415                 - '{ssh-credentials}'
416
417     triggers:
418         - timed: '{schedule}'
419
420     builders:
421         - integration-install-robotframework
422         - integration-get-slave-addresses
423         - inject:
424             properties-file: 'slave_addresses.txt'
425         - integration-get-bundle-vars
426         - inject:
427             properties-file: 'bundle_vars.txt'
428         - integration-deploy-controller-run-test
429
430     publishers:
431         - integration-robot:
432             unstable-if: 0.0
433             pass-if: 100.0
434         - archive:
435             artifacts: 'karaf.log'
436         - email-notification:
437             email-prefix: '[{project}]'
438         - plot:
439           - title: '{01-plot-title}'
440             yaxis: '{01-plot-yaxis}'
441             group: '{01-plot-group}'
442             num-builds: '180'
443             style: line
444             use-description: false
445             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
446             series:
447               - file: '{01-plot-data-file}'
448                 inclusion-flag: 'off'
449                 display-table: true
450                 format: csv
451           - title: '{02-plot-title}'
452             yaxis: '{02-plot-yaxis}'
453             group: '{02-plot-group}'
454             num-builds: '180'
455             style: line
456             use-description: false
457             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
458             series:
459               - file: '{02-plot-data-file}'
460                 inclusion-flag: 'off'
461                 display-table: true
462                 format: csv
463
464 - job-template:
465     name: '{project}-csit-verify-3node-{functionality}'
466
467     project-type: freestyle
468     node: dynamic_robot
469
470     logrotate:
471         daysToKeep: '{build-days-to-keep}'
472         numToKeep: '{build-num-to-keep}'
473         artifactDaysToKeep: '{build-artifact-days-to-keep}'
474         artifactNumToKeep: '{build-num-to-keep}'
475
476     parameters:
477         - project-parameter:
478             project: 'integration/test'
479         - integration-branch:
480             branch: 'master'
481         - integration-bundleurl:
482             bundleurl: 'last'
483         - integration-controller-scope:
484             controller-scope: 'only'
485         - integration-controller-features:
486             controller-features: 'odl-mdsal-clustering,{install-features}'
487         - integration-test-options:
488             test-options: '{robot-options}'
489         - integration-test-plan:
490             test-plan: '{project}-{functionality}.txt'
491
492     scm:
493         - integration-gerrit-scm:
494             credentials-id: '{ssh-credentials}'
495             basedir: 'test'
496             refspec: '$GERRIT_REFSPEC'
497             branch: 'master'
498
499     wrappers:
500         - build-timeout
501         - integration-jclouds-controller-mininet:
502             controller-vms: 3
503             mininet-image: '{mininet-image}'
504             mininet-vms: '{mininet-vms}'
505             mininet-cloud-name: '{mininet-cloud-name}'
506         - ssh-agent-credentials:
507             users:
508                 - '{ssh-credentials}'
509
510     triggers:
511         - integration-trigger-patch-submitted:
512             name: 'integration/test'
513             branch: 'master'
514             pattern: 'csit/suites/{project}/**'
515
516     builders:
517         - integration-install-robotframework
518         - integration-get-slave-addresses
519         - inject:
520             properties-file: 'slave_addresses.txt'
521         - integration-get-bundle-vars
522         - inject:
523             properties-file: 'bundle_vars.txt'
524         - integration-deploy-controller
525         - integration-configure-clustering
526         - integration-start-cluster-run-test
527     publishers:
528         - integration-robot:
529             unstable-if: 0.0
530             pass-if: 0.0
531         - archive:
532             artifacts: '*karaf.log'
533         - email-notification:
534             email-prefix: '[{project}]'
535
536 - job-template:
537     name: '{project}-csit-3node-{functionality}-{install}-{stream}'
538
539     project-type: freestyle
540     node: dynamic_robot
541
542     logrotate:
543         daysToKeep: '{build-days-to-keep}'
544         numToKeep: '{build-num-to-keep}'
545         artifactDaysToKeep: '{build-artifact-days-to-keep}'
546         artifactNumToKeep: '{build-num-to-keep}'
547
548     parameters:
549         - project-parameter:
550             project: 'integration/test'
551         - integration-branch:
552             branch: '{branch}'
553         - integration-bundleurl:
554             bundleurl: 'last'
555         - integration-controller-scope:
556             controller-scope: '{scope}'
557         - integration-controller-features:
558             controller-features: 'odl-mdsal-clustering,{install-features}'
559         - integration-test-options:
560             test-options: '{robot-options}'
561         - integration-test-plan:
562             test-plan: '{project}-{functionality}.txt'
563         - integration-patch-refspec:
564             branch: 'master'
565
566     scm:
567         - integration-gerrit-scm:
568             credentials-id: '{ssh-credentials}'
569             basedir: 'test'
570             refspec: '$PATCHREFSPEC'
571             branch: 'master'
572
573     wrappers:
574         - build-timeout
575         - integration-jclouds-controller-mininet:
576             controller-vms: 3
577             mininet-image: '{mininet-image}'
578             mininet-vms: '{mininet-vms}'
579             mininet-cloud-name: '{mininet-cloud-name}'
580         - ssh-agent-credentials:
581             users:
582                 - '{ssh-credentials}'
583
584     triggers:
585         - reverse:
586             jobs: '{trigger-jobs}'
587             result: 'success'
588
589     builders:
590         - integration-install-robotframework
591         - integration-get-slave-addresses
592         - inject:
593             properties-file: 'slave_addresses.txt'
594         - integration-get-bundle-vars
595         - inject:
596             properties-file: 'bundle_vars.txt'
597         - integration-deploy-controller
598         - integration-configure-clustering
599         - integration-start-cluster-run-test
600
601     publishers:
602         - integration-robot:
603             unstable-if: 0.0
604             pass-if: 100.0
605         - archive:
606             artifacts: '*karaf.log'
607         - email-notification:
608             email-prefix: '[{project}]'
609         - plot:
610           - title: '{01-plot-title}'
611             yaxis: '{01-plot-yaxis}'
612             group: '{01-plot-group}'
613             num-builds: '5400'
614             style: line
615             use-description: false
616             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
617             series:
618               - file: '{01-plot-data-file}'
619                 inclusion-flag: 'off'
620                 display-table: true
621                 format: csv
622           - title: '{02-plot-title}'
623             yaxis: '{02-plot-yaxis}'
624             group: '{02-plot-group}'
625             num-builds: '5400'
626             style: line
627             use-description: false
628             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
629             series:
630               - file: '{02-plot-data-file}'
631                 inclusion-flag: 'off'
632                 display-table: true
633                 format: csv
634
635 - job-template:
636     name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
637
638     project-type: freestyle
639     node: dynamic_robot
640
641     logrotate:
642         daysToKeep: '{build-days-to-keep}'
643         numToKeep: '{build-num-to-keep}'
644         artifactDaysToKeep: '{build-artifact-days-to-keep}'
645         artifactNumToKeep: '{build-num-to-keep}'
646
647     parameters:
648         - project-parameter:
649             project: 'integration/test'
650         - integration-branch:
651             branch: '{branch}'
652         - integration-bundleurl:
653             bundleurl: 'last'
654         - integration-controller-scope:
655             controller-scope: '{scope}'
656         - integration-controller-features:
657             controller-features: 'odl-mdsal-clustering,{install-features}'
658         - integration-test-options:
659             test-options: '{robot-options}'
660         - integration-test-plan:
661             test-plan: '{project}-{functionality}.txt'
662         - integration-patch-refspec:
663             branch: 'master'
664
665     scm:
666         - integration-gerrit-scm:
667             credentials-id: '{ssh-credentials}'
668             basedir: 'test'
669             refspec: '$PATCHREFSPEC'
670             branch: 'master'
671
672     wrappers:
673         - integration-jclouds-controller-mininet:
674             controller-vms: 3
675             mininet-image: '{mininet-image}'
676             mininet-vms: '{mininet-vms}'
677             mininet-cloud-name: '{mininet-cloud-name}'
678         - ssh-agent-credentials:
679             users:
680                 - '{ssh-credentials}'
681
682     triggers:
683         - timed: '{schedule}'
684
685     builders:
686         - integration-install-robotframework
687         - integration-get-slave-addresses
688         - inject:
689             properties-file: 'slave_addresses.txt'
690         - integration-get-bundle-vars
691         - inject:
692             properties-file: 'bundle_vars.txt'
693         - integration-deploy-controller
694         - integration-configure-clustering
695         - integration-start-cluster-run-test
696
697     publishers:
698         - integration-robot:
699             unstable-if: 0.0
700             pass-if: 100.0
701         - archive:
702             artifacts: '*karaf.log'
703         - email-notification:
704             email-prefix: '[{project}]'
705         - plot:
706           - title: '{01-plot-title}'
707             yaxis: '{01-plot-yaxis}'
708             group: '{01-plot-group}'
709             num-builds: '5400'
710             style: line
711             use-description: false
712             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
713             series:
714               - file: '{01-plot-data-file}'
715                 inclusion-flag: 'off'
716                 display-table: true
717                 format: csv
718           - title: '{02-plot-title}'
719             yaxis: '{02-plot-yaxis}'
720             group: '{02-plot-group}'
721             num-builds: '5400'
722             style: line
723             use-description: false
724             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
725             series:
726               - file: '{02-plot-data-file}'
727                 inclusion-flag: 'off'
728                 display-table: true
729                 format: csv