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