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