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