6e13844bcd0a7d705f5da95dc0c63122f980550d
[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-1node-{functionality}-{install}-{stream}
6 # {project}-csit-3node-docker-{functionality}-{install}-{stream}
7 # {project}-csit-3node-{functionality}-{install}-{stream}
8 # {project}-csit-hwvtep-{topology}-openstack-{openstack}-{functionality}-{stream}
9 # {project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}
10 # {project}-csit-verify-1node-{functionality}
11 # {project}-csit-verify-3node-{functionality}
12 # {project}-patch-test-{feature}-{stream}
13 #
14 # Parameters:
15 # FIXME: Distinguish variables, macros and arguments, then update.
16 #
17 # opendaylight-infra-parameters: main project integration/test ($PROJECT)
18 # jre: (openjdk7 or openjdk8) Java runtime environment to use when launching ODL
19 # integration-distribution-branch: distribution branch ($DISTROBRANCH)
20 # integration-controller-bundle-url: distribution URL ($BUNDLE_URL)
21 # integration-controller-scope: only or all features ($CONTROLLERSCOPE)
22 # integration-controller-features: features under test ($CONTROLLER FEATURES)
23 # integration-test-options: robot options ($TESTOPTIONS)
24 # integration-stream-test-plan: stream specific robot test plan ($STREAMTESTPLAN)
25 # integration-test-plan: fallback robot test plan ($TESTPLAN)
26 # integration-patch-refspec: test branch ($PATCHREFSPEC)
27 # integration-use-features-boot: bool to toggle use of featuresBoot ($USEFEATURESBOOT)
28
29 ###########
30 # Anchors #
31 ###########
32
33 - inttest_csit_common: &inttest_csit_common
34     name: inttest-csit-common
35     # Defines common configuration to all CSIT jobs
36
37     #####################
38     # Default variables #
39     #####################
40
41     build-days-to-keep: 30
42     build-timeout: 360 # Time in minutes
43     disable-job: false
44
45     #####################
46     # Job configuration #
47     #####################
48
49     project-type: freestyle
50     node: centos7-robot-2c-8g
51     concurrent: true
52     disabled: "{disable-job}"
53
54     properties:
55       - opendaylight-infra-properties:
56           build-days-to-keep: "{build-days-to-keep}"
57
58     wrappers:
59       - opendaylight-infra-wrappers:
60           build-timeout: "{build-timeout}"
61
62 #################
63 # Job Templates #
64 #################
65
66 - job-template:
67     name: "{prefix}{project}-csit-verify-1node-{functionality}"
68     id: inttest-csit-verify-1node
69     <<: *inttest_csit_common
70
71     #####################
72     # Default variables #
73     #####################
74
75     openstack-cloud: vex
76     openstack-heat-template: csit-2-instance-type.yaml
77     openstack-heat-template-dir: openstack-hot
78
79     #####################
80     # Job configuration #
81     #####################
82
83     parameters:
84       - integration-csit-parameters:
85           archive-artifacts: "{archive-artifacts}"
86           branch: "{branch}"
87           os-cloud: "{os-cloud}"
88           # CSIT
89           bundle-url: "{bundle-url}"
90           repo-url: "{repo-url}"
91           robot-options: "{robot-options}"
92           # Controller
93           controller-scope: only
94           controller-max-mem: "{controller-max-mem}"
95           debug-map: "{debug-map}"
96           install-features: "{install-features}"
97           use-features-boot: "True"
98           elasticsearch-attribute: "{elasticsearch-attribute}"
99           karaf-based-controller: "{karaf-based-controller}"
100           karaf-version: "{karaf-version}"
101       - integration-stack-2-type:
102           vm_0_count: "1"
103           vm_0_flavor: "{odl_system_flavor}"
104           vm_0_image: "{odl_system_image}"
105           vm_1_count: "{tools_system_count}"
106           vm_1_flavor: "{tools_system_flavor}"
107           vm_1_image: "{tools_system_image}"
108       - integration-distribution-branch:
109           branch: "{verify-branch}"
110       - integration-distribution-stream:
111           stream: "{verify-stream}"
112       - integration-script-plan:
113           script-plan: "{project}.txt"
114       - integration-config-plan:
115           config-plan: "{project}.txt"
116       - integration-stream-test-plan:
117           stream-test-plan: "{project}-{functionality}-{verify-stream}.txt"
118       - integration-test-plan:
119           test-plan: "{project}-{functionality}.txt"
120       - integration-jdk-version:
121           jdkversion: "{verify-jdkversion}"
122
123     scm:
124       - integration-gerrit-scm:
125           basedir: "test"
126           refspec: "$GERRIT_REFSPEC"
127           branch: "master"
128
129     triggers:
130       - integration-trigger-patch-submitted:
131           gerrit-server-name: "{gerrit-server-name}"
132           project: "integration/test"
133           branch: "master"
134           files: "csit/suites/{project}/**"
135
136     builders:
137       - lf-infra-pre-build
138       - integration-stack-2-type:
139           openstack-cloud: "{openstack-cloud}"
140           openstack-heat-template: "{openstack-heat-template}"
141           openstack-heat-template-dir: "{openstack-heat-template-dir}"
142       - integration-install-robotframework
143       - inject:
144           properties-file: "env.properties"
145       - integration-get-slave-addresses
146       - inject:
147           properties-file: "slave_addresses.txt"
148       - integration-detect-variables
149       - integration-install-common-functions
150       - integration-deploy-controller-run-test
151       - integration-cleanup-tmp
152
153     publishers:
154       - email-notification:
155           email-recipients: "{email-recipients}"
156           email-prefix: "[{project}]"
157       - integration-csit-publish:
158           robot_other_files: ""
159           robot-pass-threshold: 100.0
160           robot-unstable-threshold: 0.0
161       - lf-stack-delete:
162           openstack-cloud: "{openstack-cloud}"
163       - lf-infra-publish
164
165 ######################
166 # inttest-csit-1node #
167 ######################
168
169 - inttest_csit_1node: &inttest_csit_1node
170     name: inttest-csit-1node
171
172     #####################
173     # Default variables #
174     #####################
175
176     openstack-cloud: vex
177     openstack-heat-template: csit-2-instance-type.yaml
178     openstack-heat-template-dir: openstack-hot
179
180     #####################
181     # Job configuration #
182     #####################
183
184     parameters:
185       - integration-csit-parameters:
186           archive-artifacts: "{archive-artifacts}"
187           branch: "{branch}"
188           os-cloud: "{os-cloud}"
189           # CSIT
190           bundle-url: "{bundle-url}"
191           repo-url: "{repo-url}"
192           robot-options: "{robot-options}"
193           # Controller
194           controller-scope: "{install}"
195           controller-max-mem: "{controller-max-mem}"
196           debug-map: "{debug-map}"
197           install-features: "{install-features}"
198           use-features-boot: "True"
199           elasticsearch-attribute: "{elasticsearch-attribute}"
200           karaf-based-controller: "{karaf-based-controller}"
201           karaf-version: "{karaf-version}"
202       - integration-stack-2-type:
203           vm_0_count: "1"
204           vm_0_flavor: "{odl_system_flavor}"
205           vm_0_image: "{odl_system_image}"
206           vm_1_count: "{tools_system_count}"
207           vm_1_flavor: "{tools_system_flavor}"
208           vm_1_image: "{tools_system_image}"
209       - integration-distribution-branch:
210           branch: "{branch}"
211       - integration-distribution-stream:
212           stream: "{stream}"
213       - integration-script-plan:
214           script-plan: "{project}.txt"
215       - integration-config-plan:
216           config-plan: "{project}.txt"
217       - integration-stream-test-plan:
218           stream-test-plan: "{project}-{functionality}-{stream}.txt"
219       - integration-test-plan:
220           test-plan: "{project}-{functionality}.txt"
221       - integration-test-suites:
222           test-suites: "{test-suites}"
223       - integration-patch-refspec:
224           branch: "master"
225       - integration-jdk-version:
226           jdkversion: "{jre}"
227
228     scm:
229       - integration-gerrit-scm:
230           basedir: "test"
231           refspec: "$PATCHREFSPEC"
232           branch: "master"
233
234     triggers:
235       # we need this for not SR projects
236       - integration-csit-trigger:
237           jobs: "{trigger-jobs}"
238
239     builders:
240       - lf-infra-pre-build
241       - integration-stack-2-type:
242           openstack-cloud: "{openstack-cloud}"
243           openstack-heat-template: "{openstack-heat-template}"
244           openstack-heat-template-dir: "{openstack-heat-template-dir}"
245       - integration-install-robotframework
246       - inject:
247           properties-file: "env.properties"
248       - integration-get-slave-addresses
249       - inject:
250           properties-file: "slave_addresses.txt"
251       - integration-detect-variables
252       - integration-install-common-functions
253       - integration-deploy-controller-run-test
254       - integration-run-test
255       - integration-cleanup-tmp
256
257     publishers:
258       - email-notification:
259           email-recipients: "{email-recipients}"
260           email-prefix: "[{project}]"
261       - plot:
262           - title: "{01-plot-title}"
263             yaxis: "{01-plot-yaxis}"
264             group: "{01-plot-group}"
265             num-builds: "180"
266             keep-records: true
267             style: line
268             use-description: false
269             # yamllint disable-line rule:line-length
270             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv"
271             series:
272               - file: "{01-plot-data-file}"
273                 inclusion-flag: "off"
274                 display-table: true
275                 format: csv
276           - title: "{02-plot-title}"
277             yaxis: "{02-plot-yaxis}"
278             group: "{02-plot-group}"
279             num-builds: "180"
280             keep-records: true
281             style: line
282             use-description: false
283             # yamllint disable-line rule:line-length
284             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv"
285             series:
286               - file: "{02-plot-data-file}"
287                 inclusion-flag: "off"
288                 display-table: true
289                 format: csv
290           - title: "{03-plot-title}"
291             yaxis: "{03-plot-yaxis}"
292             group: "{03-plot-group}"
293             num-builds: "180"
294             keep-records: true
295             style: line
296             use-description: false
297             # yamllint disable-line rule:line-length
298             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv"
299             series:
300               - file: "{03-plot-data-file}"
301                 inclusion-flag: "{03-inclusion-flag}"
302                 exclude: "{03-exclude-value}"
303                 format: csv
304           - title: "{04-plot-title}"
305             yaxis: "{04-plot-yaxis}"
306             group: "{04-plot-group}"
307             num-builds: "180"
308             keep-records: true
309             style: line
310             use-description: false
311             # yamllint disable-line rule:line-length
312             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv"
313             series:
314               - file: "{04-plot-data-file}"
315                 inclusion-flag: "{04-inclusion-flag}"
316                 exclude: "{04-exclude-value}"
317                 format: csv
318           - title: "{05-plot-title}"
319             yaxis: "{05-plot-yaxis}"
320             group: "{05-plot-group}"
321             num-builds: "180"
322             keep-records: true
323             style: line
324             use-description: false
325             # yamllint disable-line rule:line-length
326             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv"
327             series:
328               - file: "{05-plot-data-file}"
329                 inclusion-flag: "{05-inclusion-flag}"
330                 exclude: "{05-exclude-value}"
331                 format: csv
332           - title: "{06-plot-title}"
333             yaxis: "{06-plot-yaxis}"
334             group: "{06-plot-group}"
335             num-builds: "180"
336             keep-records: true
337             style: line
338             use-description: false
339             # yamllint disable-line rule:line-length
340             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv"
341             series:
342               - file: "{06-plot-data-file}"
343                 inclusion-flag: "{06-inclusion-flag}"
344                 exclude: "{06-exclude-value}"
345                 format: csv
346           - title: "{07-plot-title}"
347             yaxis: "{07-plot-yaxis}"
348             group: "{07-plot-group}"
349             num-builds: "180"
350             keep-records: true
351             style: line
352             use-description: false
353             # yamllint disable-line rule:line-length
354             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv"
355             series:
356               - file: "{07-plot-data-file}"
357                 inclusion-flag: "{07-inclusion-flag}"
358                 exclude: "{07-exclude-value}"
359                 format: csv
360           - title: "{08-plot-title}"
361             yaxis: "{08-plot-yaxis}"
362             group: "{08-plot-group}"
363             num-builds: "180"
364             keep-records: true
365             style: line
366             use-description: false
367             # yamllint disable-line rule:line-length
368             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv"
369             series:
370               - file: "{08-plot-data-file}"
371                 inclusion-flag: "{08-inclusion-flag}"
372                 exclude: "{08-exclude-value}"
373                 format: csv
374           - title: "{09-plot-title}"
375             yaxis: "{09-plot-yaxis}"
376             group: "{09-plot-group}"
377             num-builds: "180"
378             keep-records: true
379             style: line
380             use-description: false
381             # yamllint disable-line rule:line-length
382             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv"
383             series:
384               - file: "{09-plot-data-file}"
385                 inclusion-flag: "{09-inclusion-flag}"
386                 exclude: "{09-exclude-value}"
387                 format: csv
388           - title: "{10-plot-title}"
389             yaxis: "{10-plot-yaxis}"
390             group: "{10-plot-group}"
391             num-builds: "180"
392             keep-records: true
393             style: line
394             use-description: false
395             # yamllint disable-line rule:line-length
396             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv"
397             series:
398               - file: "{10-plot-data-file}"
399                 inclusion-flag: "{10-inclusion-flag}"
400                 exclude: "{10-exclude-value}"
401                 format: csv
402       - integration-csit-publish:
403           robot_other_files: ""
404           robot-pass-threshold: 100.0
405           robot-unstable-threshold: 0.0
406       - lf-stack-delete:
407           openstack-cloud: "{openstack-cloud}"
408       - lf-infra-publish
409
410 - job-template:
411     name: "{prefix}{project}-csit-1node-{functionality}-{install}-{stream}"
412     id: inttest-csit-1node
413     <<: *inttest_csit_common
414     # yamllint disable-line rule:key-duplicates
415     <<: *inttest_csit_1node
416
417 - job-template:
418     name: "{prefix}{project}-csit-1node-{functionality}-{install}-{stream}"
419     id: inttest-csit-1node-custom
420     <<: *inttest_csit_common
421     # yamllint disable-line rule:key-duplicates
422     <<: *inttest_csit_1node
423
424     parameters:
425       - integration-csit-parameters:
426           archive-artifacts: "{archive-artifacts}"
427           branch: "{branch}"
428           os-cloud: "{os-cloud}"
429           # CSIT
430           bundle-url: "{bundle-url}"
431           repo-url: "{repo-url}"
432           robot-options: "{robot-options}"
433           # Controller
434           controller-scope: "{install}"
435           controller-max-mem: "{controller-max-mem}"
436           debug-map: "{debug-map}"
437           install-features: "{install-features}"
438           use-features-boot: "True"
439           elasticsearch-attribute: "{elasticsearch-attribute}"
440           karaf-based-controller: "{karaf-based-controller}"
441           karaf-version: "{karaf-version}"
442       - integration-stack-2-type:
443           vm_0_count: "1"
444           vm_0_flavor: "{odl_system_flavor}"
445           vm_0_image: "{odl_system_image}"
446           vm_1_count: "{tools_system_count}"
447           vm_1_flavor: "{tools_system_flavor}"
448           vm_1_image: "{tools_system_image}"
449       - integration-distribution-branch:
450           branch: "{branch}"
451       - integration-distribution-stream:
452           stream: "{stream}"
453       - integration-script-plan:
454           script-plan: "{project}.txt"
455       - integration-config-plan:
456           config-plan: "{project}.txt"
457       - integration-stream-test-plan:
458           stream-test-plan: "{project}-{functionality}-{stream}.txt"
459       - integration-test-plan:
460           test-plan: "{testplan}"
461       - integration-test-suites:
462           test-suites: "{test-suites}"
463       - integration-patch-refspec:
464           branch: "master"
465       - integration-jdk-version:
466           jdkversion: "{jre}"
467
468 - job-template:
469     name: "{prefix}{project}-csit-verify-3node-{functionality}"
470     id: inttest-csit-verify-3node
471     <<: *inttest_csit_common
472
473     #####################
474     # Default variables #
475     #####################
476
477     openstack-cloud: vex
478     openstack-heat-template: csit-2-instance-type.yaml
479     openstack-heat-template-dir: openstack-hot
480
481     #####################
482     # Job Configuration #
483     #####################
484
485     parameters:
486       - integration-csit-parameters:
487           archive-artifacts: "{archive-artifacts}"
488           branch: "{branch}"
489           os-cloud: "{os-cloud}"
490           # CSIT
491           bundle-url: "{bundle-url}"
492           repo-url: "{repo-url}"
493           robot-options: "{robot-options}"
494           # Controller
495           controller-scope: only
496           controller-max-mem: "{controller-max-mem}"
497           debug-map: "{debug-map}"
498           install-features: "odl-jolokia,{install-features}"
499           use-features-boot: "True"
500           elasticsearch-attribute: "{elasticsearch-attribute}"
501           karaf-based-controller: "{karaf-based-controller}"
502           karaf-version: "{karaf-version}"
503       - integration-stack-2-type:
504           vm_0_count: "3"
505           vm_0_flavor: "{odl_system_flavor}"
506           vm_0_image: "{odl_system_image}"
507           vm_1_count: "{tools_system_count}"
508           vm_1_flavor: "{tools_system_flavor}"
509           vm_1_image: "{tools_system_image}"
510       - integration-distribution-branch:
511           branch: "{verify-branch}"
512       - integration-distribution-stream:
513           stream: "{verify-stream}"
514       - integration-script-plan:
515           script-plan: "{project}.txt"
516       - integration-config-plan:
517           config-plan: "{project}.txt"
518       - integration-stream-test-plan:
519           stream-test-plan: "{project}-{functionality}-{verify-stream}.txt"
520       - integration-test-plan:
521           test-plan: "{project}-{functionality}.txt"
522       - integration-test-suites:
523           test-suites: "{test-suites}"
524       - integration-jdk-version:
525           jdkversion: "{verify-jdkversion}"
526
527     scm:
528       - integration-gerrit-scm:
529           basedir: "test"
530           refspec: "$GERRIT_REFSPEC"
531           branch: "master"
532
533     triggers:
534       - integration-trigger-patch-submitted:
535           gerrit-server-name: "{gerrit-server-name}"
536           project: "integration/test"
537           branch: "master"
538           files: "csit/suites/{project}/**"
539
540     builders:
541       - lf-infra-pre-build
542       - integration-stack-2-type:
543           openstack-cloud: "{openstack-cloud}"
544           openstack-heat-template: "{openstack-heat-template}"
545           openstack-heat-template-dir: "{openstack-heat-template-dir}"
546       - integration-install-robotframework
547       - inject:
548           properties-file: "env.properties"
549       - integration-get-slave-addresses
550       - inject:
551           properties-file: "slave_addresses.txt"
552       - integration-detect-variables
553       - integration-install-common-functions
554       - integration-configure-clustering
555       - integration-start-cluster-run-test
556       - integration-cleanup-tmp
557
558     publishers:
559       - email-notification:
560           email-recipients: "{email-recipients}"
561           email-prefix: "[{project}]"
562       - integration-csit-publish:
563           robot_other_files: ""
564           robot-pass-threshold: 100.0
565           robot-unstable-threshold: 0.0
566       - lf-stack-delete:
567           openstack-cloud: "{openstack-cloud}"
568       - lf-infra-publish
569
570 ######################
571 # inttest-csit-3node #
572 ######################
573
574 - inttest_csit_3node: &inttest_csit_3node
575     name: inttest-csit-3node
576
577     #####################
578     # Default variables #
579     #####################
580
581     openstack-cloud: vex
582     openstack-heat-template: csit-2-instance-type.yaml
583     openstack-heat-template-dir: openstack-hot
584
585     #####################
586     # Job configuration #
587     #####################
588
589     parameters:
590       - integration-csit-parameters:
591           archive-artifacts: "{archive-artifacts}"
592           branch: "{branch}"
593           os-cloud: "{os-cloud}"
594           # CSIT
595           bundle-url: "{bundle-url}"
596           repo-url: "{repo-url}"
597           robot-options: "{robot-options}"
598           # Controller
599           controller-scope: "{install}"
600           controller-max-mem: "{controller-max-mem}"
601           debug-map: "{debug-map}"
602           install-features: "odl-jolokia,{install-features}"
603           use-features-boot: "True"
604           elasticsearch-attribute: "{elasticsearch-attribute}"
605           karaf-based-controller: "{karaf-based-controller}"
606           karaf-version: "{karaf-version}"
607       - integration-stack-2-type:
608           vm_0_count: "3"
609           vm_0_flavor: "{odl_system_flavor}"
610           vm_0_image: "{odl_system_image}"
611           vm_1_count: "{tools_system_count}"
612           vm_1_flavor: "{tools_system_flavor}"
613           vm_1_image: "{tools_system_image}"
614       - integration-distribution-branch:
615           branch: "{branch}"
616       - integration-distribution-stream:
617           stream: "{stream}"
618       - integration-script-plan:
619           script-plan: "{project}.txt"
620       - integration-config-plan:
621           config-plan: "{project}.txt"
622       - integration-stream-test-plan:
623           stream-test-plan: "{project}-{functionality}-{stream}.txt"
624       - integration-test-plan:
625           test-plan: "{project}-{functionality}.txt"
626       - integration-test-suites:
627           test-suites: "{test-suites}"
628       - integration-patch-refspec:
629           branch: "master"
630       - integration-jdk-version:
631           jdkversion: "{jre}"
632
633     scm:
634       - integration-gerrit-scm:
635           basedir: "test"
636           refspec: "$PATCHREFSPEC"
637           branch: "master"
638
639     triggers:
640       # we need this for not SR projects
641       - integration-csit-trigger:
642           jobs: "{trigger-jobs}"
643
644     builders:
645       - lf-infra-pre-build
646       - integration-stack-2-type:
647           openstack-cloud: "{openstack-cloud}"
648           openstack-heat-template: "{openstack-heat-template}"
649           openstack-heat-template-dir: "{openstack-heat-template-dir}"
650       - integration-install-robotframework
651       - inject:
652           properties-file: "env.properties"
653       - integration-get-slave-addresses
654       - inject:
655           properties-file: "slave_addresses.txt"
656       - integration-detect-variables
657       - integration-install-common-functions
658       - integration-configure-clustering
659       - integration-start-cluster-run-test
660       - integration-cleanup-tmp
661
662     publishers:
663       - email-notification:
664           email-recipients: "{email-recipients}"
665           email-prefix: "[{project}]"
666       - plot:
667           - title: "{01-plot-title}"
668             yaxis: "{01-plot-yaxis}"
669             group: "{01-plot-group}"
670             num-builds: "180"
671             keep-records: true
672             style: line
673             use-description: false
674             # yamllint disable-line rule:line-length
675             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv"
676             series:
677               - file: "{01-plot-data-file}"
678                 inclusion-flag: "off"
679                 display-table: true
680                 format: csv
681           - title: "{02-plot-title}"
682             yaxis: "{02-plot-yaxis}"
683             group: "{02-plot-group}"
684             num-builds: "180"
685             keep-records: true
686             style: line
687             use-description: false
688             # yamllint disable-line rule:line-length
689             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv"
690             series:
691               - file: "{02-plot-data-file}"
692                 inclusion-flag: "off"
693                 display-table: true
694                 format: csv
695           - title: "{03-plot-title}"
696             yaxis: "{03-plot-yaxis}"
697             group: "{03-plot-group}"
698             num-builds: "180"
699             keep-records: true
700             style: line
701             use-description: false
702             # yamllint disable-line rule:line-length
703             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv"
704             series:
705               - file: "{03-plot-data-file}"
706                 inclusion-flag: "{03-inclusion-flag}"
707                 exclude: "{03-exclude-value}"
708                 format: csv
709           - title: "{04-plot-title}"
710             yaxis: "{04-plot-yaxis}"
711             group: "{04-plot-group}"
712             num-builds: "180"
713             keep-records: true
714             style: line
715             use-description: false
716             # yamllint disable-line rule:line-length
717             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv"
718             series:
719               - file: "{04-plot-data-file}"
720                 inclusion-flag: "{04-inclusion-flag}"
721                 exclude: "{04-exclude-value}"
722                 format: csv
723           - title: "{05-plot-title}"
724             yaxis: "{05-plot-yaxis}"
725             group: "{05-plot-group}"
726             num-builds: "180"
727             keep-records: true
728             style: line
729             use-description: false
730             # yamllint disable-line rule:line-length
731             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv"
732             series:
733               - file: "{05-plot-data-file}"
734                 inclusion-flag: "{05-inclusion-flag}"
735                 exclude: "{05-exclude-value}"
736                 format: csv
737           - title: "{06-plot-title}"
738             yaxis: "{06-plot-yaxis}"
739             group: "{06-plot-group}"
740             num-builds: "180"
741             keep-records: true
742             style: line
743             use-description: false
744             # yamllint disable-line rule:line-length
745             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv"
746             series:
747               - file: "{06-plot-data-file}"
748                 inclusion-flag: "{06-inclusion-flag}"
749                 exclude: "{06-exclude-value}"
750                 format: csv
751           - title: "{07-plot-title}"
752             yaxis: "{07-plot-yaxis}"
753             group: "{07-plot-group}"
754             num-builds: "180"
755             keep-records: true
756             style: line
757             use-description: false
758             # yamllint disable-line rule:line-length
759             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv"
760             series:
761               - file: "{07-plot-data-file}"
762                 inclusion-flag: "{07-inclusion-flag}"
763                 exclude: "{07-exclude-value}"
764                 format: csv
765           - title: "{08-plot-title}"
766             yaxis: "{08-plot-yaxis}"
767             group: "{08-plot-group}"
768             num-builds: "180"
769             keep-records: true
770             style: line
771             use-description: false
772             # yamllint disable-line rule:line-length
773             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv"
774             series:
775               - file: "{08-plot-data-file}"
776                 inclusion-flag: "{08-inclusion-flag}"
777                 exclude: "{08-exclude-value}"
778                 format: csv
779           - title: "{09-plot-title}"
780             yaxis: "{09-plot-yaxis}"
781             group: "{09-plot-group}"
782             num-builds: "180"
783             keep-records: true
784             style: line
785             use-description: false
786             # yamllint disable-line rule:line-length
787             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv"
788             series:
789               - file: "{09-plot-data-file}"
790                 inclusion-flag: "{09-inclusion-flag}"
791                 exclude: "{09-exclude-value}"
792                 format: csv
793           - title: "{10-plot-title}"
794             yaxis: "{10-plot-yaxis}"
795             group: "{10-plot-group}"
796             num-builds: "180"
797             keep-records: true
798             style: line
799             use-description: false
800             # yamllint disable-line rule:line-length
801             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv"
802             series:
803               - file: "{10-plot-data-file}"
804                 inclusion-flag: "{10-inclusion-flag}"
805                 exclude: "{10-exclude-value}"
806                 format: csv
807       - integration-csit-publish:
808           robot_other_files: ""
809           robot-pass-threshold: 100.0
810           robot-unstable-threshold: 0.0
811       - lf-stack-delete:
812           openstack-cloud: "{openstack-cloud}"
813       - lf-infra-publish
814
815 - job-template:
816     name: "{prefix}{project}-csit-3node-{functionality}-{install}-{stream}"
817     id: inttest-csit-3node
818     <<: *inttest_csit_common
819     # yamllint disable-line rule:key-duplicates
820     <<: *inttest_csit_3node
821
822 - job-template:
823     name: "{prefix}{project}-csit-3node-{functionality}-{install}-{stream}"
824     id: inttest-csit-3node-custom
825     <<: *inttest_csit_common
826     # yamllint disable-line rule:key-duplicates
827     <<: *inttest_csit_3node
828
829     parameters:
830       - integration-csit-parameters:
831           archive-artifacts: "{archive-artifacts}"
832           branch: "{branch}"
833           os-cloud: "{os-cloud}"
834           # CSIT
835           bundle-url: "{bundle-url}"
836           repo-url: "{repo-url}"
837           robot-options: "{robot-options}"
838           # Controller
839           controller-scope: "{install}"
840           controller-max-mem: "{controller-max-mem}"
841           debug-map: "{debug-map}"
842           install-features: "odl-jolokia,{install-features}"
843           use-features-boot: "True"
844           elasticsearch-attribute: "{elasticsearch-attribute}"
845           karaf-based-controller: "{karaf-based-controller}"
846           karaf-version: "{karaf-version}"
847       - integration-stack-2-type:
848           vm_0_count: "3"
849           vm_0_flavor: "{odl_system_flavor}"
850           vm_0_image: "{odl_system_image}"
851           vm_1_count: "{tools_system_count}"
852           vm_1_flavor: "{tools_system_flavor}"
853           vm_1_image: "{tools_system_image}"
854       - integration-distribution-branch:
855           branch: "{branch}"
856       - integration-distribution-stream:
857           stream: "{stream}"
858       - integration-script-plan:
859           script-plan: "{project}.txt"
860       - integration-config-plan:
861           config-plan: "{project}.txt"
862       - integration-stream-test-plan:
863           stream-test-plan: "{project}-{functionality}-{stream}.txt"
864       - integration-test-plan:
865           test-plan: "{testplan}"
866       - integration-test-suites:
867           test-suites: "{test-suites}"
868       - integration-patch-refspec:
869           branch: "master"
870       - integration-jdk-version:
871           jdkversion: "{jre}"
872
873 - job-template:
874     name: "{prefix}{project}-csit-3node-docker-{functionality}-{install}-{stream}"
875     id: inttest-csit-3node-docker
876     <<: *inttest_csit_common
877
878     #####################
879     # Default variables #
880     #####################
881
882     openstack-cloud: vex
883     openstack-heat-template: csit-2-instance-type.yaml
884     openstack-heat-template-dir: openstack-hot
885
886     docker_system_count: "1"
887     docker_system_flavor: "v3-standard-2"
888     docker_system_image: "ZZCI - CentOS 7 - docker - x86_64 - 20220811-110637.413"
889
890     #####################
891     # Job Configuration #
892     #####################
893
894     parameters:
895       - integration-csit-parameters:
896           archive-artifacts: "{archive-artifacts}"
897           branch: "{branch}"
898           os-cloud: "{os-cloud}"
899           # CSIT
900           bundle-url: "{bundle-url}"
901           repo-url: "{repo-url}"
902           robot-options: "{robot-options}"
903           # Controller
904           controller-scope: "{install}"
905           controller-max-mem: "{controller-max-mem}"
906           debug-map: "{debug-map}"
907           install-features: "odl-jolokia,{install-features}"
908           use-features-boot: "True"
909           elasticsearch-attribute: "{elasticsearch-attribute}"
910           karaf-based-controller: "{karaf-based-controller}"
911           karaf-version: "{karaf-version}"
912       - integration-stack-2-type:
913           vm_0_count: "3"
914           vm_0_flavor: "{odl_system_flavor}"
915           vm_0_image: "{odl_system_image}"
916           vm_1_count: "{docker_system_count}"
917           vm_1_flavor: "{docker_system_flavor}"
918           vm_1_image: "{docker_system_image}"
919       - integration-distribution-branch:
920           branch: "{branch}"
921       - integration-distribution-stream:
922           stream: "{stream}"
923       - integration-script-plan:
924           script-plan: "{project}.txt"
925       - integration-config-plan:
926           config-plan: "{project}.txt"
927       - integration-stream-test-plan:
928           stream-test-plan: "{project}-{functionality}-{stream}.txt"
929       - integration-test-plan:
930           test-plan: "{project}-{functionality}.txt"
931       - integration-patch-refspec:
932           branch: "master"
933       - integration-jdk-version:
934           jdkversion: "{jre}"
935
936     scm:
937       - integration-gerrit-scm:
938           basedir: "test"
939           refspec: "$PATCHREFSPEC"
940           branch: "master"
941
942     builders:
943       - lf-infra-pre-build
944       - integration-stack-2-type:
945           openstack-cloud: "{openstack-cloud}"
946           openstack-heat-template: "{openstack-heat-template}"
947           openstack-heat-template-dir: "{openstack-heat-template-dir}"
948       - integration-install-robotframework
949       - inject:
950           properties-file: "env.properties"
951       - integration-get-slave-addresses
952       - inject:
953           properties-file: "slave_addresses.txt"
954       - integration-detect-variables
955       - integration-install-common-functions
956       - integration-configure-clustering
957       - integration-start-cluster-run-test
958       - integration-cleanup-tmp
959
960     publishers:
961       - email-notification:
962           email-recipients: "{email-recipients}"
963           email-prefix: "[{project}]"
964       - plot:
965           - title: "{01-plot-title}"
966             yaxis: "{01-plot-yaxis}"
967             group: "{01-plot-group}"
968             num-builds: "5400"
969             keep-records: true
970             style: line
971             use-description: false
972             # yamllint disable-line rule:line-length
973             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv"
974             series:
975               - file: "{01-plot-data-file}"
976                 inclusion-flag: "off"
977                 display-table: true
978                 format: csv
979           - title: "{02-plot-title}"
980             yaxis: "{02-plot-yaxis}"
981             group: "{02-plot-group}"
982             num-builds: "5400"
983             keep-records: true
984             style: line
985             use-description: false
986             # yamllint disable-line rule:line-length
987             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv"
988             series:
989               - file: "{02-plot-data-file}"
990                 inclusion-flag: "off"
991                 display-table: true
992                 format: csv
993       - integration-csit-publish:
994           robot_other_files: ""
995           robot-pass-threshold: 100.0
996           robot-unstable-threshold: 0.0
997       - lf-stack-delete:
998           openstack-cloud: "{openstack-cloud}"
999       - lf-infra-publish
1000
1001 #################################
1002 # inttest-csit-hwvtep-openstack #
1003 #################################
1004
1005 - inttest_csit_hwvtep_openstack: &inttest_csit_hwvtep_openstack
1006     name: inttest-csit-hwvtep-openstack
1007
1008     #####################
1009     # Default variables #
1010     #####################
1011
1012     openstack-cloud: vex
1013     openstack-heat-template: csit-4-instance-type.yaml
1014     openstack-heat-template-dir: openstack-hot
1015
1016     #####################
1017     # Job configuration #
1018     #####################
1019
1020     parameters:
1021       - integration-csit-parameters:
1022           archive-artifacts: "{archive-artifacts}"
1023           branch: "{branch}"
1024           os-cloud: "{os-cloud}"
1025           # CSIT
1026           bundle-url: "{bundle-url}"
1027           repo-url: "{repo-url}"
1028           robot-options: "{robot-options}"
1029           # Controller
1030           controller-scope: ""
1031           controller-max-mem: "{controller-max-mem}"
1032           debug-map: "{debug-map}"
1033           install-features: "{install-features}"
1034           use-features-boot: "{use-features-boot}"
1035           elasticsearch-attribute: "{elasticsearch-attribute}"
1036           karaf-based-controller: "{karaf-based-controller}"
1037           karaf-version: "{karaf-version}"
1038       - integration-stack-4-type:
1039           vm_0_count: "{odl_system_count}"
1040           vm_0_flavor: "{odl_system_flavor}"
1041           vm_0_image: "{odl_system_image}"
1042           vm_1_count: "{openstack_system_count}"
1043           vm_1_flavor: "{openstack_system_flavor}"
1044           vm_1_image: "{openstack_system_image}"
1045           vm_2_count: "{openstack_system2_count}"
1046           vm_2_flavor: "{openstack_system2_flavor}"
1047           vm_2_image: "{openstack_system2_image}"
1048           vm_3_count: "{tools_system_count}"
1049           vm_3_flavor: "{tools_system_flavor}"
1050           vm_3_image: "{tools_system_image}"
1051       - integration-distribution-branch:
1052           branch: "{branch}"
1053       - integration-distribution-stream:
1054           stream: "{stream}"
1055       - integration-script-plan:
1056           script-plan: "{project}.txt"
1057       - integration-config-plan:
1058           config-plan: "{project}.txt"
1059       - integration-test-plan:
1060           test-plan: "{project}-{functionality}.txt"
1061       - integration-test-suites:
1062           test-suites: "{test-suites}"
1063       - integration-patch-refspec:
1064           branch: "master"
1065       - integration-jdk-version:
1066           jdkversion: "{jre}"
1067       - string:
1068           name: OPENSTACK_BRANCH
1069           default: "{openstack-branch}"
1070           description: "Openstack version to use with devstack"
1071       - string:
1072           name: DEVSTACK_HASH
1073           default: "{devstack-hash}"
1074           description: "devstack hash to checkout"
1075       - string:
1076           name: ODL_ML2_DRIVER_REPO
1077           default: "{odl-ml2-driver-repo}"
1078           description: "URL to fetch networking-odl driver"
1079       - string:
1080           name: ODL_ML2_BRANCH
1081           default: "{odl-ml2-branch}"
1082           description: "Version of networking-odl to checkout from the repo"
1083       - string:
1084           name: ODL_ML2_DRIVER_VERSION
1085           default: "{odl-ml2-driver-version}"
1086           description: "Mode of networking-odl (v1 or v2)"
1087       - string:
1088           name: ODL_ML2_PORT_BINDING
1089           default: "{odl-ml2-port-binding}"
1090           description: >
1091             Method of networking-odl port-binding (pseudo-agentdb-binding or
1092             legacy-port-binding or network-topology)
1093       - string:
1094           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1095           default: "{devstack-kubernetes-plugin-repo}"
1096           description: "URL to fetch kubernetes devstack plugin"
1097       - string:
1098           name: DEVSTACK_LBAAS_PLUGIN_REPO
1099           default: "{devstack-lbaas-plugin-repo}"
1100           description: "URL to fetch neutron-lbaas devstack plugin"
1101       - string:
1102           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1103           default: "{devstack-networking-sfc-plugin-repo}"
1104           description: "URL to fetch neutron-lbaas devstack plugin"
1105       - string:
1106           name: IPSEC_VXLAN_TUNNELS_ENABLED
1107           default: "{ipsec-vxlan-tunnels-enabled}"
1108           description: "Enable ipsec over vxlan support for all controllers and computes"
1109       - string:
1110           name: PUBLIC_BRIDGE
1111           default: "{public-bridge}"
1112           description: "Specifies public bridge for provider and external networking"
1113       - string:
1114           name: ENABLE_HAPROXY_FOR_NEUTRON
1115           default: "{enable-haproxy}"
1116           description: "Enable HAProxy for using neutron interface as HA"
1117       - string:
1118           name: ENABLE_OS_SERVICES
1119           default: "{enable-openstack-services}"
1120           description: "comma separated list of services to enable on controller nodes"
1121       - string:
1122           name: ENABLE_OS_COMPUTE_SERVICES
1123           default: "{enable-openstack-compute-services}"
1124           description: "comma separated list of services to enable on compute nodes"
1125       - string:
1126           name: ENABLE_OS_NETWORK_SERVICES
1127           default: "{enable-openstack-network-services}"
1128           description: "comma seperated list of network services to enable"
1129       - string:
1130           name: ENABLE_OS_PLUGINS
1131           default: "{enable-openstack-plugins}"
1132           description: "comma seperated list of plugins to enable"
1133       - string:
1134           name: DISABLE_OS_SERVICES
1135           default: "{disable-openstack-services}"
1136           description: "comma seperated list of services to enable"
1137       - string:
1138           name: TENANT_NETWORK_TYPE
1139           default: "{tenant-network-type}"
1140           description: "Tenant Network Type supported by the implementation"
1141       - string:
1142           name: SECURITY_GROUP_MODE
1143           default: "{security-group-mode}"
1144           description: "Security Group Mode to be used in netvirt aclservice config"
1145       - string:
1146           name: ENABLE_ITM_DIRECT_TUNNELS
1147           default: "{enable-itm-direct-tunnels}"
1148           description: "Tunnel Configuration mode to be used in genius ifm config"
1149       - string:
1150           name: PUBLIC_PHYSICAL_NETWORK
1151           default: "{public-physical-network}"
1152           description: "provider physical network used for flat/vlan networks"
1153       - string:
1154           name: ENABLE_NETWORKING_L2GW
1155           default: "{enable-networking-l2gw}"
1156           description: "Enable networking L2gw"
1157       - string:
1158           name: NETWORKING_L2GW_DRIVER
1159           default: "{networking-l2gw-repo}"
1160           description: "URL to fetch networking-l2gw driver"
1161       - string:
1162           name: CREATE_INITIAL_NETWORKS
1163           default: "{create-initial-networks}"
1164           description: "Toggles the option of letting devstack create initial networks (True/False)"
1165       - string:
1166           name: LBAAS_SERVICE_PROVIDER
1167           default: "{lbaas-service-provider}"
1168           description: >
1169             The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in
1170             local.conf - only relevant when using neutron-lbaas
1171       - string:
1172           name: ODL_SFC_DRIVER
1173           default: "{odl-sfc-driver}"
1174           description: "The SFC driver to be used in local.conf - only relevant when using networking-sfc"
1175       - string:
1176           name: ODL_SNAT_MODE
1177           default: "{odl-snat-mode}"
1178           description: "The SNAT mode to be configured - options are conntrack/controller."
1179       - string:
1180           name: GROUP_ADD_MOD_ENABLED
1181           default: "{group-add-mod-enabled}"
1182           description: "The Group add mod enabled mode to be configured - options are true/false."
1183       - string:
1184           name: OVS_INSTALL
1185           default: "{ovs-install}"
1186           description: >
1187             Install a custom OVS. It can be an OVS version to build
1188             (like v2.9.2 or v2.6.1-nsh) or a yum repo url to pull from.
1189
1190     scm:
1191       - integration-gerrit-scm:
1192           basedir: "test"
1193           refspec: "$PATCHREFSPEC"
1194           branch: "master"
1195
1196     triggers:
1197       - timed: "{schedule}"
1198
1199     builders:
1200       - lf-infra-pre-build
1201       - integration-stack-4-type:
1202           openstack-cloud: "{openstack-cloud}"
1203           openstack-heat-template: "{openstack-heat-template}"
1204           openstack-heat-template-dir: "{openstack-heat-template-dir}"
1205       - integration-install-robotframework
1206       - inject:
1207           properties-file: "env.properties"
1208       - integration-get-slave-addresses
1209       - inject:
1210           properties-file: "slave_addresses.txt"
1211       - integration-detect-variables
1212       - integration-install-common-functions
1213       - integration-deploy-controller-run-test
1214       - integration-deploy-openstack-run-test
1215       - integration-cleanup-tmp
1216
1217     publishers:
1218       - email-notification:
1219           email-recipients: "{email-recipients}"
1220           email-prefix: "[{project}]"
1221       - integration-csit-collect-netvirt-logs
1222       - integration-csit-publish:
1223           robot_other_files:
1224             - tempest_results.html
1225           robot-pass-threshold: 100.0
1226           robot-unstable-threshold: 0.0
1227       - lf-stack-delete:
1228           openstack-cloud: "{openstack-cloud}"
1229       - lf-infra-publish
1230
1231 - job-template:
1232     # yamllint disable-line rule:line-length
1233     name: "{prefix}{project}-csit-hwvtep-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-openstack-{openstack}-{functionality}-{stream}"
1234     id: inttest-csit-hwvtep-openstack
1235     <<: *inttest_csit_common
1236     # yamllint disable-line rule:key-duplicates
1237     <<: *inttest_csit_hwvtep_openstack
1238
1239 - job-template:
1240     # yamllint disable-line rule:line-length
1241     name: "{prefix}{project}-csit-hwvtep-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-openstack-{openstack}-{functionality}-{stream}"
1242     id: inttest-csit-hwvtep-openstack-custom
1243     <<: *inttest_csit_common
1244     # yamllint disable-line rule:key-duplicates
1245     <<: *inttest_csit_hwvtep_openstack
1246
1247     parameters:
1248       - integration-csit-parameters:
1249           archive-artifacts: "{archive-artifacts}"
1250           branch: "{branch}"
1251           os-cloud: "{os-cloud}"
1252           # CSIT
1253           bundle-url: "{bundle-url}"
1254           repo-url: "{repo-url}"
1255           robot-options: "{robot-options}"
1256           # Controller
1257           controller-scope: ""
1258           controller-max-mem: "{controller-max-mem}"
1259           debug-map: "{debug-map}"
1260           install-features: "{install-features}"
1261           use-features-boot: "{use-features-boot}"
1262           elasticsearch-attribute: "{elasticsearch-attribute}"
1263           karaf-based-controller: "{karaf-based-controller}"
1264           karaf-version: "{karaf-version}"
1265       - integration-stack-4-type:
1266           vm_0_count: "{odl_system_count}"
1267           vm_0_flavor: "{odl_system_flavor}"
1268           vm_0_image: "{odl_system_image}"
1269           vm_1_count: "{openstack_system_count}"
1270           vm_1_flavor: "{openstack_system_flavor}"
1271           vm_1_image: "{openstack_system_image}"
1272           vm_2_count: "{openstack_system2_count}"
1273           vm_2_flavor: "{openstack_system2_flavor}"
1274           vm_2_image: "{openstack_system2_image}"
1275           vm_3_count: "{tools_system_count}"
1276           vm_3_flavor: "{tools_system_flavor}"
1277           vm_3_image: "{tools_system_image}"
1278       - integration-distribution-branch:
1279           branch: "{branch}"
1280       - integration-distribution-stream:
1281           stream: "{stream}"
1282       - integration-script-plan:
1283           script-plan: "{project}.txt"
1284       - integration-config-plan:
1285           config-plan: "{project}.txt"
1286       - integration-test-plan:
1287           test-plan: "{testplan}"
1288       - integration-test-suites:
1289           test-suites: "{test-suites}"
1290       - integration-patch-refspec:
1291           branch: "master"
1292       - integration-jdk-version:
1293           jdkversion: "{jre}"
1294       - string:
1295           name: OPENSTACK_BRANCH
1296           default: "{openstack-branch}"
1297           description: "Openstack version to use with devstack"
1298       - string:
1299           name: DEVSTACK_HASH
1300           default: "{devstack-hash}"
1301           description: "devstack hash to checkout"
1302       - string:
1303           name: ODL_ML2_DRIVER_REPO
1304           default: "{odl-ml2-driver-repo}"
1305           description: "URL to fetch networking-odl driver"
1306       - string:
1307           name: ODL_ML2_BRANCH
1308           default: "{odl-ml2-branch}"
1309           description: "Version of networking-odl to checkout from the repo"
1310       - string:
1311           name: ODL_ML2_DRIVER_VERSION
1312           default: "{odl-ml2-driver-version}"
1313           description: "Mode of networking-odl (v1 or v2)"
1314       - string:
1315           name: ODL_ML2_PORT_BINDING
1316           default: "{odl-ml2-port-binding}"
1317           description: |
1318             Method of networking-odl port-binding (pseudo-agentdb-binding or
1319             legacy-port-binding or network-topology)
1320       - string:
1321           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1322           default: "{devstack-kubernetes-plugin-repo}"
1323           description: "URL to fetch kubernetes devstack plugin"
1324       - string:
1325           name: DEVSTACK_LBAAS_PLUGIN_REPO
1326           default: "{devstack-lbaas-plugin-repo}"
1327           description: "URL to fetch neutron-lbaas devstack plugin"
1328       - string:
1329           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1330           default: "{devstack-networking-sfc-plugin-repo}"
1331           description: "URL to fetch neutron-lbaas devstack plugin"
1332       - string:
1333           name: IPSEC_VXLAN_TUNNELS_ENABLED
1334           default: "{ipsec-vxlan-tunnels-enabled}"
1335           description: "Enable ipsec over vxlan support for all controllers and computes"
1336       - string:
1337           name: PUBLIC_BRIDGE
1338           default: "{public-bridge}"
1339           description: "Specifies public bridge for provider and external networking"
1340       - string:
1341           name: ENABLE_HAPROXY_FOR_NEUTRON
1342           default: "{enable-haproxy}"
1343           description: "Enable HAProxy for using neutron interface as HA"
1344       - string:
1345           name: ENABLE_OS_SERVICES
1346           default: "{enable-openstack-services}"
1347           description: "comma separated list of services to enable on controller nodes"
1348       - string:
1349           name: ENABLE_OS_COMPUTE_SERVICES
1350           default: "{enable-openstack-compute-services}"
1351           description: "comma separated list of services to enable on compute nodes"
1352       - string:
1353           name: ENABLE_OS_NETWORK_SERVICES
1354           default: "{enable-openstack-network-services}"
1355           description: "comma seperated list of network services to enable"
1356       - string:
1357           name: ENABLE_OS_PLUGINS
1358           default: "{enable-openstack-plugins}"
1359           description: "comma seperated list of plugins to enable"
1360       - string:
1361           name: DISABLE_OS_SERVICES
1362           default: "{disable-openstack-services}"
1363           description: "comma seperated list of services to enable"
1364       - string:
1365           name: TENANT_NETWORK_TYPE
1366           default: "{tenant-network-type}"
1367           description: "Tenant Network Type supported by the implementation"
1368       - string:
1369           name: SECURITY_GROUP_MODE
1370           default: "{security-group-mode}"
1371           description: "Security Group Mode to be used in netvirt aclservice config"
1372       - string:
1373           name: ENABLE_ITM_DIRECT_TUNNELS
1374           default: "{enable-itm-direct-tunnels}"
1375           description: "Tunnel Configuration mode to be used in genius ifm config"
1376       - string:
1377           name: PUBLIC_PHYSICAL_NETWORK
1378           default: "{public-physical-network}"
1379           description: "provider physical network used for flat/vlan networks"
1380       - string:
1381           name: ENABLE_NETWORKING_L2GW
1382           default: "{enable-networking-l2gw}"
1383           description: "Enable networking L2gw"
1384       - string:
1385           name: NETWORKING_L2GW_DRIVER
1386           default: "{networking-l2gw-repo}"
1387           description: "URL to fetch networking-l2gw driver"
1388       - string:
1389           name: CREATE_INITIAL_NETWORKS
1390           default: "{create-initial-networks}"
1391           description: "Toggles the option of letting devstack create initial networks (True/False)"
1392       - string:
1393           name: LBAAS_SERVICE_PROVIDER
1394           default: "{lbaas-service-provider}"
1395           description: |
1396             The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf
1397             - only relevant when using neutron-lbaas
1398       - string:
1399           name: ODL_SFC_DRIVER
1400           default: "{odl-sfc-driver}"
1401           description: "The SFC driver to be used in local.conf - only relevant when using networking-sfc"
1402       - string:
1403           name: ODL_SNAT_MODE
1404           default: "{odl-snat-mode}"
1405           description: "The SNAT mode to be configured - options are conntrack/controller."
1406       - string:
1407           name: GROUP_ADD_MOD_ENABLED
1408           default: "{group-add-mod-enabled}"
1409           description: "The Group add mod enabled mode to be configured - options are true/false."
1410       - string:
1411           name: OVS_INSTALL
1412           default: "{ovs-install}"
1413           description: |
1414             Install a custom OVS. It can be an OVS version to build (like
1415             v2.9.2 or v2.6.1-nsh) or a yum repo url to pull from.
1416
1417 ##########################
1418 # inttest-csit-openstack #
1419 ##########################
1420
1421 - inttest_csit_openstack: &inttest_csit_openstack
1422     name: inttest-csit-openstack
1423
1424     #####################
1425     # Default variables #
1426     #####################
1427
1428     openstack-cloud: vex
1429     openstack-heat-template: csit-4-instance-type.yaml
1430     openstack-heat-template-dir: openstack-hot
1431
1432     #####################
1433     # Job configuration #
1434     #####################
1435
1436     parameters:
1437       - integration-csit-parameters:
1438           archive-artifacts: "{archive-artifacts}"
1439           branch: "{branch}"
1440           os-cloud: "{os-cloud}"
1441           # CSIT
1442           bundle-url: "{bundle-url}"
1443           repo-url: "{repo-url}"
1444           robot-options: "{robot-options}"
1445           # Controller
1446           controller-scope: ""
1447           controller-max-mem: "{controller-max-mem}"
1448           debug-map: "{debug-map}"
1449           install-features: "{install-features}"
1450           use-features-boot: "{use-features-boot}"
1451           elasticsearch-attribute: "{elasticsearch-attribute}"
1452           karaf-based-controller: "{karaf-based-controller}"
1453           karaf-version: "{karaf-version}"
1454       - integration-stack-4-type:
1455           vm_0_count: "{odl_system_count}"
1456           vm_0_flavor: "{odl_system_flavor}"
1457           vm_0_image: "{odl_system_image}"
1458           vm_1_count: "{openstack_system_count}"
1459           vm_1_flavor: "{openstack_system_flavor}"
1460           vm_1_image: "{openstack_system_image}"
1461           vm_2_count: "{openstack_system2_count}"
1462           vm_2_flavor: "{openstack_system2_flavor}"
1463           vm_2_image: "{openstack_system2_image}"
1464           vm_3_count: "{tools_system_count}"
1465           vm_3_flavor: "{tools_system_flavor}"
1466           vm_3_image: "{tools_system_image}"
1467       - integration-distribution-branch:
1468           branch: "{branch}"
1469       - integration-distribution-stream:
1470           stream: "{stream}"
1471       - integration-script-plan:
1472           script-plan: "{project}.txt"
1473       - integration-config-plan:
1474           config-plan: "{project}.txt"
1475       - integration-test-plan:
1476           test-plan: "{project}-{functionality}.txt"
1477       - integration-test-suites:
1478           test-suites: "{test-suites}"
1479       - integration-patch-refspec:
1480           branch: "master"
1481       - integration-jdk-version:
1482           jdkversion: "{jre}"
1483       - string:
1484           name: OPENSTACK_BRANCH
1485           default: "{openstack-branch}"
1486           description: "Openstack version to use with devstack"
1487       - string:
1488           name: DEVSTACK_HASH
1489           default: "{devstack-hash}"
1490           description: "devstack hash to checkout"
1491       - string:
1492           name: ODL_ML2_DRIVER_REPO
1493           default: "{odl-ml2-driver-repo}"
1494           description: "URL to fetch networking-odl driver"
1495       - string:
1496           name: ODL_ML2_BRANCH
1497           default: "{odl-ml2-branch}"
1498           description: "Version of networking-odl to checkout from the repo"
1499       - string:
1500           name: ODL_ML2_DRIVER_VERSION
1501           default: "{odl-ml2-driver-version}"
1502           description: "Mode of networking-odl (v1 or v2)"
1503       - string:
1504           name: ODL_ML2_PORT_BINDING
1505           default: "{odl-ml2-port-binding}"
1506           description: |
1507             Method of networking-odl port-binding (pseudo-agentdb-binding or
1508             legacy-port-binding or network-topology)
1509       - string:
1510           name: ENABLE_GRE_TYPE_DRIVERS
1511           default: "{enable-gre-type-driver}"
1512           description: "Enable gre tunnel"
1513       - string:
1514           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1515           default: "{devstack-kubernetes-plugin-repo}"
1516           description: "URL to fetch kubernetes devstack plugin"
1517       - string:
1518           name: DEVSTACK_LBAAS_PLUGIN_REPO
1519           default: "{devstack-lbaas-plugin-repo}"
1520           description: "URL to fetch neutron-lbaas devstack plugin"
1521       - string:
1522           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1523           default: "{devstack-networking-sfc-plugin-repo}"
1524           description: "URL to fetch neutron-lbaas devstack plugin"
1525       - string:
1526           name: IPSEC_VXLAN_TUNNELS_ENABLED
1527           default: "{ipsec-vxlan-tunnels-enabled}"
1528           description: "Enable ipsec over vxlan support for all controllers and computes"
1529       - string:
1530           name: PUBLIC_BRIDGE
1531           default: "{public-bridge}"
1532           description: "Specifies public bridge for provider and external networking"
1533       - string:
1534           name: ENABLE_HAPROXY_FOR_NEUTRON
1535           default: "{enable-haproxy}"
1536           description: "Enable HAProxy for using neutron interface as HA"
1537       - string:
1538           name: ENABLE_OS_SERVICES
1539           default: "{enable-openstack-services}"
1540           description: "comma seperated list of services to enable"
1541       - string:
1542           name: ENABLE_OS_COMPUTE_SERVICES
1543           default: "{enable-openstack-compute-services}"
1544           description: "comma separated list of services to enable on compute nodes"
1545       - string:
1546           name: ENABLE_OS_NETWORK_SERVICES
1547           default: "{enable-openstack-network-services}"
1548           description: "comma seperated list of network services to enable"
1549       - string:
1550           name: ENABLE_OS_PLUGINS
1551           default: "{enable-openstack-plugins}"
1552           description: "comma seperated list of plugins to enable"
1553       - string:
1554           name: DISABLE_OS_SERVICES
1555           default: "{disable-openstack-services}"
1556           description: "comma seperated list of services to enable"
1557       - string:
1558           name: TENANT_NETWORK_TYPE
1559           default: "{tenant-network-type}"
1560           description: "Tenant Network Type supported by the implementation"
1561       - string:
1562           name: SECURITY_GROUP_MODE
1563           default: "{security-group-mode}"
1564           description: "Security Group Mode to be used in netvirt aclservice config"
1565       - string:
1566           name: ENABLE_ITM_DIRECT_TUNNELS
1567           default: "{enable-itm-direct-tunnels}"
1568           description: "Tunnel Configuration mode to be used in genius ifm config"
1569       - string:
1570           name: PUBLIC_PHYSICAL_NETWORK
1571           default: "{public-physical-network}"
1572           description: "provider physical network used for flat/vlan networks"
1573       - string:
1574           name: ENABLE_NETWORKING_L2GW
1575           default: "{enable-networking-l2gw}"
1576           description: "Enable networking L2gw"
1577       - string:
1578           name: NETWORKING_L2GW_DRIVER
1579           default: "{networking-l2gw-repo}"
1580           description: "URL to fetch networking-l2gw driver"
1581       - string:
1582           name: CREATE_INITIAL_NETWORKS
1583           default: "{create-initial-networks}"
1584           description: "Toggles the option of letting devstack create initial networks (True/False)"
1585       - string:
1586           name: LBAAS_SERVICE_PROVIDER
1587           default: "{lbaas-service-provider}"
1588           description: |
1589             The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf
1590             - only relevant when using neutron-lbaas
1591       - string:
1592           name: ODL_SFC_DRIVER
1593           default: "{odl-sfc-driver}"
1594           description: "The SFC driver to be used in local.conf - only relevant when using networking-sfc"
1595       - string:
1596           name: ODL_SNAT_MODE
1597           default: "{odl-snat-mode}"
1598           description: "The SNAT mode to be configured - options are conntrack/controller."
1599       - string:
1600           name: GROUP_ADD_MOD_ENABLED
1601           default: "{group-add-mod-enabled}"
1602           description: "The Group add mod enabled mode to be configured - options are true/false."
1603       - string:
1604           name: OVS_INSTALL
1605           default: "{ovs-install}"
1606           description: |
1607             Install a custom OVS. It can be an OVS version to build (like
1608             v2.9.2 or v2.6.1-nsh) or a yum repo url to pull from.
1609
1610     scm:
1611       - integration-gerrit-scm:
1612           basedir: "test"
1613           refspec: "$PATCHREFSPEC"
1614           branch: "master"
1615
1616     triggers:
1617       - timed: "{schedule}"
1618
1619     builders:
1620       - lf-infra-pre-build
1621       - integration-stack-4-type:
1622           openstack-cloud: "{openstack-cloud}"
1623           openstack-heat-template: "{openstack-heat-template}"
1624           openstack-heat-template-dir: "{openstack-heat-template-dir}"
1625       - integration-install-robotframework
1626       - inject:
1627           properties-file: "env.properties"
1628       - integration-get-slave-addresses
1629       - inject:
1630           properties-file: "slave_addresses.txt"
1631       - integration-detect-variables
1632       - integration-install-common-functions
1633       - integration-deploy-controller-run-test
1634       - integration-deploy-openstack-run-test
1635       - integration-cleanup-tmp
1636
1637     publishers:
1638       - email-notification:
1639           email-recipients: "{email-recipients}"
1640           email-prefix: "[{project}]"
1641       - integration-csit-collect-netvirt-logs
1642       - integration-csit-publish:
1643           robot_other_files:
1644             - tempest_results.html
1645           robot-pass-threshold: 100.0
1646           robot-unstable-threshold: 0.0
1647       - lf-stack-delete:
1648           openstack-cloud: "{openstack-cloud}"
1649       - lf-infra-publish
1650
1651 - job-template:
1652     # yamllint disable-line rule:line-length
1653     name: "{prefix}{project}-csit-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-openstack-{openstack}-{functionality}-{stream}"
1654     id: inttest-csit-openstack
1655     <<: *inttest_csit_common
1656     # yamllint disable-line rule:key-duplicates
1657     <<: *inttest_csit_openstack
1658
1659 - job-template:
1660     # yamllint disable-line rule:line-length
1661     name: "{prefix}{project}-csit-{topology}-{os-cmb-cnt}cmb-{os-ctl-cnt}ctl-{os-cmp-cnt}cmp-openstack-{openstack}-{functionality}-{stream}"
1662     id: inttest-csit-openstack-custom
1663     <<: *inttest_csit_common
1664     # yamllint disable-line rule:key-duplicates
1665     <<: *inttest_csit_openstack
1666
1667     parameters:
1668       - integration-csit-parameters:
1669           archive-artifacts: "{archive-artifacts}"
1670           branch: "{branch}"
1671           os-cloud: "{os-cloud}"
1672           # CSIT
1673           bundle-url: "{bundle-url}"
1674           repo-url: "{repo-url}"
1675           robot-options: "{robot-options}"
1676           # Controller
1677           controller-scope: ""
1678           controller-max-mem: "{controller-max-mem}"
1679           debug-map: "{debug-map}"
1680           install-features: "{install-features}"
1681           use-features-boot: "{use-features-boot}"
1682           elasticsearch-attribute: "{elasticsearch-attribute}"
1683           karaf-based-controller: "{karaf-based-controller}"
1684           karaf-version: "{karaf-version}"
1685       - integration-stack-4-type:
1686           vm_0_count: "{odl_system_count}"
1687           vm_0_flavor: "{odl_system_flavor}"
1688           vm_0_image: "{odl_system_image}"
1689           vm_1_count: "{openstack_system_count}"
1690           vm_1_flavor: "{openstack_system_flavor}"
1691           vm_1_image: "{openstack_system_image}"
1692           vm_2_count: "{openstack_system2_count}"
1693           vm_2_flavor: "{openstack_system2_flavor}"
1694           vm_2_image: "{openstack_system2_image}"
1695           vm_3_count: "{tools_system_count}"
1696           vm_3_flavor: "{tools_system_flavor}"
1697           vm_3_image: "{tools_system_image}"
1698       - integration-distribution-branch:
1699           branch: "{branch}"
1700       - integration-distribution-stream:
1701           stream: "{stream}"
1702       - integration-script-plan:
1703           script-plan: "{project}.txt"
1704       - integration-config-plan:
1705           config-plan: "{project}.txt"
1706       - integration-test-plan:
1707           test-plan: "{testplan}"
1708       - integration-test-suites:
1709           test-suites: "{test-suites}"
1710       - integration-patch-refspec:
1711           branch: "master"
1712       - integration-jdk-version:
1713           jdkversion: "{jre}"
1714       - string:
1715           name: OPENSTACK_BRANCH
1716           default: "{openstack-branch}"
1717           description: "Openstack version to use with devstack"
1718       - string:
1719           name: DEVSTACK_HASH
1720           default: "{devstack-hash}"
1721           description: "devstack hash to checkout"
1722       - string:
1723           name: ODL_ML2_DRIVER_REPO
1724           default: "{odl-ml2-driver-repo}"
1725           description: "URL to fetch networking-odl driver"
1726       - string:
1727           name: ODL_ML2_BRANCH
1728           default: "{odl-ml2-branch}"
1729           description: "Version of networking-odl to checkout from the repo"
1730       - string:
1731           name: ODL_ML2_DRIVER_VERSION
1732           default: "{odl-ml2-driver-version}"
1733           description: "Mode of networking-odl (v1 or v2)"
1734       - string:
1735           name: ODL_ML2_PORT_BINDING
1736           default: "{odl-ml2-port-binding}"
1737           description: |
1738             Method of networking-odl port-binding (pseudo-agentdb-binding or
1739             legacy-port-binding or network-topology)
1740       - string:
1741           name: ENABLE_GRE_TYPE_DRIVERS
1742           default: "{enable-gre-type-driver}"
1743           description: "Enable gre tunnel"
1744       - string:
1745           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1746           default: "{devstack-kubernetes-plugin-repo}"
1747           description: "URL to fetch kubernetes devstack plugin"
1748       - string:
1749           name: DEVSTACK_LBAAS_PLUGIN_REPO
1750           default: "{devstack-lbaas-plugin-repo}"
1751           description: "URL to fetch neutron-lbaas devstack plugin"
1752       - string:
1753           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1754           default: "{devstack-networking-sfc-plugin-repo}"
1755           description: "URL to fetch neutron-lbaas devstack plugin"
1756       - string:
1757           name: IPSEC_VXLAN_TUNNELS_ENABLED
1758           default: "{ipsec-vxlan-tunnels-enabled}"
1759           description: "Enable ipsec over vxlan support for all controllers and computes"
1760       - string:
1761           name: PUBLIC_BRIDGE
1762           default: "{public-bridge}"
1763           description: "Specifies public bridge for provider and external networking"
1764       - string:
1765           name: ENABLE_HAPROXY_FOR_NEUTRON
1766           default: "{enable-haproxy}"
1767           description: "Enable HAProxy for using neutron interface as HA"
1768       - string:
1769           name: ENABLE_OS_SERVICES
1770           default: "{enable-openstack-services}"
1771           description: "comma seperated list of services to enable"
1772       - string:
1773           name: ENABLE_OS_COMPUTE_SERVICES
1774           default: "{enable-openstack-compute-services}"
1775           description: "comma separated list of services to enable on compute nodes"
1776       - string:
1777           name: ENABLE_OS_NETWORK_SERVICES
1778           default: "{enable-openstack-network-services}"
1779           description: "comma seperated list of network services to enable"
1780       - string:
1781           name: ENABLE_OS_PLUGINS
1782           default: "{enable-openstack-plugins}"
1783           description: "comma seperated list of plugins to enable"
1784       - string:
1785           name: DISABLE_OS_SERVICES
1786           default: "{disable-openstack-services}"
1787           description: "comma seperated list of services to enable"
1788       - string:
1789           name: TENANT_NETWORK_TYPE
1790           default: "{tenant-network-type}"
1791           description: "Tenant Network Type supported by the implementation"
1792       - string:
1793           name: SECURITY_GROUP_MODE
1794           default: "{security-group-mode}"
1795           description: "Security Group Mode to be used in netvirt aclservice config"
1796       - string:
1797           name: ENABLE_ITM_DIRECT_TUNNELS
1798           default: "{enable-itm-direct-tunnels}"
1799           description: "Tunnel Configuration mode to be used in genius ifm config"
1800       - string:
1801           name: PUBLIC_PHYSICAL_NETWORK
1802           default: "{public-physical-network}"
1803           description: "provider physical network used for flat/vlan networks"
1804       - string:
1805           name: ENABLE_NETWORKING_L2GW
1806           default: "{enable-networking-l2gw}"
1807           description: "Enable networking L2gw"
1808       - string:
1809           name: NETWORKING_L2GW_DRIVER
1810           default: "{networking-l2gw-repo}"
1811           description: "URL to fetch networking-l2gw driver"
1812       - string:
1813           name: CREATE_INITIAL_NETWORKS
1814           default: "{create-initial-networks}"
1815           description: "Toggles the option of letting devstack create initial networks (True/False)"
1816       - string:
1817           name: LBAAS_SERVICE_PROVIDER
1818           default: "{lbaas-service-provider}"
1819           description: |
1820             The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf
1821             - only relevant when using neutron-lbaas
1822       - string:
1823           name: ODL_SFC_DRIVER
1824           default: "{odl-sfc-driver}"
1825           description: "The SFC driver to be used in local.conf - only relevant when using networking-sfc"
1826       - string:
1827           name: ODL_SNAT_MODE
1828           default: "{odl-snat-mode}"
1829           description: "The SNAT mode to be configured - options are conntrack/controller."
1830       - string:
1831           name: GROUP_ADD_MOD_ENABLED
1832           default: "{group-add-mod-enabled}"
1833           description: "The Group add mod enabled mode to be configured - options are true/false."
1834       - string:
1835           name: OVS_INSTALL
1836           default: "{ovs-install}"
1837           description: |
1838             Install a custom OVS. It can be an OVS version to build (like
1839             v2.9.2 or v2.6.1-nsh) or a yum repo url to pull from.
1840
1841 # Template: {project}-mri-patch-test-{stream}
1842 # Goal: Build a patch and run project specific system test on a mri projects distribution containing the change
1843 # Operation: This job template builds a patch, uses the projects distribution and triggers the project system
1844 # test defined in {csit-list} when gerrit receives test-{project} keyword
1845
1846 - job-template:
1847     name: "{prefix}{project}-mri-patch-test-{feature}-{stream}"
1848     id: inttest-mri-patch-test
1849     <<: *inttest_csit_common
1850
1851     build-timeout: 720
1852
1853     parameters:
1854       - opendaylight-infra-parameters:
1855           os-cloud: "{os-cloud}"
1856           project: "{project}"
1857           branch: "{branch}"
1858           refspec: "refs/heads/{branch}"
1859           artifacts: "{archive-artifacts}"
1860       - integration-distribution-branch:
1861           branch: "{branch}"
1862       - distribution-karaf-version:
1863           karaf-version: "{karaf-version}"
1864       - integration-distribution-git-url:
1865           git-url: "{git-url}"
1866       - string:
1867           name: feature
1868           default: "all"
1869           description: "Specific feature test for patch"
1870       - maven-exec:
1871           maven-version: "{mvn-version}"
1872
1873     scm:
1874       - integration-gerrit-scm:
1875           basedir: "{project}"
1876           refspec: "$GERRIT_REFSPEC"
1877           branch: "{branch}"
1878       - integration-distribution-scm:
1879           branch: "{branch}"
1880
1881     triggers:
1882       - gerrit:
1883           server-name: "{gerrit-server-name}"
1884           trigger-on:
1885             - comment-added-contains-event:
1886                 comment-contains-value: "test-{project}-all"
1887             - comment-added-contains-event:
1888                 comment-contains-value: "test-{project}-{feature}"
1889           projects:
1890             - project-compare-type: "ANT"
1891               project-pattern: "{project}"
1892               branches:
1893                 - branch-compare-type: "ANT"
1894                   branch-pattern: "**/{branch}"
1895           skip-vote:
1896             successful: true
1897             failed: true
1898             unstable: true
1899             notbuilt: true
1900
1901     builders:
1902       - integration-rebase-gerrit-patch
1903       - wipe-org-opendaylight-repo
1904       - lf-update-java-alternatives:
1905           java-version: "{java-version}"
1906       - maven-target:
1907           maven-version: "{mvn-version}"
1908           pom: "{project}/pom.xml"
1909           goals: |
1910             clean install dependency:tree
1911             -Pq
1912             -Dgitid.skip=false
1913             -Dmaven.gitcommitid.skip=false
1914             -DgenerateReports=false
1915             -Dstream={stream}
1916             {opendaylight-infra-mvn-opts}
1917           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1918           java-opts:
1919             - "-Xmx4096m -Dmaven.compile.fork=true"
1920           settings: integration-settings
1921           settings-type: cfp
1922           global-settings: global-settings
1923           global-settings-type: cfp
1924       - integration-upload-distribution:
1925           dist-pom: "{project}/pom.xml"
1926           settings-project: "{project}"
1927       - trigger-builds:
1928           - project: "{csit-list}"
1929             block: true
1930             predefined-parameters: |
1931               BUNDLE_URL=$BUNDLE_URL
1932               GERRIT_BRANCH=$GERRIT_BRANCH
1933               GERRIT_PROJECT=$GERRIT_PROJECT
1934               GERRIT_REFSPEC=$GERRIT_REFSPEC
1935               KARAF_VERSION=$KARAF_VERSION
1936
1937     publishers:
1938       - email-notification:
1939           email-recipients: "{email-recipients}"
1940           email-prefix: "[{project}]"
1941       - lf-infra-publish
1942
1943 # Template: {project}-patch-test-{stream}
1944 # Goal: Build a patch and run project specific system test on a distribution containing the change
1945 # Operation: This job template builds a patch, creates a distribution containing the patch, and
1946 # triggers the project system test defined in {csit-list} when gerrit receives test-{project} keyword
1947
1948 - job-template:
1949     name: "{prefix}{project}-patch-test-{feature}-{stream}"
1950     id: inttest-patch-test
1951     <<: *inttest_csit_common
1952
1953     build-timeout: 720
1954
1955     parameters:
1956       - opendaylight-infra-parameters:
1957           os-cloud: "{os-cloud}"
1958           project: "{project}"
1959           branch: "{branch}"
1960           refspec: "refs/heads/{branch}"
1961           artifacts: "{archive-artifacts}"
1962       - integration-distribution-branch:
1963           branch: "{branch}"
1964       - distribution-karaf-version:
1965           karaf-version: "{karaf-version}"
1966       - integration-distribution-git-url:
1967           git-url: "{git-url}"
1968       - string:
1969           name: feature
1970           default: "all"
1971           description: "Specific feature test for patch"
1972       - maven-exec:
1973           maven-version: "{mvn-version}"
1974
1975     scm:
1976       - integration-gerrit-scm:
1977           basedir: "{project}"
1978           refspec: "$GERRIT_REFSPEC"
1979           branch: "{branch}"
1980       - integration-distribution-scm:
1981           branch: "{branch}"
1982
1983     triggers:
1984       - gerrit:
1985           server-name: "{gerrit-server-name}"
1986           trigger-on:
1987             - comment-added-contains-event:
1988                 comment-contains-value: "test-{project}-all"
1989             - comment-added-contains-event:
1990                 comment-contains-value: "test-{project}-{feature}"
1991           projects:
1992             - project-compare-type: "ANT"
1993               project-pattern: "{project}"
1994               branches:
1995                 - branch-compare-type: "ANT"
1996                   branch-pattern: "**/{branch}"
1997           skip-vote:
1998             successful: true
1999             failed: true
2000             unstable: true
2001             notbuilt: true
2002
2003     builders:
2004       - integration-rebase-gerrit-patch
2005       - wipe-org-opendaylight-repo
2006       - lf-update-java-alternatives:
2007           java-version: "{java-version}"
2008       - maven-target:
2009           maven-version: "{mvn-version}"
2010           pom: "{project}/pom.xml"
2011           goals: |
2012             clean install dependency:tree
2013             -Pq
2014             -Dgitid.skip=false
2015             -Dmaven.gitcommitid.skip=false
2016             -DgenerateReports=false
2017             -Dstream={stream}
2018             {opendaylight-infra-mvn-opts}
2019           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
2020           java-opts:
2021             - "-Xmx4096m -Dmaven.compile.fork=true"
2022           settings: integration-settings
2023           settings-type: cfp
2024           global-settings: global-settings
2025           global-settings-type: cfp
2026       - maven-target:
2027           maven-version: "{mvn-version}"
2028           pom: distribution/pom.xml
2029           goals: |
2030             clean install dependency:tree
2031             -Pq
2032             -Dgitid.skip=false
2033             -Dmaven.gitcommitid.skip=false
2034             {opendaylight-infra-mvn-opts}
2035           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
2036           java-opts:
2037             - "-Xmx1024m -Dmaven.compile.fork=true"
2038           settings: integration-settings
2039           settings-type: cfp
2040           global-settings: global-settings
2041           global-settings-type: cfp
2042       - integration-upload-distribution:
2043           dist-pom: distribution/pom.xml
2044           settings-project: integration
2045       - trigger-builds:
2046           - project: "{csit-list}"
2047             block: true
2048             predefined-parameters: |
2049               BUNDLE_URL=$BUNDLE_URL
2050               GERRIT_BRANCH=$GERRIT_BRANCH
2051               GERRIT_PROJECT=$GERRIT_PROJECT
2052               GERRIT_REFSPEC=$GERRIT_REFSPEC
2053               KARAF_VERSION=$KARAF_VERSION
2054
2055     publishers:
2056       - email-notification:
2057           email-recipients: "{email-recipients}"
2058           email-prefix: "[{project}]"
2059       - lf-infra-publish