3acb7f6c7b5bfa7aad2470ffe2d8b21cdc370776
[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-verify-1node-{functionality}
9 # {project}-csit-verify-3node-{functionality}
10 # {project}-patch-test-{feature}-{stream}
11 #
12 # Parameters:
13 # FIXME: Distinguish variables, macros and arguments, then update.
14 #
15 # opendaylight-infra-parameters: main project integration/test ($PROJECT)
16 # jre: (openjdk7 or openjdk8) Java runtime environment to use when launching ODL
17 # integration-distribution-branch: distribution branch ($DISTROBRANCH)
18 # integration-controller-bundle-url: distribution URL ($BUNDLE_URL)
19 # integration-controller-scope: only or all features ($CONTROLLERSCOPE)
20 # integration-controller-features: features under test ($CONTROLLER FEATURES)
21 # integration-test-options: robot options ($TESTOPTIONS)
22 # integration-stream-test-plan: stream specific robot test plan ($STREAMTESTPLAN)
23 # integration-test-plan: fallback robot test plan ($TESTPLAN)
24 # integration-patch-refspec: test branch ($PATCHREFSPEC)
25 # integration-use-features-boot: bool to toggle use of featuresBoot ($USEFEATURESBOOT)
26
27 ###########
28 # Anchors #
29 ###########
30
31 - inttest_csit_common: &inttest_csit_common
32     name: inttest-csit-common
33     # Defines common configuration to all CSIT jobs
34
35     #####################
36     # Default variables #
37     #####################
38
39     build-days-to-keep: 30
40     build-timeout: 360 # Time in minutes
41     disable-job: false
42
43     #####################
44     # Job configuration #
45     #####################
46
47     project-type: freestyle
48     node: centos8-robot-2c-8g
49     concurrent: true
50     disabled: "{disable-job}"
51
52     properties:
53       - opendaylight-infra-properties:
54           build-days-to-keep: "{build-days-to-keep}"
55
56     wrappers:
57       - opendaylight-infra-wrappers:
58           build-timeout: "{build-timeout}"
59
60 #################
61 # Job Templates #
62 #################
63
64 - job-template:
65     name: "{prefix}{project}-csit-verify-1node-{functionality}"
66     id: inttest-csit-verify-1node
67     <<: *inttest_csit_common
68
69     #####################
70     # Default variables #
71     #####################
72
73     openstack-cloud: vex
74     openstack-heat-template: csit-2-instance-type.yaml
75     openstack-heat-template-dir: openstack-hot
76
77     #####################
78     # Job configuration #
79     #####################
80
81     parameters:
82       - integration-csit-parameters:
83           archive-artifacts: "{archive-artifacts}"
84           branch: "{branch}"
85           os-cloud: "{os-cloud}"
86           # CSIT
87           bundle-url: "{bundle-url}"
88           repo-url: "{repo-url}"
89           robot-options: "{robot-options}"
90           # Controller
91           controller-scope: only
92           controller-max-mem: "{controller-max-mem}"
93           debug-map: "{debug-map}"
94           install-features: "{install-features}"
95           use-features-boot: "True"
96           elasticsearch-attribute: "{elasticsearch-attribute}"
97           karaf-based-controller: "{karaf-based-controller}"
98           karaf-version: "{karaf-version}"
99       - integration-stack-2-type:
100           vm_0_count: "1"
101           vm_0_flavor: "{odl_system_flavor}"
102           vm_0_image: "{odl_system_image}"
103           vm_1_count: "{tools_system_count}"
104           vm_1_flavor: "{tools_system_flavor}"
105           vm_1_image: "{tools_system_image}"
106       - integration-distribution-branch:
107           branch: "{verify-branch}"
108       - integration-distribution-stream:
109           stream: "{verify-stream}"
110       - integration-script-plan:
111           script-plan: "{project}.txt"
112       - integration-config-plan:
113           config-plan: "{project}.txt"
114       - integration-stream-test-plan:
115           stream-test-plan: "{project}-{functionality}-{verify-stream}.txt"
116       - integration-test-plan:
117           test-plan: "{project}-{functionality}.txt"
118       - integration-jdk-version:
119           jdkversion: "{verify-jdkversion}"
120
121     scm:
122       - integration-gerrit-scm:
123           basedir: "test"
124           refspec: "$GERRIT_REFSPEC"
125           branch: "master"
126
127     triggers:
128       - integration-trigger-patch-submitted:
129           gerrit-server-name: "{gerrit-server-name}"
130           project: "integration/test"
131           branch: "master"
132           files: "csit/suites/{project}/**"
133
134     builders:
135       - lf-infra-pre-build
136       - integration-stack-2-type:
137           openstack-cloud: "{openstack-cloud}"
138           openstack-heat-template: "{openstack-heat-template}"
139           openstack-heat-template-dir: "{openstack-heat-template-dir}"
140       - integration-install-robotframework
141       - inject:
142           properties-file: "env.properties"
143       - integration-get-slave-addresses
144       - inject:
145           properties-file: "slave_addresses.txt"
146       - integration-detect-variables
147       - integration-install-common-functions
148       - integration-deploy-controller-run-test
149       - integration-cleanup-tmp
150
151     publishers:
152       - email-notification:
153           email-recipients: "{email-recipients}"
154           email-prefix: "[{project}]"
155       - integration-csit-publish:
156           robot_other_files: ""
157           robot-pass-threshold: 100.0
158           robot-unstable-threshold: 0.0
159       - lf-stack-delete:
160           openstack-cloud: "{openstack-cloud}"
161       - lf-infra-publish
162
163 ######################
164 # inttest-csit-1node #
165 ######################
166
167 - inttest_csit_1node: &inttest_csit_1node
168     name: inttest-csit-1node
169
170     #####################
171     # Default variables #
172     #####################
173
174     openstack-cloud: vex
175     openstack-heat-template: csit-2-instance-type.yaml
176     openstack-heat-template-dir: openstack-hot
177
178     #####################
179     # Job configuration #
180     #####################
181
182     parameters:
183       - integration-csit-parameters:
184           archive-artifacts: "{archive-artifacts}"
185           branch: "{branch}"
186           os-cloud: "{os-cloud}"
187           # CSIT
188           bundle-url: "{bundle-url}"
189           repo-url: "{repo-url}"
190           robot-options: "{robot-options}"
191           # Controller
192           controller-scope: "{install}"
193           controller-max-mem: "{controller-max-mem}"
194           debug-map: "{debug-map}"
195           install-features: "{install-features}"
196           use-features-boot: "True"
197           elasticsearch-attribute: "{elasticsearch-attribute}"
198           karaf-based-controller: "{karaf-based-controller}"
199           karaf-version: "{karaf-version}"
200       - integration-stack-2-type:
201           vm_0_count: "1"
202           vm_0_flavor: "{odl_system_flavor}"
203           vm_0_image: "{odl_system_image}"
204           vm_1_count: "{tools_system_count}"
205           vm_1_flavor: "{tools_system_flavor}"
206           vm_1_image: "{tools_system_image}"
207       - integration-distribution-branch:
208           branch: "{branch}"
209       - integration-distribution-stream:
210           stream: "{stream}"
211       - integration-script-plan:
212           script-plan: "{project}.txt"
213       - integration-config-plan:
214           config-plan: "{project}.txt"
215       - integration-stream-test-plan:
216           stream-test-plan: "{project}-{functionality}-{stream}.txt"
217       - integration-test-plan:
218           test-plan: "{project}-{functionality}.txt"
219       - integration-test-suites:
220           test-suites: "{test-suites}"
221       - integration-patch-refspec:
222           branch: "master"
223       - integration-jdk-version:
224           jdkversion: "{jre}"
225
226     scm:
227       - integration-gerrit-scm:
228           basedir: "test"
229           refspec: "$PATCHREFSPEC"
230           branch: "master"
231
232     triggers:
233       # we need this for not SR projects
234       - integration-csit-trigger:
235           jobs: "{trigger-jobs}"
236
237     builders:
238       - lf-infra-pre-build
239       - integration-stack-2-type:
240           openstack-cloud: "{openstack-cloud}"
241           openstack-heat-template: "{openstack-heat-template}"
242           openstack-heat-template-dir: "{openstack-heat-template-dir}"
243       - integration-install-robotframework
244       - inject:
245           properties-file: "env.properties"
246       - integration-get-slave-addresses
247       - inject:
248           properties-file: "slave_addresses.txt"
249       - integration-detect-variables
250       - integration-install-common-functions
251       - integration-deploy-controller-run-test
252       - integration-run-test
253       - integration-cleanup-tmp
254
255     publishers:
256       - email-notification:
257           email-recipients: "{email-recipients}"
258           email-prefix: "[{project}]"
259       - plot:
260           - title: "{01-plot-title}"
261             yaxis: "{01-plot-yaxis}"
262             group: "{01-plot-group}"
263             num-builds: "180"
264             keep-records: true
265             style: line
266             use-description: false
267             # yamllint disable-line rule:line-length
268             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv"
269             series:
270               - file: "{01-plot-data-file}"
271                 inclusion-flag: "off"
272                 display-table: true
273                 format: csv
274           - title: "{02-plot-title}"
275             yaxis: "{02-plot-yaxis}"
276             group: "{02-plot-group}"
277             num-builds: "180"
278             keep-records: true
279             style: line
280             use-description: false
281             # yamllint disable-line rule:line-length
282             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv"
283             series:
284               - file: "{02-plot-data-file}"
285                 inclusion-flag: "off"
286                 display-table: true
287                 format: csv
288           - title: "{03-plot-title}"
289             yaxis: "{03-plot-yaxis}"
290             group: "{03-plot-group}"
291             num-builds: "180"
292             keep-records: true
293             style: line
294             use-description: false
295             # yamllint disable-line rule:line-length
296             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv"
297             series:
298               - file: "{03-plot-data-file}"
299                 inclusion-flag: "{03-inclusion-flag}"
300                 exclude: "{03-exclude-value}"
301                 format: csv
302           - title: "{04-plot-title}"
303             yaxis: "{04-plot-yaxis}"
304             group: "{04-plot-group}"
305             num-builds: "180"
306             keep-records: true
307             style: line
308             use-description: false
309             # yamllint disable-line rule:line-length
310             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv"
311             series:
312               - file: "{04-plot-data-file}"
313                 inclusion-flag: "{04-inclusion-flag}"
314                 exclude: "{04-exclude-value}"
315                 format: csv
316           - title: "{05-plot-title}"
317             yaxis: "{05-plot-yaxis}"
318             group: "{05-plot-group}"
319             num-builds: "180"
320             keep-records: true
321             style: line
322             use-description: false
323             # yamllint disable-line rule:line-length
324             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv"
325             series:
326               - file: "{05-plot-data-file}"
327                 inclusion-flag: "{05-inclusion-flag}"
328                 exclude: "{05-exclude-value}"
329                 format: csv
330           - title: "{06-plot-title}"
331             yaxis: "{06-plot-yaxis}"
332             group: "{06-plot-group}"
333             num-builds: "180"
334             keep-records: true
335             style: line
336             use-description: false
337             # yamllint disable-line rule:line-length
338             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv"
339             series:
340               - file: "{06-plot-data-file}"
341                 inclusion-flag: "{06-inclusion-flag}"
342                 exclude: "{06-exclude-value}"
343                 format: csv
344           - title: "{07-plot-title}"
345             yaxis: "{07-plot-yaxis}"
346             group: "{07-plot-group}"
347             num-builds: "180"
348             keep-records: true
349             style: line
350             use-description: false
351             # yamllint disable-line rule:line-length
352             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv"
353             series:
354               - file: "{07-plot-data-file}"
355                 inclusion-flag: "{07-inclusion-flag}"
356                 exclude: "{07-exclude-value}"
357                 format: csv
358           - title: "{08-plot-title}"
359             yaxis: "{08-plot-yaxis}"
360             group: "{08-plot-group}"
361             num-builds: "180"
362             keep-records: true
363             style: line
364             use-description: false
365             # yamllint disable-line rule:line-length
366             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv"
367             series:
368               - file: "{08-plot-data-file}"
369                 inclusion-flag: "{08-inclusion-flag}"
370                 exclude: "{08-exclude-value}"
371                 format: csv
372           - title: "{09-plot-title}"
373             yaxis: "{09-plot-yaxis}"
374             group: "{09-plot-group}"
375             num-builds: "180"
376             keep-records: true
377             style: line
378             use-description: false
379             # yamllint disable-line rule:line-length
380             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv"
381             series:
382               - file: "{09-plot-data-file}"
383                 inclusion-flag: "{09-inclusion-flag}"
384                 exclude: "{09-exclude-value}"
385                 format: csv
386           - title: "{10-plot-title}"
387             yaxis: "{10-plot-yaxis}"
388             group: "{10-plot-group}"
389             num-builds: "180"
390             keep-records: true
391             style: line
392             use-description: false
393             # yamllint disable-line rule:line-length
394             csv-file-name: "{project}-csit-1node-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv"
395             series:
396               - file: "{10-plot-data-file}"
397                 inclusion-flag: "{10-inclusion-flag}"
398                 exclude: "{10-exclude-value}"
399                 format: csv
400       - integration-csit-publish:
401           robot_other_files: ""
402           robot-pass-threshold: 100.0
403           robot-unstable-threshold: 0.0
404       - lf-stack-delete:
405           openstack-cloud: "{openstack-cloud}"
406       - lf-infra-publish
407
408 - job-template:
409     name: "{prefix}{project}-csit-1node-{functionality}-{install}-{stream}"
410     id: inttest-csit-1node
411     <<: *inttest_csit_common
412     # yamllint disable-line rule:key-duplicates
413     <<: *inttest_csit_1node
414
415 - job-template:
416     name: "{prefix}{project}-csit-verify-3node-{functionality}"
417     id: inttest-csit-verify-3node
418     <<: *inttest_csit_common
419
420     #####################
421     # Default variables #
422     #####################
423
424     openstack-cloud: vex
425     openstack-heat-template: csit-2-instance-type.yaml
426     openstack-heat-template-dir: openstack-hot
427
428     #####################
429     # Job Configuration #
430     #####################
431
432     parameters:
433       - integration-csit-parameters:
434           archive-artifacts: "{archive-artifacts}"
435           branch: "{branch}"
436           os-cloud: "{os-cloud}"
437           # CSIT
438           bundle-url: "{bundle-url}"
439           repo-url: "{repo-url}"
440           robot-options: "{robot-options}"
441           # Controller
442           controller-scope: only
443           controller-max-mem: "{controller-max-mem}"
444           debug-map: "{debug-map}"
445           install-features: "odl-jolokia,{install-features}"
446           use-features-boot: "True"
447           elasticsearch-attribute: "{elasticsearch-attribute}"
448           karaf-based-controller: "{karaf-based-controller}"
449           karaf-version: "{karaf-version}"
450       - integration-stack-2-type:
451           vm_0_count: "3"
452           vm_0_flavor: "{odl_system_flavor}"
453           vm_0_image: "{odl_system_image}"
454           vm_1_count: "{tools_system_count}"
455           vm_1_flavor: "{tools_system_flavor}"
456           vm_1_image: "{tools_system_image}"
457       - integration-distribution-branch:
458           branch: "{verify-branch}"
459       - integration-distribution-stream:
460           stream: "{verify-stream}"
461       - integration-script-plan:
462           script-plan: "{project}.txt"
463       - integration-config-plan:
464           config-plan: "{project}.txt"
465       - integration-stream-test-plan:
466           stream-test-plan: "{project}-{functionality}-{verify-stream}.txt"
467       - integration-test-plan:
468           test-plan: "{project}-{functionality}.txt"
469       - integration-test-suites:
470           test-suites: "{test-suites}"
471       - integration-jdk-version:
472           jdkversion: "{verify-jdkversion}"
473
474     scm:
475       - integration-gerrit-scm:
476           basedir: "test"
477           refspec: "$GERRIT_REFSPEC"
478           branch: "master"
479
480     triggers:
481       - integration-trigger-patch-submitted:
482           gerrit-server-name: "{gerrit-server-name}"
483           project: "integration/test"
484           branch: "master"
485           files: "csit/suites/{project}/**"
486
487     builders:
488       - lf-infra-pre-build
489       - integration-stack-2-type:
490           openstack-cloud: "{openstack-cloud}"
491           openstack-heat-template: "{openstack-heat-template}"
492           openstack-heat-template-dir: "{openstack-heat-template-dir}"
493       - integration-install-robotframework
494       - inject:
495           properties-file: "env.properties"
496       - integration-get-slave-addresses
497       - inject:
498           properties-file: "slave_addresses.txt"
499       - integration-detect-variables
500       - integration-install-common-functions
501       - integration-configure-clustering
502       - integration-start-cluster-run-test
503       - integration-cleanup-tmp
504
505     publishers:
506       - email-notification:
507           email-recipients: "{email-recipients}"
508           email-prefix: "[{project}]"
509       - integration-csit-publish:
510           robot_other_files: ""
511           robot-pass-threshold: 100.0
512           robot-unstable-threshold: 0.0
513       - lf-stack-delete:
514           openstack-cloud: "{openstack-cloud}"
515       - lf-infra-publish
516
517 ######################
518 # inttest-csit-3node #
519 ######################
520
521 - inttest_csit_3node: &inttest_csit_3node
522     name: inttest-csit-3node
523
524     #####################
525     # Default variables #
526     #####################
527
528     openstack-cloud: vex
529     openstack-heat-template: csit-2-instance-type.yaml
530     openstack-heat-template-dir: openstack-hot
531
532     #####################
533     # Job configuration #
534     #####################
535
536     parameters:
537       - integration-csit-parameters:
538           archive-artifacts: "{archive-artifacts}"
539           branch: "{branch}"
540           os-cloud: "{os-cloud}"
541           # CSIT
542           bundle-url: "{bundle-url}"
543           repo-url: "{repo-url}"
544           robot-options: "{robot-options}"
545           # Controller
546           controller-scope: "{install}"
547           controller-max-mem: "{controller-max-mem}"
548           debug-map: "{debug-map}"
549           install-features: "odl-jolokia,{install-features}"
550           use-features-boot: "True"
551           elasticsearch-attribute: "{elasticsearch-attribute}"
552           karaf-based-controller: "{karaf-based-controller}"
553           karaf-version: "{karaf-version}"
554       - integration-stack-2-type:
555           vm_0_count: "3"
556           vm_0_flavor: "{odl_system_flavor}"
557           vm_0_image: "{odl_system_image}"
558           vm_1_count: "{tools_system_count}"
559           vm_1_flavor: "{tools_system_flavor}"
560           vm_1_image: "{tools_system_image}"
561       - integration-distribution-branch:
562           branch: "{branch}"
563       - integration-distribution-stream:
564           stream: "{stream}"
565       - integration-script-plan:
566           script-plan: "{project}.txt"
567       - integration-config-plan:
568           config-plan: "{project}.txt"
569       - integration-stream-test-plan:
570           stream-test-plan: "{project}-{functionality}-{stream}.txt"
571       - integration-test-plan:
572           test-plan: "{project}-{functionality}.txt"
573       - integration-test-suites:
574           test-suites: "{test-suites}"
575       - integration-patch-refspec:
576           branch: "master"
577       - integration-jdk-version:
578           jdkversion: "{jre}"
579
580     scm:
581       - integration-gerrit-scm:
582           basedir: "test"
583           refspec: "$PATCHREFSPEC"
584           branch: "master"
585
586     triggers:
587       # we need this for not SR projects
588       - integration-csit-trigger:
589           jobs: "{trigger-jobs}"
590
591     builders:
592       - lf-infra-pre-build
593       - integration-stack-2-type:
594           openstack-cloud: "{openstack-cloud}"
595           openstack-heat-template: "{openstack-heat-template}"
596           openstack-heat-template-dir: "{openstack-heat-template-dir}"
597       - integration-install-robotframework
598       - inject:
599           properties-file: "env.properties"
600       - integration-get-slave-addresses
601       - inject:
602           properties-file: "slave_addresses.txt"
603       - integration-detect-variables
604       - integration-install-common-functions
605       - integration-configure-clustering
606       - integration-start-cluster-run-test
607       - integration-cleanup-tmp
608
609     publishers:
610       - email-notification:
611           email-recipients: "{email-recipients}"
612           email-prefix: "[{project}]"
613       - plot:
614           - title: "{01-plot-title}"
615             yaxis: "{01-plot-yaxis}"
616             group: "{01-plot-group}"
617             num-builds: "180"
618             keep-records: true
619             style: line
620             use-description: false
621             # yamllint disable-line rule:line-length
622             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv"
623             series:
624               - file: "{01-plot-data-file}"
625                 inclusion-flag: "off"
626                 display-table: true
627                 format: csv
628           - title: "{02-plot-title}"
629             yaxis: "{02-plot-yaxis}"
630             group: "{02-plot-group}"
631             num-builds: "180"
632             keep-records: true
633             style: line
634             use-description: false
635             # yamllint disable-line rule:line-length
636             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv"
637             series:
638               - file: "{02-plot-data-file}"
639                 inclusion-flag: "off"
640                 display-table: true
641                 format: csv
642           - title: "{03-plot-title}"
643             yaxis: "{03-plot-yaxis}"
644             group: "{03-plot-group}"
645             num-builds: "180"
646             keep-records: true
647             style: line
648             use-description: false
649             # yamllint disable-line rule:line-length
650             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv"
651             series:
652               - file: "{03-plot-data-file}"
653                 inclusion-flag: "{03-inclusion-flag}"
654                 exclude: "{03-exclude-value}"
655                 format: csv
656           - title: "{04-plot-title}"
657             yaxis: "{04-plot-yaxis}"
658             group: "{04-plot-group}"
659             num-builds: "180"
660             keep-records: true
661             style: line
662             use-description: false
663             # yamllint disable-line rule:line-length
664             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv"
665             series:
666               - file: "{04-plot-data-file}"
667                 inclusion-flag: "{04-inclusion-flag}"
668                 exclude: "{04-exclude-value}"
669                 format: csv
670           - title: "{05-plot-title}"
671             yaxis: "{05-plot-yaxis}"
672             group: "{05-plot-group}"
673             num-builds: "180"
674             keep-records: true
675             style: line
676             use-description: false
677             # yamllint disable-line rule:line-length
678             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv"
679             series:
680               - file: "{05-plot-data-file}"
681                 inclusion-flag: "{05-inclusion-flag}"
682                 exclude: "{05-exclude-value}"
683                 format: csv
684           - title: "{06-plot-title}"
685             yaxis: "{06-plot-yaxis}"
686             group: "{06-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}-{06-plot-data-file}-06-history.csv"
693             series:
694               - file: "{06-plot-data-file}"
695                 inclusion-flag: "{06-inclusion-flag}"
696                 exclude: "{06-exclude-value}"
697                 format: csv
698           - title: "{07-plot-title}"
699             yaxis: "{07-plot-yaxis}"
700             group: "{07-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}-{07-plot-data-file}-07-history.csv"
707             series:
708               - file: "{07-plot-data-file}"
709                 inclusion-flag: "{07-inclusion-flag}"
710                 exclude: "{07-exclude-value}"
711                 format: csv
712           - title: "{08-plot-title}"
713             yaxis: "{08-plot-yaxis}"
714             group: "{08-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}-{08-plot-data-file}-08-history.csv"
721             series:
722               - file: "{08-plot-data-file}"
723                 inclusion-flag: "{08-inclusion-flag}"
724                 exclude: "{08-exclude-value}"
725                 format: csv
726           - title: "{09-plot-title}"
727             yaxis: "{09-plot-yaxis}"
728             group: "{09-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}-{09-plot-data-file}-09-history.csv"
735             series:
736               - file: "{09-plot-data-file}"
737                 inclusion-flag: "{09-inclusion-flag}"
738                 exclude: "{09-exclude-value}"
739                 format: csv
740           - title: "{10-plot-title}"
741             yaxis: "{10-plot-yaxis}"
742             group: "{10-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}-{10-plot-data-file}-10-history.csv"
749             series:
750               - file: "{10-plot-data-file}"
751                 inclusion-flag: "{10-inclusion-flag}"
752                 exclude: "{10-exclude-value}"
753                 format: csv
754       - integration-csit-publish:
755           robot_other_files: ""
756           robot-pass-threshold: 100.0
757           robot-unstable-threshold: 0.0
758       - lf-stack-delete:
759           openstack-cloud: "{openstack-cloud}"
760       - lf-infra-publish
761
762 - job-template:
763     name: "{prefix}{project}-csit-3node-{functionality}-{install}-{stream}"
764     id: inttest-csit-3node
765     <<: *inttest_csit_common
766     # yamllint disable-line rule:key-duplicates
767     <<: *inttest_csit_3node
768
769 - job-template:
770     name: "{prefix}{project}-csit-3node-{functionality}-{install}-{stream}"
771     id: inttest-csit-3node-custom
772     <<: *inttest_csit_common
773     # yamllint disable-line rule:key-duplicates
774     <<: *inttest_csit_3node
775
776     parameters:
777       - integration-csit-parameters:
778           archive-artifacts: "{archive-artifacts}"
779           branch: "{branch}"
780           os-cloud: "{os-cloud}"
781           # CSIT
782           bundle-url: "{bundle-url}"
783           repo-url: "{repo-url}"
784           robot-options: "{robot-options}"
785           # Controller
786           controller-scope: "{install}"
787           controller-max-mem: "{controller-max-mem}"
788           debug-map: "{debug-map}"
789           install-features: "odl-jolokia,{install-features}"
790           use-features-boot: "True"
791           elasticsearch-attribute: "{elasticsearch-attribute}"
792           karaf-based-controller: "{karaf-based-controller}"
793           karaf-version: "{karaf-version}"
794       - integration-stack-2-type:
795           vm_0_count: "3"
796           vm_0_flavor: "{odl_system_flavor}"
797           vm_0_image: "{odl_system_image}"
798           vm_1_count: "{tools_system_count}"
799           vm_1_flavor: "{tools_system_flavor}"
800           vm_1_image: "{tools_system_image}"
801       - integration-distribution-branch:
802           branch: "{branch}"
803       - integration-distribution-stream:
804           stream: "{stream}"
805       - integration-script-plan:
806           script-plan: "{project}.txt"
807       - integration-config-plan:
808           config-plan: "{project}.txt"
809       - integration-stream-test-plan:
810           stream-test-plan: "{project}-{functionality}-{stream}.txt"
811       - integration-test-plan:
812           test-plan: "{testplan}"
813       - integration-test-suites:
814           test-suites: "{test-suites}"
815       - integration-patch-refspec:
816           branch: "master"
817       - integration-jdk-version:
818           jdkversion: "{jre}"
819
820 - job-template:
821     name: "{prefix}{project}-csit-3node-docker-{functionality}-{install}-{stream}"
822     id: inttest-csit-3node-docker
823     <<: *inttest_csit_common
824
825     #####################
826     # Default variables #
827     #####################
828
829     openstack-cloud: vex
830     openstack-heat-template: csit-2-instance-type.yaml
831     openstack-heat-template-dir: openstack-hot
832
833     docker_system_count: "1"
834     docker_system_flavor: "v3-standard-2"
835     docker_system_image: "ZZCI - CentOS 7 - docker - x86_64 - 20221101-220103.978"
836
837     #####################
838     # Job Configuration #
839     #####################
840
841     parameters:
842       - integration-csit-parameters:
843           archive-artifacts: "{archive-artifacts}"
844           branch: "{branch}"
845           os-cloud: "{os-cloud}"
846           # CSIT
847           bundle-url: "{bundle-url}"
848           repo-url: "{repo-url}"
849           robot-options: "{robot-options}"
850           # Controller
851           controller-scope: "{install}"
852           controller-max-mem: "{controller-max-mem}"
853           debug-map: "{debug-map}"
854           install-features: "odl-jolokia,{install-features}"
855           use-features-boot: "True"
856           elasticsearch-attribute: "{elasticsearch-attribute}"
857           karaf-based-controller: "{karaf-based-controller}"
858           karaf-version: "{karaf-version}"
859       - integration-stack-2-type:
860           vm_0_count: "3"
861           vm_0_flavor: "{odl_system_flavor}"
862           vm_0_image: "{odl_system_image}"
863           vm_1_count: "{docker_system_count}"
864           vm_1_flavor: "{docker_system_flavor}"
865           vm_1_image: "{docker_system_image}"
866       - integration-distribution-branch:
867           branch: "{branch}"
868       - integration-distribution-stream:
869           stream: "{stream}"
870       - integration-script-plan:
871           script-plan: "{project}.txt"
872       - integration-config-plan:
873           config-plan: "{project}.txt"
874       - integration-stream-test-plan:
875           stream-test-plan: "{project}-{functionality}-{stream}.txt"
876       - integration-test-plan:
877           test-plan: "{project}-{functionality}.txt"
878       - integration-patch-refspec:
879           branch: "master"
880       - integration-jdk-version:
881           jdkversion: "{jre}"
882
883     scm:
884       - integration-gerrit-scm:
885           basedir: "test"
886           refspec: "$PATCHREFSPEC"
887           branch: "master"
888
889     builders:
890       - lf-infra-pre-build
891       - integration-stack-2-type:
892           openstack-cloud: "{openstack-cloud}"
893           openstack-heat-template: "{openstack-heat-template}"
894           openstack-heat-template-dir: "{openstack-heat-template-dir}"
895       - integration-install-robotframework
896       - inject:
897           properties-file: "env.properties"
898       - integration-get-slave-addresses
899       - inject:
900           properties-file: "slave_addresses.txt"
901       - integration-detect-variables
902       - integration-install-common-functions
903       - integration-configure-clustering
904       - integration-start-cluster-run-test
905       - integration-cleanup-tmp
906
907     publishers:
908       - email-notification:
909           email-recipients: "{email-recipients}"
910           email-prefix: "[{project}]"
911       - plot:
912           - title: "{01-plot-title}"
913             yaxis: "{01-plot-yaxis}"
914             group: "{01-plot-group}"
915             num-builds: "5400"
916             keep-records: true
917             style: line
918             use-description: false
919             # yamllint disable-line rule:line-length
920             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv"
921             series:
922               - file: "{01-plot-data-file}"
923                 inclusion-flag: "off"
924                 display-table: true
925                 format: csv
926           - title: "{02-plot-title}"
927             yaxis: "{02-plot-yaxis}"
928             group: "{02-plot-group}"
929             num-builds: "5400"
930             keep-records: true
931             style: line
932             use-description: false
933             # yamllint disable-line rule:line-length
934             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv"
935             series:
936               - file: "{02-plot-data-file}"
937                 inclusion-flag: "off"
938                 display-table: true
939                 format: csv
940       - integration-csit-publish:
941           robot_other_files: ""
942           robot-pass-threshold: 100.0
943           robot-unstable-threshold: 0.0
944       - lf-stack-delete:
945           openstack-cloud: "{openstack-cloud}"
946       - lf-infra-publish
947
948 # Template: {project}-mri-patch-test-{stream}
949 # Goal: Build a patch and run project specific system test on a mri projects distribution containing the change
950 # Operation: This job template builds a patch, uses the projects distribution and triggers the project system
951 # test defined in {csit-list} when gerrit receives test-{project} keyword
952
953 - job-template:
954     name: "{prefix}{project}-mri-patch-test-{feature}-{stream}"
955     id: inttest-mri-patch-test
956     <<: *inttest_csit_common
957
958     build-timeout: 720
959
960     parameters:
961       - opendaylight-infra-parameters:
962           os-cloud: "{os-cloud}"
963           project: "{project}"
964           branch: "{branch}"
965           refspec: "refs/heads/{branch}"
966           artifacts: "{archive-artifacts}"
967       - integration-distribution-branch:
968           branch: "{branch}"
969       - distribution-karaf-version:
970           karaf-version: "{karaf-version}"
971       - integration-distribution-git-url:
972           git-url: "{git-url}"
973       - string:
974           name: feature
975           default: "all"
976           description: "Specific feature test for patch"
977       - maven-exec:
978           maven-version: "{mvn-version}"
979
980     scm:
981       - integration-gerrit-scm:
982           basedir: "{project}"
983           refspec: "$GERRIT_REFSPEC"
984           branch: "{branch}"
985       - integration-distribution-scm:
986           branch: "{branch}"
987
988     triggers:
989       - gerrit:
990           server-name: "{gerrit-server-name}"
991           trigger-on:
992             - comment-added-contains-event:
993                 comment-contains-value: "test-{project}-all"
994             - comment-added-contains-event:
995                 comment-contains-value: "test-{project}-{feature}"
996           projects:
997             - project-compare-type: "ANT"
998               project-pattern: "{project}"
999               branches:
1000                 - branch-compare-type: "ANT"
1001                   branch-pattern: "**/{branch}"
1002           skip-vote:
1003             successful: true
1004             failed: true
1005             unstable: true
1006             notbuilt: true
1007
1008     builders:
1009       - integration-rebase-gerrit-patch
1010       - wipe-org-opendaylight-repo
1011       - lf-update-java-alternatives:
1012           java-version: "{java-version}"
1013       - maven-target:
1014           maven-version: "{mvn-version}"
1015           pom: "{project}/pom.xml"
1016           goals: |
1017             clean install dependency:tree
1018             -Pq
1019             -Dgitid.skip=false
1020             -Dmaven.gitcommitid.skip=false
1021             -DgenerateReports=false
1022             -Dstream={stream}
1023             {opendaylight-infra-mvn-opts}
1024           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1025           java-opts:
1026             - "-Xmx4096m -Dmaven.compile.fork=true"
1027           settings: integration-settings
1028           settings-type: cfp
1029           global-settings: global-settings
1030           global-settings-type: cfp
1031       - integration-upload-distribution:
1032           dist-pom: "{project}/pom.xml"
1033           settings-project: "{project}"
1034       - trigger-builds:
1035           - project: "{csit-list}"
1036             block: true
1037             predefined-parameters: |
1038               BUNDLE_URL=$BUNDLE_URL
1039               GERRIT_BRANCH=$GERRIT_BRANCH
1040               GERRIT_PROJECT=$GERRIT_PROJECT
1041               GERRIT_REFSPEC=$GERRIT_REFSPEC
1042               KARAF_VERSION=$KARAF_VERSION
1043
1044     publishers:
1045       - email-notification:
1046           email-recipients: "{email-recipients}"
1047           email-prefix: "[{project}]"
1048       - lf-infra-publish
1049
1050 # Template: {project}-patch-test-{stream}
1051 # Goal: Build a patch and run project specific system test on a distribution containing the change
1052 # Operation: This job template builds a patch, creates a distribution containing the patch, and
1053 # triggers the project system test defined in {csit-list} when gerrit receives test-{project} keyword
1054
1055 - job-template:
1056     name: "{prefix}{project}-patch-test-{feature}-{stream}"
1057     id: inttest-patch-test
1058     <<: *inttest_csit_common
1059
1060     build-timeout: 720
1061
1062     parameters:
1063       - opendaylight-infra-parameters:
1064           os-cloud: "{os-cloud}"
1065           project: "{project}"
1066           branch: "{branch}"
1067           refspec: "refs/heads/{branch}"
1068           artifacts: "{archive-artifacts}"
1069       - integration-distribution-branch:
1070           branch: "{branch}"
1071       - distribution-karaf-version:
1072           karaf-version: "{karaf-version}"
1073       - integration-distribution-git-url:
1074           git-url: "{git-url}"
1075       - string:
1076           name: feature
1077           default: "all"
1078           description: "Specific feature test for patch"
1079       - maven-exec:
1080           maven-version: "{mvn-version}"
1081
1082     scm:
1083       - integration-gerrit-scm:
1084           basedir: "{project}"
1085           refspec: "$GERRIT_REFSPEC"
1086           branch: "{branch}"
1087       - integration-distribution-scm:
1088           branch: "{branch}"
1089
1090     triggers:
1091       - gerrit:
1092           server-name: "{gerrit-server-name}"
1093           trigger-on:
1094             - comment-added-contains-event:
1095                 comment-contains-value: "test-{project}-all"
1096             - comment-added-contains-event:
1097                 comment-contains-value: "test-{project}-{feature}"
1098           projects:
1099             - project-compare-type: "ANT"
1100               project-pattern: "{project}"
1101               branches:
1102                 - branch-compare-type: "ANT"
1103                   branch-pattern: "**/{branch}"
1104           skip-vote:
1105             successful: true
1106             failed: true
1107             unstable: true
1108             notbuilt: true
1109
1110     builders:
1111       - integration-rebase-gerrit-patch
1112       - wipe-org-opendaylight-repo
1113       - lf-update-java-alternatives:
1114           java-version: "{java-version}"
1115       - maven-target:
1116           maven-version: "{mvn-version}"
1117           pom: "{project}/pom.xml"
1118           goals: |
1119             clean install dependency:tree
1120             -Pq
1121             -Dgitid.skip=false
1122             -Dmaven.gitcommitid.skip=false
1123             -DgenerateReports=false
1124             -Dstream={stream}
1125             {opendaylight-infra-mvn-opts}
1126           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1127           java-opts:
1128             - "-Xmx4096m -Dmaven.compile.fork=true"
1129           settings: integration-settings
1130           settings-type: cfp
1131           global-settings: global-settings
1132           global-settings-type: cfp
1133       - maven-target:
1134           maven-version: "{mvn-version}"
1135           pom: distribution/pom.xml
1136           goals: |
1137             clean install dependency:tree
1138             -Pq
1139             -Dgitid.skip=false
1140             -Dmaven.gitcommitid.skip=false
1141             {opendaylight-infra-mvn-opts}
1142           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1143           java-opts:
1144             - "-Xmx1024m -Dmaven.compile.fork=true"
1145           settings: integration-settings
1146           settings-type: cfp
1147           global-settings: global-settings
1148           global-settings-type: cfp
1149       - integration-upload-distribution:
1150           dist-pom: distribution/pom.xml
1151           settings-project: integration
1152       - trigger-builds:
1153           - project: "{csit-list}"
1154             block: true
1155             predefined-parameters: |
1156               BUNDLE_URL=$BUNDLE_URL
1157               GERRIT_BRANCH=$GERRIT_BRANCH
1158               GERRIT_PROJECT=$GERRIT_PROJECT
1159               GERRIT_REFSPEC=$GERRIT_REFSPEC
1160               KARAF_VERSION=$KARAF_VERSION
1161
1162     publishers:
1163       - email-notification:
1164           email-recipients: "{email-recipients}"
1165           email-prefix: "[{project}]"
1166       - lf-infra-publish