9537f9ecc579e4bea47155d8b2de7be323b96662
[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-bundle-url: distribution URL ($BUNDLE_URL)
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           os-cloud: '{os-cloud}'
43           project: 'integration/test'
44           branch: '{branch}'
45           refspec: 'refs/heads/{branch}'
46           artifacts: '{archive-artifacts}'
47       - integration-distribution-branch:
48           branch: '{verify-branch}'
49       - integration-distribution-stream:
50           stream: '{verify-stream}'
51       - integration-bundle-url:
52           bundle-url: '{bundle-url}'
53       - integration-controller-scope:
54           controller-scope: 'only'
55       - integration-controller-features:
56           controller-features: '{install-features}'
57       - integration-test-options:
58           test-options: '{robot-options}'
59       - integration-stream-test-plan:
60           stream-test-plan: '{project}-{functionality}-{verify-stream}.txt'
61       - integration-test-plan:
62           test-plan: '{project}-{functionality}.txt'
63       - integration-jdk-version:
64           jdkversion: '{verify-jdkversion}'
65       - distribution-karaf-version:
66           karaf-version: '{verify-karaf-version}'
67
68     scm:
69       - integration-gerrit-scm:
70           basedir: 'test'
71           refspec: '$GERRIT_REFSPEC'
72           branch: 'master'
73
74     wrappers:
75       - opendaylight-infra-wrappers:
76           build-timeout: '{build-timeout}'
77
78     triggers:
79       - integration-trigger-patch-submitted:
80           server: '{server-name}'
81           project: 'integration/test'
82           branch: 'master'
83           files: 'csit/suites/{project}/**'
84
85     builders:
86       - integration-infra-stack:
87           stack-template: '{stack-template}'
88           vm_0_count: '1'
89           vm_0_flavor: '{odl_system_flavor}'
90           vm_0_image: '{odl_system_image}'
91           vm_1_count: '{tools_system_count}'
92           vm_1_flavor: '{tools_system_flavor}'
93           vm_1_image: '{tools_system_image}'
94       - integration-install-robotframework
95       - inject:
96           properties-file: 'env.properties'
97       - integration-get-slave-addresses
98       - inject:
99           properties-file: 'slave_addresses.txt'
100       - integration-detect-variables
101       - integration-deploy-controller-run-test
102       - integration-cleanup-tmp
103
104     publishers:
105       - integration-robot:
106           unstable-if: 0.0
107           pass-if: 100.0
108       - email-notification:
109           email-recipients: '{email-recipients}'
110           email-prefix: '[{project}]'
111       - integration-csit-archive-build
112       - opendaylight-infra-shiplogs:
113           maven-version: 'mvn33'
114
115 - job-template:
116     name: '{project}-csit-1node-{functionality}-{install}-{stream}'
117     disabled: false
118
119     project-type: freestyle
120     node: centos7-robot-2c-2g
121
122     properties:
123       - opendaylight-infra-properties:
124           build-days-to-keep: '{build-days-to-keep}'
125
126     parameters:
127       - opendaylight-infra-parameters:
128           os-cloud: '{os-cloud}'
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-bundle-url:
138           bundle-url: '{bundle-url}'
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: '{project}-{functionality}.txt'
149       - integration-patch-refspec:
150           branch: 'master'
151       - integration-jdk-version:
152           jdkversion: '{jre}'
153       - distribution-karaf-version:
154           karaf-version: '{karaf-version}'
155
156     scm:
157       - integration-gerrit-scm:
158           basedir: 'test'
159           refspec: '$PATCHREFSPEC'
160           branch: 'master'
161
162     wrappers:
163       - opendaylight-infra-wrappers:
164           build-timeout: '{build-timeout}'
165
166     builders:
167       - integration-infra-stack:
168           stack-template: '{stack-template}'
169           vm_0_count: '1'
170           vm_0_flavor: '{odl_system_flavor}'
171           vm_0_image: '{odl_system_image}'
172           vm_1_count: '{tools_system_count}'
173           vm_1_flavor: '{tools_system_flavor}'
174           vm_1_image: '{tools_system_image}'
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-detect-variables
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           os-cloud: '{os-cloud}'
239           project: 'integration/test'
240           branch: '{branch}'
241           refspec: 'refs/heads/{branch}'
242           artifacts: '{archive-artifacts}'
243       - integration-distribution-branch:
244           branch: '{branch}'
245       - integration-distribution-stream:
246           stream: '{stream}'
247       - integration-bundle-url:
248           bundle-url: '{bundle-url}'
249       - integration-controller-scope:
250           controller-scope: '{scope}'
251       - integration-controller-features:
252           controller-features: '{install-features}'
253       - integration-test-options:
254           test-options: '{robot-options}'
255       - integration-stream-test-plan:
256           stream-test-plan: '{project}-{functionality}-{stream}.txt'
257       - integration-test-plan:
258           test-plan: '{project}-{functionality}.txt'
259       - integration-patch-refspec:
260           branch: 'master'
261       - integration-jdk-version:
262           jdkversion: '{jre}'
263       - distribution-karaf-version:
264           karaf-version: '{karaf-version}'
265
266     scm:
267       - integration-gerrit-scm:
268           basedir: 'test'
269           refspec: '$PATCHREFSPEC'
270           branch: 'master'
271
272     wrappers:
273       - opendaylight-infra-wrappers:
274           build-timeout: '{build-timeout}'
275
276     builders:
277       - integration-infra-stack:
278           stack-template: '{stack-template}'
279           vm_0_count: '1'
280           vm_0_flavor: '{odl_system_flavor}'
281           vm_0_image: '{odl_system_image}'
282           vm_1_count: '{tools_system_count}'
283           vm_1_flavor: '{tools_system_flavor}'
284           vm_1_image: '{tools_system_image}'
285       - integration-install-robotframework
286       - inject:
287           properties-file: 'env.properties'
288       - integration-get-slave-addresses
289       - inject:
290           properties-file: 'slave_addresses.txt'
291       - integration-detect-variables
292       - integration-deploy-controller-run-test
293       - integration-cleanup-tmp
294
295     publishers:
296       - integration-robot:
297           unstable-if: 0.0
298           pass-if: 100.0
299       - email-notification:
300           email-recipients: '{email-recipients}'
301           email-prefix: '[{project}]'
302       - plot:
303           - title: '{01-plot-title}'
304             yaxis: '{01-plot-yaxis}'
305             group: '{01-plot-group}'
306             num-builds: '180'
307             keep-records: true
308             style: line
309             use-description: false
310             # yamllint disable-line rule:line-length
311             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
312             series:
313               - file: '{01-plot-data-file}'
314                 inclusion-flag: 'off'
315                 display-table: true
316                 format: csv
317           - title: '{02-plot-title}'
318             yaxis: '{02-plot-yaxis}'
319             group: '{02-plot-group}'
320             num-builds: '180'
321             keep-records: true
322             style: line
323             use-description: false
324             # yamllint disable-line rule:line-length
325             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
326             series:
327               - file: '{02-plot-data-file}'
328                 inclusion-flag: 'off'
329                 display-table: true
330                 format: csv
331           - title: '{03-plot-title}'
332             yaxis: '{03-plot-yaxis}'
333             group: '{03-plot-group}'
334             num-builds: '180'
335             keep-records: true
336             style: line
337             use-description: false
338             # yamllint disable-line rule:line-length
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             # yamllint disable-line rule:line-length
353             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv'
354             series:
355               - file: '{04-plot-data-file}'
356                 inclusion-flag: '{04-inclusion-flag}'
357                 exclude: '{04-exclude-value}'
358                 format: csv
359           - title: '{05-plot-title}'
360             yaxis: '{05-plot-yaxis}'
361             group: '{05-plot-group}'
362             num-builds: '180'
363             keep-records: true
364             style: line
365             use-description: false
366             # yamllint disable-line rule:line-length
367             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv'
368             series:
369               - file: '{05-plot-data-file}'
370                 inclusion-flag: '{05-inclusion-flag}'
371                 exclude: '{05-exclude-value}'
372                 format: csv
373           - title: '{06-plot-title}'
374             yaxis: '{06-plot-yaxis}'
375             group: '{06-plot-group}'
376             num-builds: '180'
377             keep-records: true
378             style: line
379             use-description: false
380             # yamllint disable-line rule:line-length
381             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv'
382             series:
383               - file: '{06-plot-data-file}'
384                 inclusion-flag: '{06-inclusion-flag}'
385                 exclude: '{06-exclude-value}'
386                 format: csv
387           - title: '{07-plot-title}'
388             yaxis: '{07-plot-yaxis}'
389             group: '{07-plot-group}'
390             num-builds: '180'
391             keep-records: true
392             style: line
393             use-description: false
394             # yamllint disable-line rule:line-length
395             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv'
396             series:
397               - file: '{07-plot-data-file}'
398                 inclusion-flag: '{07-inclusion-flag}'
399                 exclude: '{07-exclude-value}'
400                 format: csv
401           - title: '{08-plot-title}'
402             yaxis: '{08-plot-yaxis}'
403             group: '{08-plot-group}'
404             num-builds: '180'
405             keep-records: true
406             style: line
407             use-description: false
408             # yamllint disable-line rule:line-length
409             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv'
410             series:
411               - file: '{08-plot-data-file}'
412                 inclusion-flag: '{08-inclusion-flag}'
413                 exclude: '{08-exclude-value}'
414                 format: csv
415           - title: '{09-plot-title}'
416             yaxis: '{09-plot-yaxis}'
417             group: '{09-plot-group}'
418             num-builds: '180'
419             keep-records: true
420             style: line
421             use-description: false
422             # yamllint disable-line rule:line-length
423             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv'
424             series:
425               - file: '{09-plot-data-file}'
426                 inclusion-flag: '{09-inclusion-flag}'
427                 exclude: '{09-exclude-value}'
428                 format: csv
429           - title: '{10-plot-title}'
430             yaxis: '{10-plot-yaxis}'
431             group: '{10-plot-group}'
432             num-builds: '180'
433             keep-records: true
434             style: line
435             use-description: false
436             # yamllint disable-line rule:line-length
437             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv'
438             series:
439               - file: '{10-plot-data-file}'
440                 inclusion-flag: '{10-inclusion-flag}'
441                 exclude: '{10-exclude-value}'
442                 format: csv
443       - integration-csit-archive-build
444       - opendaylight-infra-shiplogs:
445           maven-version: 'mvn33'
446
447 - job-template:
448     name: '{project}-csit-verify-3node-{functionality}'
449     disabled: false
450
451     project-type: freestyle
452     node: centos7-robot-2c-2g
453
454     properties:
455       - opendaylight-infra-properties:
456           build-days-to-keep: '{build-days-to-keep}'
457
458     parameters:
459       - opendaylight-infra-parameters:
460           os-cloud: '{os-cloud}'
461           project: 'integration/test'
462           branch: '{branch}'
463           refspec: 'refs/heads/{branch}'
464           artifacts: '{archive-artifacts}'
465       - integration-distribution-branch:
466           branch: '{verify-branch}'
467       - integration-distribution-stream:
468           stream: '{verify-stream}'
469       - integration-bundle-url:
470           bundle-url: '{bundle-url}'
471       - integration-controller-scope:
472           controller-scope: 'only'
473       - integration-controller-features:
474           controller-features: 'odl-jolokia,{install-features}'
475       - integration-test-options:
476           test-options: '{robot-options}'
477       - integration-stream-test-plan:
478           stream-test-plan: '{project}-{functionality}-{verify-stream}.txt'
479       - integration-test-plan:
480           test-plan: '{project}-{functionality}.txt'
481       - integration-jdk-version:
482           jdkversion: '{verify-jdkversion}'
483       - distribution-karaf-version:
484           karaf-version: '{verify-karaf-version}'
485
486     scm:
487       - integration-gerrit-scm:
488           basedir: 'test'
489           refspec: '$GERRIT_REFSPEC'
490           branch: 'master'
491
492     wrappers:
493       - opendaylight-infra-wrappers:
494           build-timeout: '{build-timeout}'
495
496     triggers:
497       - integration-trigger-patch-submitted:
498           server: '{server-name}'
499           project: 'integration/test'
500           branch: 'master'
501           files: 'csit/suites/{project}/**'
502
503     builders:
504       - integration-infra-stack:
505           stack-template: '{stack-template}'
506           vm_0_count: '3'
507           vm_0_flavor: '{odl_system_flavor}'
508           vm_0_image: '{odl_system_image}'
509           vm_1_count: '{tools_system_count}'
510           vm_1_flavor: '{tools_system_flavor}'
511           vm_1_image: '{tools_system_image}'
512       - integration-install-robotframework
513       - inject:
514           properties-file: 'env.properties'
515       - integration-get-slave-addresses
516       - inject:
517           properties-file: 'slave_addresses.txt'
518       - integration-detect-variables
519       - integration-configure-clustering
520       - integration-start-cluster-run-test
521       - integration-cleanup-tmp
522
523     publishers:
524       - integration-robot:
525           unstable-if: 0.0
526           pass-if: 100.0
527       - email-notification:
528           email-recipients: '{email-recipients}'
529           email-prefix: '[{project}]'
530       - integration-csit-archive-build
531       - opendaylight-infra-shiplogs:
532           maven-version: 'mvn33'
533
534 - job-template:
535     name: '{project}-csit-3node-{functionality}-{install}-{stream}'
536     disabled: false
537
538     project-type: freestyle
539     node: centos7-robot-2c-2g
540
541     properties:
542       - opendaylight-infra-properties:
543           build-days-to-keep: '{build-days-to-keep}'
544
545     parameters:
546       - opendaylight-infra-parameters:
547           os-cloud: '{os-cloud}'
548           project: 'integration/test'
549           branch: '{branch}'
550           refspec: 'refs/heads/{branch}'
551           artifacts: '{archive-artifacts}'
552       - integration-distribution-branch:
553           branch: '{branch}'
554       - integration-distribution-stream:
555           stream: '{stream}'
556       - integration-bundle-url:
557           bundle-url: '{bundle-url}'
558       - integration-controller-scope:
559           controller-scope: '{scope}'
560       - integration-controller-features:
561           controller-features: 'odl-jolokia,{install-features}'
562       - integration-test-options:
563           test-options: '{robot-options}'
564       - integration-stream-test-plan:
565           stream-test-plan: '{project}-{functionality}-{stream}.txt'
566       - integration-test-plan:
567           test-plan: '{project}-{functionality}.txt'
568       - integration-patch-refspec:
569           branch: 'master'
570       - integration-jdk-version:
571           jdkversion: '{jre}'
572       - distribution-karaf-version:
573           karaf-version: '{karaf-version}'
574
575     scm:
576       - integration-gerrit-scm:
577           basedir: 'test'
578           refspec: '$PATCHREFSPEC'
579           branch: 'master'
580
581     wrappers:
582       - opendaylight-infra-wrappers:
583           build-timeout: '{build-timeout}'
584
585     builders:
586       - integration-infra-stack:
587           stack-template: '{stack-template}'
588           vm_0_count: '3'
589           vm_0_flavor: '{odl_system_flavor}'
590           vm_0_image: '{odl_system_image}'
591           vm_1_count: '{tools_system_count}'
592           vm_1_flavor: '{tools_system_flavor}'
593           vm_1_image: '{tools_system_image}'
594       - integration-install-robotframework
595       - inject:
596           properties-file: 'env.properties'
597       - integration-get-slave-addresses
598       - inject:
599           properties-file: 'slave_addresses.txt'
600       - integration-detect-variables
601       - integration-configure-clustering
602       - integration-start-cluster-run-test
603       - integration-cleanup-tmp
604
605     publishers:
606       - integration-robot:
607           unstable-if: 0.0
608           pass-if: 100.0
609       - email-notification:
610           email-recipients: '{email-recipients}'
611           email-prefix: '[{project}]'
612       - plot:
613           - title: '{01-plot-title}'
614             yaxis: '{01-plot-yaxis}'
615             group: '{01-plot-group}'
616             num-builds: '5400'
617             keep-records: true
618             style: line
619             use-description: false
620             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
621             series:
622               - file: '{01-plot-data-file}'
623                 inclusion-flag: 'off'
624                 display-table: true
625                 format: csv
626           - title: '{02-plot-title}'
627             yaxis: '{02-plot-yaxis}'
628             group: '{02-plot-group}'
629             num-builds: '5400'
630             keep-records: true
631             style: line
632             use-description: false
633             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
634             series:
635               - file: '{02-plot-data-file}'
636                 inclusion-flag: 'off'
637                 display-table: true
638                 format: csv
639       - integration-csit-archive-build
640       - opendaylight-infra-shiplogs:
641           maven-version: 'mvn33'
642
643 - job-template:
644     name: '{project}-csit-3node-docker-{functionality}-{install}-{stream}'
645     disabled: false
646
647     project-type: freestyle
648     node: centos7-robot-2c-2g
649
650     properties:
651       - opendaylight-infra-properties:
652           build-days-to-keep: '{build-days-to-keep}'
653
654     parameters:
655       - opendaylight-infra-parameters:
656           os-cloud: '{os-cloud}'
657           project: 'integration/test'
658           branch: '{branch}'
659           refspec: 'refs/heads/{branch}'
660           artifacts: '{archive-artifacts}'
661       - integration-distribution-branch:
662           branch: '{branch}'
663       - integration-distribution-stream:
664           stream: '{stream}'
665       - integration-bundle-url:
666           bundle-url: '{bundle-url}'
667       - integration-controller-scope:
668           controller-scope: '{scope}'
669       - integration-controller-features:
670           controller-features: 'odl-jolokia,{install-features}'
671       - integration-test-options:
672           test-options: '{robot-options}'
673       - integration-stream-test-plan:
674           stream-test-plan: '{project}-{functionality}-{stream}.txt'
675       - integration-test-plan:
676           test-plan: '{project}-{functionality}.txt'
677       - integration-patch-refspec:
678           branch: 'master'
679       - integration-jdk-version:
680           jdkversion: '{jre}'
681       - distribution-karaf-version:
682           karaf-version: '{karaf-version}'
683
684     scm:
685       - integration-gerrit-scm:
686           basedir: 'test'
687           refspec: '$PATCHREFSPEC'
688           branch: 'master'
689
690     wrappers:
691       - opendaylight-infra-wrappers:
692           build-timeout: '{build-timeout}'
693
694     builders:
695       - integration-infra-stack:
696           stack-template: '{stack-template}'
697           vm_0_count: '3'
698           vm_0_flavor: '{odl_system_flavor}'
699           vm_0_image: '{odl_system_image}'
700           vm_1_count: '{docker_system_count}'
701           vm_1_flavor: '{docker_system_flavor}'
702           vm_1_image: '{docker_system_image}'
703       - integration-install-robotframework
704       - inject:
705           properties-file: 'env.properties'
706       - integration-get-slave-addresses
707       - inject:
708           properties-file: 'slave_addresses.txt'
709       - integration-detect-variables
710       - integration-configure-clustering
711       - integration-start-cluster-run-test
712       - integration-cleanup-tmp
713
714     publishers:
715       - integration-robot:
716           unstable-if: 0.0
717           pass-if: 100.0
718       - email-notification:
719           email-recipients: '{email-recipients}'
720           email-prefix: '[{project}]'
721       - plot:
722           - title: '{01-plot-title}'
723             yaxis: '{01-plot-yaxis}'
724             group: '{01-plot-group}'
725             num-builds: '5400'
726             keep-records: true
727             style: line
728             use-description: false
729             # yamllint disable-line rule:line-length
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             # yamllint disable-line rule:line-length
744             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
745             series:
746               - file: '{02-plot-data-file}'
747                 inclusion-flag: 'off'
748                 display-table: true
749                 format: csv
750       - integration-csit-archive-build
751       - opendaylight-infra-shiplogs:
752           maven-version: 'mvn33'
753
754 - job-template:
755     name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
756     disabled: false
757
758     project-type: freestyle
759     node: centos7-robot-2c-2g
760
761     properties:
762       - opendaylight-infra-properties:
763           build-days-to-keep: '{build-days-to-keep}'
764
765     parameters:
766       - opendaylight-infra-parameters:
767           os-cloud: '{os-cloud}'
768           project: 'integration/test'
769           branch: '{branch}'
770           refspec: 'refs/heads/{branch}'
771           artifacts: '{archive-artifacts}'
772       - integration-distribution-branch:
773           branch: '{branch}'
774       - integration-distribution-stream:
775           stream: '{stream}'
776       - integration-bundle-url:
777           bundle-url: '{bundle-url}'
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       - distribution-karaf-version:
793           karaf-version: '{karaf-version}'
794
795     scm:
796       - integration-gerrit-scm:
797           basedir: 'test'
798           refspec: '$PATCHREFSPEC'
799           branch: 'master'
800
801     wrappers:
802       - opendaylight-infra-wrappers:
803           build-timeout: '{build-timeout}'
804
805     builders:
806       - integration-infra-stack:
807           stack-template: '{stack-template}'
808           vm_0_count: '3'
809           vm_0_flavor: '{odl_system_flavor}'
810           vm_0_image: '{odl_system_image}'
811           vm_1_count: '{tools_system_count}'
812           vm_1_flavor: '{tools_system_flavor}'
813           vm_1_image: '{tools_system_image}'
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-detect-variables
821       - integration-configure-clustering
822       - integration-start-cluster-run-test
823       - integration-cleanup-tmp
824
825     publishers:
826       - integration-robot:
827           unstable-if: 0.0
828           pass-if: 100.0
829       - email-notification:
830           email-recipients: '{email-recipients}'
831           email-prefix: '[{project}]'
832       - plot:
833           - title: '{01-plot-title}'
834             yaxis: '{01-plot-yaxis}'
835             group: '{01-plot-group}'
836             num-builds: '180'
837             keep-records: true
838             style: line
839             use-description: false
840             # yamllint disable-line rule:line-length
841             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
842             series:
843               - file: '{01-plot-data-file}'
844                 inclusion-flag: 'off'
845                 display-table: true
846                 format: csv
847           - title: '{02-plot-title}'
848             yaxis: '{02-plot-yaxis}'
849             group: '{02-plot-group}'
850             num-builds: '180'
851             keep-records: true
852             style: line
853             use-description: false
854             # yamllint disable-line rule:line-length
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             # yamllint disable-line rule:line-length
869             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv'
870             series:
871               - file: '{03-plot-data-file}'
872                 inclusion-flag: '{03-inclusion-flag}'
873                 exclude: '{03-exclude-value}'
874                 format: csv
875           - title: '{04-plot-title}'
876             yaxis: '{04-plot-yaxis}'
877             group: '{04-plot-group}'
878             num-builds: '180'
879             keep-records: true
880             style: line
881             use-description: false
882             # yamllint disable-line rule:line-length
883             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv'
884             series:
885               - file: '{04-plot-data-file}'
886                 inclusion-flag: '{04-inclusion-flag}'
887                 exclude: '{04-exclude-value}'
888                 format: csv
889           - title: '{05-plot-title}'
890             yaxis: '{05-plot-yaxis}'
891             group: '{05-plot-group}'
892             num-builds: '180'
893             keep-records: true
894             style: line
895             use-description: false
896             # yamllint disable-line rule:line-length
897             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv'
898             series:
899               - file: '{05-plot-data-file}'
900                 inclusion-flag: '{05-inclusion-flag}'
901                 exclude: '{05-exclude-value}'
902                 format: csv
903           - title: '{06-plot-title}'
904             yaxis: '{06-plot-yaxis}'
905             group: '{06-plot-group}'
906             num-builds: '180'
907             keep-records: true
908             style: line
909             use-description: false
910             # yamllint disable-line rule:line-length
911             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv'
912             series:
913               - file: '{06-plot-data-file}'
914                 inclusion-flag: '{06-inclusion-flag}'
915                 exclude: '{06-exclude-value}'
916                 format: csv
917           - title: '{07-plot-title}'
918             yaxis: '{07-plot-yaxis}'
919             group: '{07-plot-group}'
920             num-builds: '180'
921             keep-records: true
922             style: line
923             use-description: false
924             # yamllint disable-line rule:line-length
925             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv'
926             series:
927               - file: '{07-plot-data-file}'
928                 inclusion-flag: '{07-inclusion-flag}'
929                 exclude: '{07-exclude-value}'
930                 format: csv
931           - title: '{08-plot-title}'
932             yaxis: '{08-plot-yaxis}'
933             group: '{08-plot-group}'
934             num-builds: '180'
935             keep-records: true
936             style: line
937             use-description: false
938             # yamllint disable-line rule:line-length
939             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv'
940             series:
941               - file: '{08-plot-data-file}'
942                 inclusion-flag: '{08-inclusion-flag}'
943                 exclude: '{08-exclude-value}'
944                 format: csv
945           - title: '{09-plot-title}'
946             yaxis: '{09-plot-yaxis}'
947             group: '{09-plot-group}'
948             num-builds: '180'
949             keep-records: true
950             style: line
951             use-description: false
952             # yamllint disable-line rule:line-length
953             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv'
954             series:
955               - file: '{09-plot-data-file}'
956                 inclusion-flag: '{09-inclusion-flag}'
957                 exclude: '{09-exclude-value}'
958                 format: csv
959           - title: '{10-plot-title}'
960             yaxis: '{10-plot-yaxis}'
961             group: '{10-plot-group}'
962             num-builds: '180'
963             keep-records: true
964             style: line
965             use-description: false
966             # yamllint disable-line rule:line-length
967             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv'
968             series:
969               - file: '{10-plot-data-file}'
970                 inclusion-flag: '{10-inclusion-flag}'
971                 exclude: '{10-exclude-value}'
972                 format: csv
973       - integration-csit-archive-build
974       - opendaylight-infra-shiplogs:
975           maven-version: 'mvn33'
976
977 - job-template:
978     name: '{project}-csit-hwvtep-{topology}-openstack-{openstack}-{functionality}-{stream}'
979     disabled: false
980
981     project-type: freestyle
982     node: centos7-robot-2c-2g
983     concurrent: true
984
985     properties:
986       - opendaylight-infra-properties:
987           build-days-to-keep: '{build-days-to-keep}'
988
989     parameters:
990       - opendaylight-infra-parameters:
991           os-cloud: '{os-cloud}'
992           project: 'integration/test'
993           branch: '{branch}'
994           refspec: 'refs/heads/{branch}'
995           artifacts: '{archive-artifacts}'
996       - integration-distribution-branch:
997           branch: '{branch}'
998       - integration-distribution-stream:
999           stream: '{stream}'
1000       - integration-bundle-url:
1001           bundle-url: '{bundle-url}'
1002       - integration-controller-features:
1003           controller-features: '{install-features}'
1004       - integration-test-options:
1005           test-options: '{robot-options}'
1006       - integration-test-plan:
1007           test-plan: '{testplan}'
1008       - integration-patch-refspec:
1009           branch: 'master'
1010       - integration-jdk-version:
1011           jdkversion: '{jre}'
1012       - distribution-karaf-version:
1013           karaf-version: '{karaf-version}'
1014       - string:
1015           name: OPENSTACK_BRANCH
1016           default: '{openstack-branch}'
1017           description: 'Openstack version to use with devstack'
1018       - string:
1019           name: ODL_ML2_DRIVER_REPO
1020           default: '{odl-ml2-driver-repo}'
1021           description: 'URL to fetch networking-odl driver'
1022       - string:
1023           name: ODL_ML2_BRANCH
1024           default: '{odl-ml2-branch}'
1025           description: 'Version of networking-odl to checkout from the repo'
1026       - string:
1027           name: ODL_ML2_DRIVER_VERSION
1028           default: '{odl-ml2-driver-version}'
1029           description: 'Mode of networking-odl (v1 or v2)'
1030       - string:
1031           name: ODL_ML2_PORT_BINDING
1032           default: '{odl-ml2-port-binding}'
1033           description: 'Method of networking-odl port-binding (pseudo-agentdb-binding or legacy-port-binding or
1034           network-topology)'
1035       - string:
1036           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1037           default: '{devstack-kubernetes-plugin-repo}'
1038           description: 'URL to fetch kubernetes devstack plugin'
1039       - string:
1040           name: DEVSTACK_LBAAS_PLUGIN_REPO
1041           default: '{devstack-lbaas-plugin-repo}'
1042           description: 'URL to fetch neutron-lbaas devstack plugin'
1043       - string:
1044           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1045           default: '{devstack-networking-sfc-plugin-repo}'
1046           description: 'URL to fetch neutron-lbaas devstack plugin'
1047       - string:
1048           name: ODL_ENABLE_L3_FWD
1049           default: '{odl-enable-l3}'
1050           description: 'Enable L3 FWD in ODL for createing br-ex'
1051       - string:
1052           name: IPSEC_VXLAN_TUNNELS_ENABLED
1053           default: '{ipsec-vxlan-tunnels-enabled}'
1054           description: 'Enable ipsec over vxlan support for all controllers and computes'
1055       - string:
1056           name: PUBLIC_BRIDGE
1057           default: '{public-bridge}'
1058           description: 'Specifies public bridge for provider and external networking'
1059       - string:
1060           name: ENABLE_HAPROXY_FOR_NEUTRON
1061           default: '{enable-haproxy}'
1062           description: 'Enable HAProxy for using neutron interface as HA'
1063       - string:
1064           name: ENABLE_OS_SERVICES
1065           default: '{enable-openstack-services}'
1066           description: 'comma seperated list of services to enable'
1067       - string:
1068           name: ENABLE_OS_PLUGINS
1069           default: '{enable-openstack-plugins}'
1070           description: 'comma seperated list of plugins to enable'
1071       - string:
1072           name: DISABLE_OS_SERVICES
1073           default: '{disable-openstack-services}'
1074           description: 'comma seperated list of services to enable'
1075       - string:
1076           name: TENANT_NETWORK_TYPE
1077           default: '{tenant-network-type}'
1078           description: 'Tenant Network Type supported by the implementation'
1079       - string:
1080           name: SECURITY_GROUP_MODE
1081           default: '{security-group-mode}'
1082           description: 'Security Group Mode to be used in netvirt aclservice config'
1083       - string:
1084           name: PUBLIC_PHYSICAL_NETWORK
1085           default: '{public-physical-network}'
1086           description: 'provider physical network used for flat/vlan networks'
1087       - string:
1088           name: ENABLE_NETWORKING_L2GW
1089           default: '{enable-networking-l2gw}'
1090           description: 'Enable networking L2gw'
1091       - string:
1092           name: NETWORKING_L2GW_DRIVER
1093           default: '{networking-l2gw-repo}'
1094           description: 'URL to fetch networking-l2gw driver'
1095       - string:
1096           name: CREATE_INITIAL_NETWORKS
1097           default: '{create-initial-networks}'
1098           description: 'Toggles the option of letting devstack create initial networks (True/False)'
1099       - string:
1100           name: LBAAS_SERVICE_PROVIDER
1101           default: '{lbaas-service-provider}'
1102           description: 'The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf - only relevant when using
1103           neutron-lbaas'
1104       - string:
1105           name: ODL_SFC_DRIVER
1106           default: '{odl-sfc-driver}'
1107           description: 'The SFC driver to be used in local.conf - only relevant when using networking-sfc'
1108       - string:
1109           name: ODL_SNAT_MODE
1110           default: '{odl-snat-mode}'
1111           description: 'The SNAT mode to be configured - options are conntrack/controller.'
1112     scm:
1113       - integration-gerrit-scm:
1114           basedir: 'test'
1115           refspec: '$PATCHREFSPEC'
1116           branch: 'master'
1117
1118     wrappers:
1119       - opendaylight-infra-wrappers:
1120           build-timeout: '{build-timeout}'
1121
1122     triggers:
1123       - timed: '{schedule}'
1124
1125     builders:
1126       - integration-infra-stack-3-type:
1127           vm_0_count: '{odl_system_count}'
1128           vm_0_flavor: '{odl_system_flavor}'
1129           vm_0_image: '{odl_system_image}'
1130           vm_1_count: '{openstack_system_count}'
1131           vm_1_flavor: '{openstack_system_flavor}'
1132           vm_1_image: '{openstack_system_image}'
1133           vm_2_count: '{tools_system_count}'
1134           vm_2_flavor: '{tools_system_flavor}'
1135           vm_2_image: '{tools_system_image}'
1136       - integration-install-robotframework
1137       - inject:
1138           properties-file: 'env.properties'
1139       - integration-get-slave-addresses
1140       - inject:
1141           properties-file: 'slave_addresses.txt'
1142       - integration-detect-variables
1143       - integration-deploy-controller-run-test
1144       - integration-deploy-openstack-run-test
1145       - integration-cleanup-tmp
1146
1147     publishers:
1148       - integration-robot-tempest:
1149           unstable-if: 0.0
1150           pass-if: 100.0
1151       - email-notification:
1152           email-recipients: '{email-recipients}'
1153           email-prefix: '[{project}]'
1154       - integration-csit-archive-build
1155       - opendaylight-infra-shiplogs:
1156           maven-version: 'mvn33'
1157
1158 - job-template:
1159     name: '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
1160     disabled: false
1161
1162     project-type: freestyle
1163     node: centos7-robot-2c-2g
1164     concurrent: true
1165
1166     properties:
1167       - opendaylight-infra-properties:
1168           build-days-to-keep: '{build-days-to-keep}'
1169
1170     parameters:
1171       - opendaylight-infra-parameters:
1172           os-cloud: '{os-cloud}'
1173           project: 'integration/test'
1174           branch: '{branch}'
1175           refspec: 'refs/heads/{branch}'
1176           artifacts: '{archive-artifacts}'
1177       - integration-distribution-branch:
1178           branch: '{branch}'
1179       - integration-distribution-stream:
1180           stream: '{stream}'
1181       - integration-bundle-url:
1182           bundle-url: '{bundle-url}'
1183       - integration-controller-features:
1184           controller-features: '{install-features}'
1185       - integration-test-options:
1186           test-options: '{robot-options}'
1187       - integration-test-plan:
1188           test-plan: '{testplan}'
1189       - integration-patch-refspec:
1190           branch: 'master'
1191       - integration-jdk-version:
1192           jdkversion: '{jre}'
1193       - distribution-karaf-version:
1194           karaf-version: '{karaf-version}'
1195       - string:
1196           name: OPENSTACK_BRANCH
1197           default: '{openstack-branch}'
1198           description: 'Openstack version to use with devstack'
1199       - string:
1200           name: ODL_ML2_DRIVER_REPO
1201           default: '{odl-ml2-driver-repo}'
1202           description: 'URL to fetch networking-odl driver'
1203       - string:
1204           name: ODL_ML2_BRANCH
1205           default: '{odl-ml2-branch}'
1206           description: 'Version of networking-odl to checkout from the repo'
1207       - string:
1208           name: ODL_ML2_DRIVER_VERSION
1209           default: '{odl-ml2-driver-version}'
1210           description: 'Mode of networking-odl (v1 or v2)'
1211       - string:
1212           name: ODL_ML2_PORT_BINDING
1213           default: '{odl-ml2-port-binding}'
1214           description: 'Method of networking-odl port-binding (pseudo-agentdb-binding or legacy-port-binding or
1215           network-topology)'
1216       - string:
1217           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1218           default: '{devstack-kubernetes-plugin-repo}'
1219           description: 'URL to fetch kubernetes devstack plugin'
1220       - string:
1221           name: DEVSTACK_LBAAS_PLUGIN_REPO
1222           default: '{devstack-lbaas-plugin-repo}'
1223           description: 'URL to fetch neutron-lbaas devstack plugin'
1224       - string:
1225           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1226           default: '{devstack-networking-sfc-plugin-repo}'
1227           description: 'URL to fetch neutron-lbaas devstack plugin'
1228       - string:
1229           name: ODL_ENABLE_L3_FWD
1230           default: '{odl-enable-l3}'
1231           description: 'Enable L3 FWD in ODL for createing br-ex'
1232       - string:
1233           name: IPSEC_VXLAN_TUNNELS_ENABLED
1234           default: '{ipsec-vxlan-tunnels-enabled}'
1235           description: 'Enable ipsec over vxlan support for all controllers and computes'
1236       - string:
1237           name: PUBLIC_BRIDGE
1238           default: '{public-bridge}'
1239           description: 'Specifies public bridge for provider and external networking'
1240       - string:
1241           name: ENABLE_HAPROXY_FOR_NEUTRON
1242           default: '{enable-haproxy}'
1243           description: 'Enable HAProxy for using neutron interface as HA'
1244       - string:
1245           name: ENABLE_OS_SERVICES
1246           default: '{enable-openstack-services}'
1247           description: 'comma seperated list of services to enable'
1248       - string:
1249           name: ENABLE_OS_PLUGINS
1250           default: '{enable-openstack-plugins}'
1251           description: 'comma seperated list of plugins to enable'
1252       - string:
1253           name: DISABLE_OS_SERVICES
1254           default: '{disable-openstack-services}'
1255           description: 'comma seperated list of services to enable'
1256       - string:
1257           name: TENANT_NETWORK_TYPE
1258           default: '{tenant-network-type}'
1259           description: 'Tenant Network Type supported by the implementation'
1260       - string:
1261           name: SECURITY_GROUP_MODE
1262           default: '{security-group-mode}'
1263           description: 'Security Group Mode to be used in netvirt aclservice config'
1264       - string:
1265           name: PUBLIC_PHYSICAL_NETWORK
1266           default: '{public-physical-network}'
1267           description: 'provider physical network used for flat/vlan networks'
1268       - string:
1269           name: ENABLE_NETWORKING_L2GW
1270           default: '{enable-networking-l2gw}'
1271           description: 'Enable networking L2gw'
1272       - string:
1273           name: NETWORKING_L2GW_DRIVER
1274           default: '{networking-l2gw-repo}'
1275           description: 'URL to fetch networking-l2gw driver'
1276       - string:
1277           name: CREATE_INITIAL_NETWORKS
1278           default: '{create-initial-networks}'
1279           description: 'Toggles the option of letting devstack create initial networks (True/False)'
1280       - string:
1281           name: LBAAS_SERVICE_PROVIDER
1282           default: '{lbaas-service-provider}'
1283           description: 'The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf - only relevant when using
1284           neutron-lbaas'
1285       - string:
1286           name: NUM_OPENSTACK_SITES
1287           default: '{num-openstack-sites}'
1288           description: 'Number of openstack sites'
1289       - string:
1290           name: ODL_SFC_DRIVER
1291           default: '{odl-sfc-driver}'
1292           description: 'The SFC driver to be used in local.conf - only relevant when using networking-sfc'
1293       - string:
1294           name: ODL_SNAT_MODE
1295           default: '{odl-snat-mode}'
1296           description: 'The SNAT mode to be configured - options are conntrack/controller.'
1297
1298     scm:
1299       - integration-gerrit-scm:
1300           basedir: 'test'
1301           refspec: '$PATCHREFSPEC'
1302           branch: 'master'
1303
1304     wrappers:
1305       - opendaylight-infra-wrappers:
1306           build-timeout: '{build-timeout}'
1307
1308     triggers:
1309       - timed: '{schedule}'
1310
1311     builders:
1312       - integration-infra-stack:
1313           stack-template: '{stack-template}'
1314           vm_0_count: '{odl_system_count}'
1315           vm_0_flavor: '{odl_system_flavor}'
1316           vm_0_image: '{odl_system_image}'
1317           vm_1_count: '{openstack_system_count}'
1318           vm_1_flavor: '{openstack_system_flavor}'
1319           vm_1_image: '{openstack_system_image}'
1320       - integration-install-robotframework
1321       - inject:
1322           properties-file: 'env.properties'
1323       - integration-get-slave-addresses
1324       - inject:
1325           properties-file: 'slave_addresses.txt'
1326       - integration-detect-variables
1327       - integration-deploy-controller-run-test
1328       - integration-deploy-openstack-run-test
1329       - integration-cleanup-tmp
1330
1331     publishers:
1332       - integration-robot-tempest:
1333           unstable-if: 0.0
1334           pass-if: 100.0
1335       - email-notification:
1336           email-recipients: '{email-recipients}'
1337           email-prefix: '[{project}]'
1338       - integration-csit-archive-build
1339       - opendaylight-infra-shiplogs:
1340           maven-version: 'mvn33'
1341
1342 # Template: {project}-patch-test-{stream}
1343 # Goal: Build a patch and run project specific system test on a distribution containing the change
1344 # Operation: This job template builds a patch, creates a distribution containing the patch, and
1345 # triggers the project system test defined in {csit-list} when gerrit receives test-{project} keyword
1346
1347 - job-template:
1348     name: '{project}-patch-test-{feature}-{stream}'
1349
1350     project-type: freestyle
1351     node: centos7-java-builder-2c-8g
1352     concurrent: true
1353     jdk: '{jdk}'
1354
1355     properties:
1356       - opendaylight-infra-properties:
1357           build-days-to-keep: '{build-days-to-keep}'
1358
1359     parameters:
1360       - opendaylight-infra-parameters:
1361           os-cloud: '{os-cloud}'
1362           project: '{project}'
1363           branch: '{branch}'
1364           refspec: 'refs/heads/{branch}'
1365           artifacts: '{archive-artifacts}'
1366       - integration-distribution-branch:
1367           branch: '{branch}'
1368       - distribution-karaf-version:
1369           karaf-version: '{karaf-version}'
1370       - integration-distribution-git-url:
1371           git-url: '{git-url}'
1372       - string:
1373           name: feature
1374           default: 'all'
1375           description: 'Specific feature test for patch'
1376       - maven-exec:
1377           maven-version: mvn33
1378
1379     scm:
1380       - integration-gerrit-scm:
1381           basedir: '{project}'
1382           refspec: '$GERRIT_REFSPEC'
1383           branch: '{branch}'
1384       - integration-distribution-scm:
1385           branch: '{branch}'
1386
1387     wrappers:
1388       - opendaylight-infra-wrappers:
1389           build-timeout: '{build-timeout}'
1390
1391     triggers:
1392       - gerrit:
1393           server-name: '{server-name}'
1394           trigger-on:
1395             - comment-added-contains-event:
1396                 comment-contains-value: 'test-{project}-all'
1397             - comment-added-contains-event:
1398                 comment-contains-value: 'test-{project}-{feature}'
1399           projects:
1400             - project-compare-type: 'ANT'
1401               project-pattern: '{project}'
1402               branches:
1403                 - branch-compare-type: 'ANT'
1404                   branch-pattern: '**/{branch}'
1405           skip-vote:
1406             successful: true
1407             failed: true
1408             unstable: true
1409             notbuilt: true
1410
1411     builders:
1412       - integration-rebase-gerrit-patch
1413       - wipe-org-opendaylight-repo
1414       - maven-target:
1415           maven-version: mvn33
1416           pom: '{project}/pom.xml'
1417           goals: |
1418               clean install dependency:tree
1419               -Pq
1420               -Dgitid.skip=false
1421               -DgenerateReports=false
1422               -Dstream={stream}
1423               {opendaylight-infra-mvn-opts}
1424           java-opts:
1425             - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
1426           settings: integration-settings
1427           settings-type: cfp
1428           global-settings: odl-global-settings
1429           global-settings-type: cfp
1430       - maven-target:
1431           maven-version: mvn33
1432           pom: distribution/pom.xml
1433           goals: |
1434               clean install dependency:tree
1435               -Pq
1436               -Dgitid.skip=false
1437               {opendaylight-infra-mvn-opts}
1438           java-opts:
1439             - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
1440           settings: integration-settings
1441           settings-type: cfp
1442           global-settings: odl-global-settings
1443           global-settings-type: cfp
1444       - integration-upload-distribution:
1445           dist-pom: distribution/pom.xml
1446       - trigger-builds:
1447           - project: '{csit-list}'
1448             block: true
1449             predefined-parameters: |
1450               BUNDLE_URL=$BUNDLE_URL
1451               KARAF_VERSION=karaf3
1452
1453     publishers:
1454       - email-notification:
1455           email-recipients: '{email-recipients}'
1456           email-prefix: '[{project}]'