Allow patch-test jobs to run concurrently
[releng/builder.git] / jjb / integration / integration-templates.yaml
1 # Job templates in this file (please update with every new template):
2 #
3 # New (for Be release):
4 # {project}-csit-verify-1node-{functionality}
5 # {project}-csit-1node-{functionality}-{install}-{stream}
6 # {project}-csit-1node-periodic-{functionality}-{install}-{stream}
7 # {project}-csit-verify-3node-{functionality}
8 # {project}-csit-3node-{functionality}-{install}-{stream}
9 # {project}-csit-3node-periodic-{functionality}-{install}-{stream}
10 #
11 # Parameters:
12 #
13 # opendaylight-infra-parameters: main project integration/test ($PROJECT)
14 # jre: (openjdk7 or openjdk8) Java runtime environment to use when launching ODL
15 # integration-branch: distribution branch ($BRANCH)
16 # integration-controller-bundleurl: distribution URL ($BUNDLEURL)
17 # integration-controller-scope: only or all features ($CONTROLLERSCOPE)
18 # integration-controller-features: features under test ($CONTROLLER FEATURES)
19 # integration-test-options: robot options ($TESTOPTIONS)
20 # integration-stream-test-plan: stream specific robot test plan ($STREAMTESTPLAN)
21 # integration-test-plan: fallback robot test plan ($TESTPLAN)
22 # integration-patch-refspec: test branch ($PATCHREFSPEC)
23
24
25 # New templates
26
27 - job-template:
28     name: '{project}-csit-verify-1node-{functionality}'
29     disabled: false
30
31     project-type: freestyle
32     node: centos7-robot-2c-2g
33
34     logrotate:
35         daysToKeep: '{build-days-to-keep}'
36         numToKeep: '{build-num-to-keep}'
37         artifactDaysToKeep: '{build-artifact-days-to-keep}'
38         artifactNumToKeep: '{build-num-to-keep}'
39
40     parameters:
41         - opendaylight-infra-parameters:
42             project: 'integration/test'
43             branch: '{branch}'
44             refspec: 'refs/heads/{branch}'
45             artifacts: '{archive-artifacts}'
46         - integration-branch:
47             branch: 'stable/boron'
48         - integration-distribution-stream:
49             stream: 'boron'
50         - integration-bundleurl:
51             bundleurl: 'last'
52         - integration-controller-scope:
53             controller-scope: 'only'
54         - integration-controller-features:
55             controller-features: '{install-features}'
56         - integration-test-options:
57             test-options: '{robot-options}'
58         - integration-stream-test-plan:
59             stream-test-plan: '{project}-{functionality}-boron.txt'
60         - integration-test-plan:
61             test-plan: '{project}-{functionality}.txt'
62         - integration-jdk-version:
63             jdkversion: 'openjdk8'
64
65     scm:
66         - integration-gerrit-scm:
67             basedir: 'test'
68             refspec: '$GERRIT_REFSPEC'
69             branch: 'master'
70
71     wrappers:
72         - opendaylight-infra-wrappers:
73             build-timeout: '{build-timeout}'
74         - integration-jclouds-controller-mininet:
75             controller-image: '{controller-image}'
76             controller-vms: 1
77             mininet-image: '{mininet-image}'
78             mininet-vms: '{mininet-vms}'
79
80     triggers:
81         - integration-trigger-patch-submitted:
82             server-name: '{server-name}'
83             name: 'integration/test'
84             branch: 'master'
85             pattern: 'csit/suites/{project}/**'
86
87     builders:
88         - integration-copy-ssh-keys
89         - integration-cleanup-workspace
90         - integration-install-robotframework
91         - inject:
92             properties-file: 'env.properties'
93         - integration-get-slave-addresses
94         - inject:
95             properties-file: 'slave_addresses.txt'
96         - integration-get-bundle-vars
97         - inject:
98             properties-file: 'bundle_vars.txt'
99         - integration-deploy-controller-run-test
100         - integration-cleanup-tmp
101
102     publishers:
103         - integration-robot:
104             unstable-if: 0.0
105             pass-if: 100.0
106         - email-notification:
107             email-recipients: '{email-recipients}'
108             email-prefix: '[{project}]'
109         - integration-csit-archive-build
110         - opendaylight-infra-shiplogs:
111             maven-version: 'mvn33'
112
113 - job-template:
114     name: '{project}-csit-1node-{functionality}-{install}-{stream}'
115     disabled: false
116
117     project-type: freestyle
118     node: centos7-robot-2c-2g
119
120     logrotate:
121         daysToKeep: '{build-days-to-keep}'
122         numToKeep: '{build-num-to-keep}'
123         artifactDaysToKeep: '{build-artifact-days-to-keep}'
124         artifactNumToKeep: '{build-num-to-keep}'
125
126     parameters:
127         - opendaylight-infra-parameters:
128             project: 'integration/test'
129             branch: '{branch}'
130             refspec: 'refs/heads/{branch}'
131             artifacts: '{archive-artifacts}'
132         - integration-branch:
133             branch: '{branch}'
134         - integration-distribution-stream:
135             stream: '{stream}'
136         - integration-bundleurl:
137             bundleurl: 'last'
138         - integration-controller-scope:
139             controller-scope: '{scope}'
140         - integration-controller-features:
141             controller-features: '{install-features}'
142         - integration-test-options:
143             test-options: '{robot-options}'
144         - integration-stream-test-plan:
145             stream-test-plan: '{project}-{functionality}-{stream}.txt'
146         - integration-test-plan:
147             test-plan: '{project}-{functionality}.txt'
148         - integration-patch-refspec:
149             branch: 'master'
150         - integration-jdk-version:
151             jdkversion: '{jre}'
152
153     scm:
154         - integration-gerrit-scm:
155             basedir: 'test'
156             refspec: '$PATCHREFSPEC'
157             branch: 'master'
158
159     wrappers:
160         - opendaylight-infra-wrappers:
161             build-timeout: '{build-timeout}'
162         - integration-jclouds-controller-mininet:
163             controller-image: '{controller-image}'
164             controller-vms: 1
165             mininet-image: '{mininet-image}'
166             mininet-vms: '{mininet-vms}'
167
168     triggers:
169         - integration-csit-{install}:
170             jobs: '{trigger-jobs}'
171
172     builders:
173         - integration-copy-ssh-keys
174         - integration-cleanup-workspace
175         - integration-install-robotframework
176         - inject:
177             properties-file: 'env.properties'
178         - integration-get-slave-addresses
179         - inject:
180             properties-file: 'slave_addresses.txt'
181         - integration-get-bundle-vars
182         - inject:
183             properties-file: 'bundle_vars.txt'
184         - integration-deploy-controller-run-test
185         - integration-cleanup-tmp
186
187     publishers:
188         - integration-robot:
189             unstable-if: 0.0
190             pass-if: 100.0
191         - email-notification:
192             email-recipients: '{email-recipients}'
193             email-prefix: '[{project}]'
194         - plot:
195           - title: '{01-plot-title}'
196             yaxis: '{01-plot-yaxis}'
197             group: '{01-plot-group}'
198             num-builds: '5400'
199             keep-records: true
200             style: line
201             use-description: false
202             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
203             series:
204               - file: '{01-plot-data-file}'
205                 inclusion-flag: 'off'
206                 display-table: true
207                 format: csv
208           - title: '{02-plot-title}'
209             yaxis: '{02-plot-yaxis}'
210             group: '{02-plot-group}'
211             num-builds: '5400'
212             keep-records: true
213             style: line
214             use-description: false
215             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
216             series:
217               - file: '{02-plot-data-file}'
218                 inclusion-flag: 'off'
219                 display-table: true
220                 format: csv
221         - integration-csit-archive-build
222         - opendaylight-infra-shiplogs:
223             maven-version: 'mvn33'
224
225 - job-template:
226     name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}'
227     disabled: false
228
229     project-type: freestyle
230     node: centos7-robot-2c-2g
231
232     logrotate:
233         daysToKeep: '{build-days-to-keep}'
234         numToKeep: '{build-num-to-keep}'
235         artifactDaysToKeep: '{build-artifact-days-to-keep}'
236         artifactNumToKeep: '{build-num-to-keep}'
237
238     parameters:
239         - opendaylight-infra-parameters:
240             project: 'integration/test'
241             branch: '{branch}'
242             refspec: 'refs/heads/{branch}'
243             artifacts: '{archive-artifacts}'
244         - integration-branch:
245             branch: '{branch}'
246         - integration-distribution-stream:
247             stream: '{stream}'
248         - integration-bundleurl:
249             bundleurl: 'last'
250         - integration-controller-scope:
251             controller-scope: '{scope}'
252         - integration-controller-features:
253             controller-features: '{install-features}'
254         - integration-test-options:
255             test-options: '{robot-options}'
256         - integration-stream-test-plan:
257             stream-test-plan: '{project}-{functionality}-{stream}.txt'
258         - integration-test-plan:
259             test-plan: '{project}-{functionality}.txt'
260         - integration-patch-refspec:
261             branch: 'master'
262         - integration-jdk-version:
263             jdkversion: '{jre}'
264
265     scm:
266         - integration-gerrit-scm:
267             basedir: 'test'
268             refspec: '$PATCHREFSPEC'
269             branch: 'master'
270
271     wrappers:
272         - opendaylight-infra-wrappers:
273             build-timeout: '{build-timeout}'
274         - integration-jclouds-controller-mininet:
275             controller-image: '{controller-image}'
276             controller-vms: 1
277             mininet-image: '{mininet-image}'
278             mininet-vms: '{mininet-vms}'
279
280     triggers:
281         - timed: '{schedule}'
282
283     builders:
284         - integration-copy-ssh-keys
285         - integration-cleanup-workspace
286         - integration-install-robotframework
287         - inject:
288             properties-file: 'env.properties'
289         - integration-get-slave-addresses
290         - inject:
291             properties-file: 'slave_addresses.txt'
292         - integration-get-bundle-vars
293         - inject:
294             properties-file: 'bundle_vars.txt'
295         - integration-deploy-controller-run-test
296         - integration-cleanup-tmp
297
298     publishers:
299         - integration-robot:
300             unstable-if: 0.0
301             pass-if: 100.0
302         - email-notification:
303             email-recipients: '{email-recipients}'
304             email-prefix: '[{project}]'
305         - plot:
306           - title: '{01-plot-title}'
307             yaxis: '{01-plot-yaxis}'
308             group: '{01-plot-group}'
309             num-builds: '180'
310             keep-records: true
311             style: line
312             use-description: false
313             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
314             series:
315               - file: '{01-plot-data-file}'
316                 inclusion-flag: 'off'
317                 display-table: true
318                 format: csv
319           - title: '{02-plot-title}'
320             yaxis: '{02-plot-yaxis}'
321             group: '{02-plot-group}'
322             num-builds: '180'
323             keep-records: true
324             style: line
325             use-description: false
326             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
327             series:
328               - file: '{02-plot-data-file}'
329                 inclusion-flag: 'off'
330                 display-table: true
331                 format: csv
332           - title: '{03-plot-title}'
333             yaxis: '{03-plot-yaxis}'
334             group: '{03-plot-group}'
335             num-builds: '180'
336             keep-records: true
337             style: line
338             use-description: false
339             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv'
340             series:
341               - file: '{03-plot-data-file}'
342                 inclusion-flag: '{03-inclusion-flag}'
343                 exclude: '{03-exclude-value}'
344                 format: csv
345           - title: '{04-plot-title}'
346             yaxis: '{04-plot-yaxis}'
347             group: '{04-plot-group}'
348             num-builds: '180'
349             keep-records: true
350             style: line
351             use-description: false
352             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv'
353             series:
354               - file: '{04-plot-data-file}'
355                 inclusion-flag: '{04-inclusion-flag}'
356                 exclude: '{04-exclude-value}'
357                 format: csv
358           - title: '{05-plot-title}'
359             yaxis: '{05-plot-yaxis}'
360             group: '{05-plot-group}'
361             num-builds: '180'
362             keep-records: true
363             style: line
364             use-description: false
365             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv'
366             series:
367               - file: '{05-plot-data-file}'
368                 inclusion-flag: '{05-inclusion-flag}'
369                 exclude: '{05-exclude-value}'
370                 format: csv
371           - title: '{06-plot-title}'
372             yaxis: '{06-plot-yaxis}'
373             group: '{06-plot-group}'
374             num-builds: '180'
375             keep-records: true
376             style: line
377             use-description: false
378             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv'
379             series:
380               - file: '{06-plot-data-file}'
381                 inclusion-flag: '{06-inclusion-flag}'
382                 exclude: '{06-exclude-value}'
383                 format: csv
384           - title: '{07-plot-title}'
385             yaxis: '{07-plot-yaxis}'
386             group: '{07-plot-group}'
387             num-builds: '180'
388             keep-records: true
389             style: line
390             use-description: false
391             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv'
392             series:
393               - file: '{07-plot-data-file}'
394                 inclusion-flag: '{07-inclusion-flag}'
395                 exclude: '{07-exclude-value}'
396                 format: csv
397           - title: '{08-plot-title}'
398             yaxis: '{08-plot-yaxis}'
399             group: '{08-plot-group}'
400             num-builds: '180'
401             keep-records: true
402             style: line
403             use-description: false
404             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv'
405             series:
406               - file: '{08-plot-data-file}'
407                 inclusion-flag: '{08-inclusion-flag}'
408                 exclude: '{08-exclude-value}'
409                 format: csv
410           - title: '{09-plot-title}'
411             yaxis: '{09-plot-yaxis}'
412             group: '{09-plot-group}'
413             num-builds: '180'
414             keep-records: true
415             style: line
416             use-description: false
417             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv'
418             series:
419               - file: '{09-plot-data-file}'
420                 inclusion-flag: '{09-inclusion-flag}'
421                 exclude: '{09-exclude-value}'
422                 format: csv
423           - title: '{10-plot-title}'
424             yaxis: '{10-plot-yaxis}'
425             group: '{10-plot-group}'
426             num-builds: '180'
427             keep-records: true
428             style: line
429             use-description: false
430             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv'
431             series:
432               - file: '{10-plot-data-file}'
433                 inclusion-flag: '{10-inclusion-flag}'
434                 exclude: '{10-exclude-value}'
435                 format: csv
436         - integration-csit-archive-build
437         - opendaylight-infra-shiplogs:
438             maven-version: 'mvn33'
439
440 - job-template:
441     name: '{project}-csit-verify-3node-{functionality}'
442     disabled: false
443
444     project-type: freestyle
445     node: centos7-robot-2c-2g
446
447     logrotate:
448         daysToKeep: '{build-days-to-keep}'
449         numToKeep: '{build-num-to-keep}'
450         artifactDaysToKeep: '{build-artifact-days-to-keep}'
451         artifactNumToKeep: '{build-num-to-keep}'
452
453     parameters:
454         - opendaylight-infra-parameters:
455             project: 'integration/test'
456             branch: '{branch}'
457             refspec: 'refs/heads/{branch}'
458             artifacts: '{archive-artifacts}'
459         - integration-branch:
460             branch: 'stable/boron'
461         - integration-distribution-stream:
462             stream: 'boron'
463         - integration-bundleurl:
464             bundleurl: 'last'
465         - integration-controller-scope:
466             controller-scope: 'only'
467         - integration-controller-features:
468             controller-features: 'odl-jolokia,{install-features}'
469         - integration-test-options:
470             test-options: '{robot-options}'
471         - integration-stream-test-plan:
472             stream-test-plan: '{project}-{functionality}-boron.txt'
473         - integration-test-plan:
474             test-plan: '{project}-{functionality}.txt'
475         - integration-jdk-version:
476             jdkversion: 'openjdk8'
477
478     scm:
479         - integration-gerrit-scm:
480             basedir: 'test'
481             refspec: '$GERRIT_REFSPEC'
482             branch: 'master'
483
484     wrappers:
485         - opendaylight-infra-wrappers:
486             build-timeout: '{build-timeout}'
487         - integration-jclouds-controller-mininet:
488             controller-image: '{controller-image}'
489             controller-vms: 3
490             mininet-image: '{mininet-image}'
491             mininet-vms: '{mininet-vms}'
492
493     triggers:
494         - integration-trigger-patch-submitted:
495             server-name: '{server-name}'
496             name: 'integration/test'
497             branch: 'master'
498             pattern: 'csit/suites/{project}/**'
499
500     builders:
501         - integration-copy-ssh-keys
502         - integration-cleanup-workspace
503         - integration-install-robotframework
504         - inject:
505             properties-file: 'env.properties'
506         - integration-get-slave-addresses
507         - inject:
508             properties-file: 'slave_addresses.txt'
509         - integration-get-bundle-vars
510         - inject:
511             properties-file: 'bundle_vars.txt'
512         - integration-configure-clustering
513         - integration-start-cluster-run-test
514         - integration-cleanup-tmp
515
516     publishers:
517         - integration-robot:
518             unstable-if: 0.0
519             pass-if: 100.0
520         - email-notification:
521             email-recipients: '{email-recipients}'
522             email-prefix: '[{project}]'
523         - integration-csit-archive-build
524         - opendaylight-infra-shiplogs:
525             maven-version: 'mvn33'
526
527 - job-template:
528     name: '{project}-csit-3node-{functionality}-{install}-{stream}'
529     disabled: false
530
531     project-type: freestyle
532     node: centos7-robot-2c-2g
533
534     logrotate:
535         daysToKeep: '{build-days-to-keep}'
536         numToKeep: '{build-num-to-keep}'
537         artifactDaysToKeep: '{build-artifact-days-to-keep}'
538         artifactNumToKeep: '{build-num-to-keep}'
539
540     parameters:
541         - opendaylight-infra-parameters:
542             project: 'integration/test'
543             branch: '{branch}'
544             refspec: 'refs/heads/{branch}'
545             artifacts: '{archive-artifacts}'
546         - integration-branch:
547             branch: '{branch}'
548         - integration-distribution-stream:
549             stream: '{stream}'
550         - integration-bundleurl:
551             bundleurl: 'last'
552         - integration-controller-scope:
553             controller-scope: '{scope}'
554         - integration-controller-features:
555             controller-features: 'odl-jolokia,{install-features}'
556         - integration-test-options:
557             test-options: '{robot-options}'
558         - integration-stream-test-plan:
559             stream-test-plan: '{project}-{functionality}-{stream}.txt'
560         - integration-test-plan:
561             test-plan: '{project}-{functionality}.txt'
562         - integration-patch-refspec:
563             branch: 'master'
564         - integration-jdk-version:
565             jdkversion: '{jre}'
566
567     scm:
568         - integration-gerrit-scm:
569             basedir: 'test'
570             refspec: '$PATCHREFSPEC'
571             branch: 'master'
572
573     wrappers:
574         - opendaylight-infra-wrappers:
575             build-timeout: '{build-timeout}'
576         - integration-jclouds-controller-mininet:
577             controller-image: '{controller-image}'
578             controller-vms: 3
579             mininet-image: '{mininet-image}'
580             mininet-vms: '{mininet-vms}'
581
582     triggers:
583         - integration-csit-{install}:
584             jobs: '{trigger-jobs}'
585
586     builders:
587         - integration-copy-ssh-keys
588         - integration-cleanup-workspace
589         - integration-install-robotframework
590         - inject:
591             properties-file: 'env.properties'
592         - integration-get-slave-addresses
593         - inject:
594             properties-file: 'slave_addresses.txt'
595         - integration-get-bundle-vars
596         - inject:
597             properties-file: 'bundle_vars.txt'
598         - integration-configure-clustering
599         - integration-start-cluster-run-test
600         - integration-cleanup-tmp
601
602     publishers:
603         - integration-robot:
604             unstable-if: 0.0
605             pass-if: 100.0
606         - email-notification:
607             email-recipients: '{email-recipients}'
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             keep-records: true
615             style: line
616             use-description: false
617             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
618             series:
619               - file: '{01-plot-data-file}'
620                 inclusion-flag: 'off'
621                 display-table: true
622                 format: csv
623           - title: '{02-plot-title}'
624             yaxis: '{02-plot-yaxis}'
625             group: '{02-plot-group}'
626             num-builds: '5400'
627             keep-records: true
628             style: line
629             use-description: false
630             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
631             series:
632               - file: '{02-plot-data-file}'
633                 inclusion-flag: 'off'
634                 display-table: true
635                 format: csv
636         - integration-csit-archive-build
637         - opendaylight-infra-shiplogs:
638             maven-version: 'mvn33'
639
640 - job-template:
641     name: '{project}-csit-3node-docker-{functionality}-{install}-{stream}'
642     disabled: false
643
644     project-type: freestyle
645     node: centos7-robot-2c-2g
646
647     logrotate:
648         daysToKeep: '{build-days-to-keep}'
649         numToKeep: '{build-num-to-keep}'
650         artifactDaysToKeep: '{build-artifact-days-to-keep}'
651         artifactNumToKeep: '{build-num-to-keep}'
652
653     parameters:
654         - opendaylight-infra-parameters:
655             project: 'integration/test'
656             branch: '{branch}'
657             refspec: 'refs/heads/{branch}'
658             artifacts: '{archive-artifacts}'
659         - integration-branch:
660             branch: '{branch}'
661         - integration-distribution-stream:
662             stream: '{stream}'
663         - integration-bundleurl:
664             bundleurl: 'last'
665         - integration-controller-scope:
666             controller-scope: '{scope}'
667         - integration-controller-features:
668             controller-features: 'odl-jolokia,{install-features}'
669         - integration-test-options:
670             test-options: '{robot-options}'
671         - integration-stream-test-plan:
672             stream-test-plan: '{project}-{functionality}-{stream}.txt'
673         - integration-test-plan:
674             test-plan: '{project}-{functionality}.txt'
675         - integration-patch-refspec:
676             branch: 'master'
677         - integration-jdk-version:
678             jdkversion: '{jre}'
679
680     scm:
681         - integration-gerrit-scm:
682             basedir: 'test'
683             refspec: '$PATCHREFSPEC'
684             branch: 'master'
685
686     wrappers:
687         - opendaylight-infra-wrappers:
688             build-timeout: '{build-timeout}'
689         - integration-jclouds-controller-docker:
690             controller-image: '{controller-image}'
691             controller-vms: 3
692             docker-image: '{docker-image}'
693             docker-vms: 1
694
695     triggers:
696         - integration-csit-{install}:
697             jobs: '{trigger-jobs}'
698
699     builders:
700         - integration-copy-ssh-keys
701         - integration-cleanup-workspace
702         - integration-install-robotframework
703         - inject:
704             properties-file: 'env.properties'
705         - integration-get-slave-addresses
706         - inject:
707             properties-file: 'slave_addresses.txt'
708         - integration-get-bundle-vars
709         - inject:
710             properties-file: 'bundle_vars.txt'
711         - integration-configure-clustering
712         - integration-start-cluster-run-test
713         - integration-cleanup-tmp
714
715     publishers:
716         - integration-robot:
717             unstable-if: 0.0
718             pass-if: 100.0
719         - email-notification:
720             email-recipients: '{email-recipients}'
721             email-prefix: '[{project}]'
722         - plot:
723           - title: '{01-plot-title}'
724             yaxis: '{01-plot-yaxis}'
725             group: '{01-plot-group}'
726             num-builds: '5400'
727             keep-records: true
728             style: line
729             use-description: false
730             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
731             series:
732               - file: '{01-plot-data-file}'
733                 inclusion-flag: 'off'
734                 display-table: true
735                 format: csv
736           - title: '{02-plot-title}'
737             yaxis: '{02-plot-yaxis}'
738             group: '{02-plot-group}'
739             num-builds: '5400'
740             keep-records: true
741             style: line
742             use-description: false
743             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
744             series:
745               - file: '{02-plot-data-file}'
746                 inclusion-flag: 'off'
747                 display-table: true
748                 format: csv
749         - integration-csit-archive-build
750         - opendaylight-infra-shiplogs:
751             maven-version: 'mvn33'
752
753 - job-template:
754     name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
755     disabled: false
756
757     project-type: freestyle
758     node: centos7-robot-2c-2g
759
760     logrotate:
761         daysToKeep: '{build-days-to-keep}'
762         numToKeep: '{build-num-to-keep}'
763         artifactDaysToKeep: '{build-artifact-days-to-keep}'
764         artifactNumToKeep: '{build-num-to-keep}'
765
766     parameters:
767         - opendaylight-infra-parameters:
768             project: 'integration/test'
769             branch: '{branch}'
770             refspec: 'refs/heads/{branch}'
771             artifacts: '{archive-artifacts}'
772         - integration-branch:
773             branch: '{branch}'
774         - integration-distribution-stream:
775             stream: '{stream}'
776         - integration-bundleurl:
777             bundleurl: 'last'
778         - integration-controller-scope:
779             controller-scope: '{scope}'
780         - integration-controller-features:
781             controller-features: 'odl-jolokia,{install-features}'
782         - integration-test-options:
783             test-options: '{robot-options}'
784         - integration-stream-test-plan:
785             stream-test-plan: '{project}-{functionality}-{stream}.txt'
786         - integration-test-plan:
787             test-plan: '{project}-{functionality}.txt'
788         - integration-patch-refspec:
789             branch: 'master'
790         - integration-jdk-version:
791             jdkversion: '{jre}'
792
793     scm:
794         - integration-gerrit-scm:
795             basedir: 'test'
796             refspec: '$PATCHREFSPEC'
797             branch: 'master'
798
799     wrappers:
800         - opendaylight-infra-wrappers:
801             build-timeout: '{build-timeout}'
802         - integration-jclouds-controller-mininet:
803             controller-image: '{controller-image}'
804             controller-vms: 3
805             mininet-image: '{mininet-image}'
806             mininet-vms: '{mininet-vms}'
807
808     triggers:
809         - timed: '{schedule}'
810
811     builders:
812         - integration-copy-ssh-keys
813         - integration-cleanup-workspace
814         - integration-install-robotframework
815         - inject:
816             properties-file: 'env.properties'
817         - integration-get-slave-addresses
818         - inject:
819             properties-file: 'slave_addresses.txt'
820         - integration-get-bundle-vars
821         - inject:
822             properties-file: 'bundle_vars.txt'
823         - integration-configure-clustering
824         - integration-start-cluster-run-test
825         - integration-cleanup-tmp
826
827     publishers:
828         - integration-robot:
829             unstable-if: 0.0
830             pass-if: 100.0
831         - email-notification:
832             email-recipients: '{email-recipients}'
833             email-prefix: '[{project}]'
834         - plot:
835           - title: '{01-plot-title}'
836             yaxis: '{01-plot-yaxis}'
837             group: '{01-plot-group}'
838             num-builds: '180'
839             keep-records: true
840             style: line
841             use-description: false
842             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
843             series:
844               - file: '{01-plot-data-file}'
845                 inclusion-flag: 'off'
846                 display-table: true
847                 format: csv
848           - title: '{02-plot-title}'
849             yaxis: '{02-plot-yaxis}'
850             group: '{02-plot-group}'
851             num-builds: '180'
852             keep-records: true
853             style: line
854             use-description: false
855             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
856             series:
857               - file: '{02-plot-data-file}'
858                 inclusion-flag: 'off'
859                 display-table: true
860                 format: csv
861           - title: '{03-plot-title}'
862             yaxis: '{03-plot-yaxis}'
863             group: '{03-plot-group}'
864             num-builds: '180'
865             keep-records: true
866             style: line
867             use-description: false
868             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv'
869             series:
870               - file: '{03-plot-data-file}'
871                 inclusion-flag: '{03-inclusion-flag}'
872                 exclude: '{03-exclude-value}'
873                 format: csv
874           - title: '{04-plot-title}'
875             yaxis: '{04-plot-yaxis}'
876             group: '{04-plot-group}'
877             num-builds: '180'
878             keep-records: true
879             style: line
880             use-description: false
881             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv'
882             series:
883               - file: '{04-plot-data-file}'
884                 inclusion-flag: '{04-inclusion-flag}'
885                 exclude: '{04-exclude-value}'
886                 format: csv
887           - title: '{05-plot-title}'
888             yaxis: '{05-plot-yaxis}'
889             group: '{05-plot-group}'
890             num-builds: '180'
891             keep-records: true
892             style: line
893             use-description: false
894             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv'
895             series:
896               - file: '{05-plot-data-file}'
897                 inclusion-flag: '{05-inclusion-flag}'
898                 exclude: '{05-exclude-value}'
899                 format: csv
900           - title: '{06-plot-title}'
901             yaxis: '{06-plot-yaxis}'
902             group: '{06-plot-group}'
903             num-builds: '180'
904             keep-records: true
905             style: line
906             use-description: false
907             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv'
908             series:
909               - file: '{06-plot-data-file}'
910                 inclusion-flag: '{06-inclusion-flag}'
911                 exclude: '{06-exclude-value}'
912                 format: csv
913           - title: '{07-plot-title}'
914             yaxis: '{07-plot-yaxis}'
915             group: '{07-plot-group}'
916             num-builds: '180'
917             keep-records: true
918             style: line
919             use-description: false
920             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv'
921             series:
922               - file: '{07-plot-data-file}'
923                 inclusion-flag: '{07-inclusion-flag}'
924                 exclude: '{07-exclude-value}'
925                 format: csv
926           - title: '{08-plot-title}'
927             yaxis: '{08-plot-yaxis}'
928             group: '{08-plot-group}'
929             num-builds: '180'
930             keep-records: true
931             style: line
932             use-description: false
933             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv'
934             series:
935               - file: '{08-plot-data-file}'
936                 inclusion-flag: '{08-inclusion-flag}'
937                 exclude: '{08-exclude-value}'
938                 format: csv
939           - title: '{09-plot-title}'
940             yaxis: '{09-plot-yaxis}'
941             group: '{09-plot-group}'
942             num-builds: '180'
943             keep-records: true
944             style: line
945             use-description: false
946             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv'
947             series:
948               - file: '{09-plot-data-file}'
949                 inclusion-flag: '{09-inclusion-flag}'
950                 exclude: '{09-exclude-value}'
951                 format: csv
952           - title: '{10-plot-title}'
953             yaxis: '{10-plot-yaxis}'
954             group: '{10-plot-group}'
955             num-builds: '180'
956             keep-records: true
957             style: line
958             use-description: false
959             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv'
960             series:
961               - file: '{10-plot-data-file}'
962                 inclusion-flag: '{10-inclusion-flag}'
963                 exclude: '{10-exclude-value}'
964                 format: csv
965         - integration-csit-archive-build
966         - opendaylight-infra-shiplogs:
967             maven-version: 'mvn33'
968
969 - job-template:
970     name: '{project}-csit-1node-openstack-{openstack}-{functionality}-{stream}'
971     disabled: false
972
973     project-type: freestyle
974     node: centos7-robot-2c-2g
975
976     logrotate:
977         daysToKeep: '{build-days-to-keep}'
978         numToKeep: '{build-num-to-keep}'
979         artifactDaysToKeep: '{build-artifact-days-to-keep}'
980         artifactNumToKeep: '{build-num-to-keep}'
981
982     parameters:
983         - opendaylight-infra-parameters:
984             project: 'integration/test'
985             branch: '{branch}'
986             refspec: 'refs/heads/{branch}'
987             artifacts: '{archive-artifacts}'
988         - integration-branch:
989             branch: '{branch}'
990         - integration-distribution-stream:
991             stream: '{stream}'
992         - integration-bundleurl:
993             bundleurl: 'last'
994         - integration-controller-features:
995             controller-features: '{install-features}'
996         - integration-test-plan:
997             test-plan: '{project}-1node-openstack.txt'
998         - integration-patch-refspec:
999             branch: 'master'
1000         - integration-jdk-version:
1001             jdkversion: '{jre}'
1002         - string:
1003             name: OPENSTACK_BRANCH
1004             default: '{openstack-branch}'
1005             description: 'Openstack version to use with devstack'
1006         - string:
1007             name: ODL_ML2_DRIVER_REPO
1008             default: '{odl-ml2-driver-repo}'
1009             description: 'URL to fetch networking-odl driver'
1010         - string:
1011             name: ODL_ML2_BRANCH
1012             default: '{odl-ml2-branch}'
1013             description: 'Version of networking-odl to checkout from the repo'
1014         - string:
1015             name: ODL_ML2_DRIVER_VERSION
1016             default: '{odl-ml2-driver-version}'
1017             description: 'Mode of networking-odl (v1 or v2)'
1018         - string:
1019             name: ODL_ENABLE_L3_FWD
1020             default: '{odl-enable-l3}'
1021             description: 'Enable L3 FWD in ODL for createing br-ex'
1022         - string:
1023             name: PUBLIC_BRIDGE
1024             default: '{public-bridge}'
1025             description: 'Specifies public bridge for provider and external networking'
1026         - string:
1027             name: ENABLE_OS_SERVICES
1028             default: '{enable-openstack-services}'
1029             description: 'comma seperated list of services to enable'
1030         - string:
1031             name: DISABLE_OS_SERVICES
1032             default: '{disable-openstack-services}'
1033             description: 'comma seperated list of services to enable'
1034         - string:
1035             name: TENANT_NETWORK_TYPE
1036             default: '{tenant-network-type}'
1037             description: 'Tenant Network Type supported by the implementation'
1038         - string:
1039             name: SECURITY_GROUP_MODE
1040             default: '{security-group-mode}'
1041             description: 'Security Group Mode to be used in netvirt aclservice config'
1042     scm:
1043         - integration-gerrit-scm:
1044             basedir: 'test'
1045             refspec: '$PATCHREFSPEC'
1046             branch: 'master'
1047
1048     wrappers:
1049         - opendaylight-infra-wrappers:
1050             build-timeout: '{build-timeout}'
1051         - integration-jclouds-controller-devstack:
1052             controller-image: '{controller-image}'
1053             controller-vms: 1
1054             openstack-image: '{openstack-image}'
1055             openstack-vms: '{openstack-vms}'
1056
1057     triggers:
1058         - timed: '{schedule}'
1059
1060     builders:
1061         - integration-copy-ssh-keys
1062         - integration-cleanup-workspace
1063         - integration-install-robotframework
1064         - inject:
1065             properties-file: 'env.properties'
1066         - integration-get-slave-addresses
1067         - inject:
1068             properties-file: 'slave_addresses.txt'
1069         - integration-get-bundle-vars
1070         - inject:
1071             properties-file: 'bundle_vars.txt'
1072         - integration-deploy-controller-run-test
1073         - integration-deploy-openstack-run-test
1074         - integration-cleanup-tmp
1075
1076     publishers:
1077         - integration-robot-tempest:
1078             unstable-if: 0.0
1079             pass-if: 100.0
1080         - email-notification:
1081             email-recipients: '{email-recipients}'
1082             email-prefix: '[{project}]'
1083         - integration-csit-archive-build
1084         - opendaylight-infra-shiplogs:
1085             maven-version: 'mvn33'
1086
1087 - job-template:
1088     name: '{project}-csit-3node-openstack-{openstack}-{functionality}-{stream}'
1089     disabled: false
1090
1091     project-type: freestyle
1092     node: centos7-robot-2c-2g
1093
1094     logrotate:
1095         daysToKeep: '{build-days-to-keep}'
1096         numToKeep: '{build-num-to-keep}'
1097         artifactDaysToKeep: '{build-artifact-days-to-keep}'
1098         artifactNumToKeep: '{build-num-to-keep}'
1099
1100     parameters:
1101         - opendaylight-infra-parameters:
1102             project: 'integration/test'
1103             branch: '{branch}'
1104             refspec: 'refs/heads/{branch}'
1105             artifacts: '{archive-artifacts}'
1106         - integration-branch:
1107             branch: '{branch}'
1108         - integration-distribution-stream:
1109             stream: '{stream}'
1110         - integration-bundleurl:
1111             bundleurl: 'last'
1112         - integration-controller-features:
1113             controller-features: 'odl-jolokia,{install-features}'
1114         - integration-test-plan:
1115             test-plan: '{project}-3node-openstack.txt'
1116         - integration-patch-refspec:
1117             branch: 'master'
1118         - integration-jdk-version:
1119             jdkversion: '{jre}'
1120         - string:
1121             name: OPENSTACK_BRANCH
1122             default: '{openstack-branch}'
1123             description: 'Openstack version to use with devstack'
1124         - string:
1125             name: ODL_ML2_DRIVER_REPO
1126             default: '{odl-ml2-driver-repo}'
1127             description: 'URL to fetch networking-odl driver'
1128         - string:
1129             name: ODL_ML2_BRANCH
1130             default: '{odl-ml2-branch}'
1131             description: 'Version of networking-odl to checkout from the repo'
1132         - string:
1133             name: ODL_ML2_DRIVER_VERSION
1134             default: '{odl-ml2-driver-version}'
1135             description: 'Mode of networking-odl (v1 or v2)'
1136         - string:
1137             name: ODL_ENABLE_L3_FWD
1138             default: '{odl-enable-l3}'
1139             description: 'Enable L3 FWD in ODL for createing br-ex'
1140         - string:
1141             name: PUBLIC_BRIDGE
1142             default: '{public-bridge}'
1143             description: 'Specifies public bridge for provider and external networking'
1144         - string:
1145             name: ENABLE_HAPROXY_FOR_NEUTRON
1146             default: '{enable-haproxy}'
1147             description: 'Enable HAProxy for using neutron interface as HA'
1148         - string:
1149             name: ENABLE_OS_SERVICES
1150             default: '{enable-openstack-services}'
1151             description: 'comma seperated list of services to enable'
1152         - string:
1153             name: DISABLE_OS_SERVICES
1154             default: '{disable-openstack-services}'
1155             description: 'comma seperated list of services to enable'
1156         - string:
1157             name: TENANT_NETWORK_TYPE
1158             default: '{tenant-network-type}'
1159             description: 'Tenant Network Type supported by the implementation'
1160         - string:
1161             name: SECURITY_GROUP_MODE
1162             default: '{security-group-mode}'
1163             description: 'Security Group Mode to be used in netvirt aclservice config'
1164
1165     scm:
1166         - integration-gerrit-scm:
1167             basedir: 'test'
1168             refspec: '$PATCHREFSPEC'
1169             branch: 'master'
1170
1171     wrappers:
1172         - opendaylight-infra-wrappers:
1173             build-timeout: '{build-timeout}'
1174         - integration-jclouds-controller-devstack:
1175             controller-image: '{controller-image}'
1176             controller-vms: 3
1177             openstack-image: '{openstack-image}'
1178             openstack-vms: '{openstack-vms}'
1179
1180     triggers:
1181         - timed: '{schedule}'
1182
1183     builders:
1184         - integration-copy-ssh-keys
1185         - integration-cleanup-workspace
1186         - integration-install-robotframework
1187         - inject:
1188             properties-file: 'env.properties'
1189         - integration-get-slave-addresses
1190         - inject:
1191             properties-file: 'slave_addresses.txt'
1192         - integration-get-bundle-vars
1193         - inject:
1194             properties-file: 'bundle_vars.txt'
1195         - integration-configure-clustering
1196         - integration-start-cluster-run-test
1197         - integration-deploy-openstack-run-test
1198         - integration-cleanup-tmp
1199
1200     publishers:
1201         - integration-robot-tempest:
1202             unstable-if: 0.0
1203             pass-if: 100.0
1204         - email-notification:
1205             email-recipients: '{email-recipients}'
1206             email-prefix: '[{project}]'
1207         - integration-csit-archive-build
1208         - opendaylight-infra-shiplogs:
1209             maven-version: 'mvn33'
1210
1211 # Template: {project}-patch-test-{stream}
1212 # Goal: Build a patch and run project specific system test on a distribution containing the change
1213 # Operation: This job template builds a patch, creates a distribution containing the patch, and
1214 # triggers the project system test defined in {csit-list} when gerrit receives test-{project} keyword
1215
1216 - job-template:
1217     name: '{project}-patch-test-{feature}-{stream}'
1218
1219     project-type: maven
1220     node: centos7-java-builder-2c-8g
1221     concurrent: true
1222     jdk: '{jdk}'
1223
1224     logrotate:
1225         daysToKeep: '{build-days-to-keep}'
1226         numToKeep: '{build-num-to-keep}'
1227         artifactDaysToKeep: '{build-artifact-days-to-keep}'
1228         artifactNumToKeep: '{build-artifact-num-to-keep}'
1229
1230     parameters:
1231         - opendaylight-infra-parameters:
1232             project: '{project}'
1233             branch: '{branch}'
1234             refspec: '$GERRIT_REFSPEC'
1235             artifacts: '{archive-artifacts}'
1236         - integration-branch:
1237             branch: '{branch}'
1238         - integration-distribution-git-url
1239         - string:
1240             name: feature
1241             default: 'all'
1242             description: 'Specific feature test for patch'
1243
1244     scm:
1245         - integration-gerrit-scm:
1246             basedir: '{project}'
1247             refspec: '$GERRIT_REFSPEC'
1248             branch: '{branch}'
1249         - integration-distribution-scm:
1250             branch: '{branch}'
1251
1252     wrappers:
1253         - opendaylight-infra-wrappers:
1254             build-timeout: '{build-timeout}'
1255
1256     triggers:
1257         - gerrit:
1258             server-name: '{server-name}'
1259             trigger-on:
1260                 - comment-added-contains-event:
1261                     comment-contains-value: 'test-{project}-all'
1262                 - comment-added-contains-event:
1263                     comment-contains-value: 'test-{project}-{feature}'
1264             projects:
1265               - project-compare-type: 'ANT'
1266                 project-pattern: '{project}'
1267                 branches:
1268                   - branch-compare-type: 'ANT'
1269                     branch-pattern: '**/{branch}'
1270             skip-vote:
1271                 successful: true
1272                 failed: true
1273                 unstable: true
1274                 notbuilt: true
1275
1276     prebuilders:
1277         - integration-rebase-gerrit-patch
1278         - integration-get-bundle-url
1279         - inject:
1280             properties-file: 'bundle.txt'
1281         - wipe-org-opendaylight-repo
1282         - provide-maven-settings:
1283             global-settings-file: 'odl-global-settings'
1284             settings-file: 'integration-settings'
1285         - maven-target:
1286             maven-version: 'mvn33'
1287             pom: '{project}/pom.xml'
1288             goals: 'clean install dependency:tree -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
1289             java-opts:
1290                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
1291             settings: 'integration-settings'
1292             settings-type: cfp
1293             global-settings: 'odl-global-settings'
1294             global-settings-type: cfp
1295
1296     maven:
1297         maven-name: 'mvn33'
1298         root-pom: 'distribution/pom.xml'
1299         goals: 'clean install dependency:tree -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
1300         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
1301         settings: 'integration-settings'
1302         settings-type: cfp
1303         global-settings: 'odl-global-settings'
1304         global-settings-type: cfp
1305         ignore-upstream-changes: true
1306         post-step-run-condition: 'SUCCESS'
1307
1308     postbuilders:
1309         - trigger-builds:
1310             - project: '{csit-list}'
1311               block: true
1312               predefined-parameters:
1313                   BUNDLEURL=$BUNDLEURL
1314
1315     publishers:
1316         - email-notification:
1317             email-recipients: '{email-recipients}'
1318             email-prefix: '[{project}]'
1319
1320
1321