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