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