Clean netvirt csit jobs
[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-1node-{functionality}-{install}-{stream}"
417     id: inttest-csit-1node-custom
418     <<: *inttest_csit_common
419     # yamllint disable-line rule:key-duplicates
420     <<: *inttest_csit_1node
421
422     parameters:
423       - integration-csit-parameters:
424           archive-artifacts: "{archive-artifacts}"
425           branch: "{branch}"
426           os-cloud: "{os-cloud}"
427           # CSIT
428           bundle-url: "{bundle-url}"
429           repo-url: "{repo-url}"
430           robot-options: "{robot-options}"
431           # Controller
432           controller-scope: "{install}"
433           controller-max-mem: "{controller-max-mem}"
434           debug-map: "{debug-map}"
435           install-features: "{install-features}"
436           use-features-boot: "True"
437           elasticsearch-attribute: "{elasticsearch-attribute}"
438           karaf-based-controller: "{karaf-based-controller}"
439           karaf-version: "{karaf-version}"
440       - integration-stack-2-type:
441           vm_0_count: "1"
442           vm_0_flavor: "{odl_system_flavor}"
443           vm_0_image: "{odl_system_image}"
444           vm_1_count: "{tools_system_count}"
445           vm_1_flavor: "{tools_system_flavor}"
446           vm_1_image: "{tools_system_image}"
447       - integration-distribution-branch:
448           branch: "{branch}"
449       - integration-distribution-stream:
450           stream: "{stream}"
451       - integration-script-plan:
452           script-plan: "{project}.txt"
453       - integration-config-plan:
454           config-plan: "{project}.txt"
455       - integration-stream-test-plan:
456           stream-test-plan: "{project}-{functionality}-{stream}.txt"
457       - integration-test-plan:
458           test-plan: "{testplan}"
459       - integration-test-suites:
460           test-suites: "{test-suites}"
461       - integration-patch-refspec:
462           branch: "master"
463       - integration-jdk-version:
464           jdkversion: "{jre}"
465
466 - job-template:
467     name: "{prefix}{project}-csit-verify-3node-{functionality}"
468     id: inttest-csit-verify-3node
469     <<: *inttest_csit_common
470
471     #####################
472     # Default variables #
473     #####################
474
475     openstack-cloud: vex
476     openstack-heat-template: csit-2-instance-type.yaml
477     openstack-heat-template-dir: openstack-hot
478
479     #####################
480     # Job Configuration #
481     #####################
482
483     parameters:
484       - integration-csit-parameters:
485           archive-artifacts: "{archive-artifacts}"
486           branch: "{branch}"
487           os-cloud: "{os-cloud}"
488           # CSIT
489           bundle-url: "{bundle-url}"
490           repo-url: "{repo-url}"
491           robot-options: "{robot-options}"
492           # Controller
493           controller-scope: only
494           controller-max-mem: "{controller-max-mem}"
495           debug-map: "{debug-map}"
496           install-features: "odl-jolokia,{install-features}"
497           use-features-boot: "True"
498           elasticsearch-attribute: "{elasticsearch-attribute}"
499           karaf-based-controller: "{karaf-based-controller}"
500           karaf-version: "{karaf-version}"
501       - integration-stack-2-type:
502           vm_0_count: "3"
503           vm_0_flavor: "{odl_system_flavor}"
504           vm_0_image: "{odl_system_image}"
505           vm_1_count: "{tools_system_count}"
506           vm_1_flavor: "{tools_system_flavor}"
507           vm_1_image: "{tools_system_image}"
508       - integration-distribution-branch:
509           branch: "{verify-branch}"
510       - integration-distribution-stream:
511           stream: "{verify-stream}"
512       - integration-script-plan:
513           script-plan: "{project}.txt"
514       - integration-config-plan:
515           config-plan: "{project}.txt"
516       - integration-stream-test-plan:
517           stream-test-plan: "{project}-{functionality}-{verify-stream}.txt"
518       - integration-test-plan:
519           test-plan: "{project}-{functionality}.txt"
520       - integration-test-suites:
521           test-suites: "{test-suites}"
522       - integration-jdk-version:
523           jdkversion: "{verify-jdkversion}"
524
525     scm:
526       - integration-gerrit-scm:
527           basedir: "test"
528           refspec: "$GERRIT_REFSPEC"
529           branch: "master"
530
531     triggers:
532       - integration-trigger-patch-submitted:
533           gerrit-server-name: "{gerrit-server-name}"
534           project: "integration/test"
535           branch: "master"
536           files: "csit/suites/{project}/**"
537
538     builders:
539       - lf-infra-pre-build
540       - integration-stack-2-type:
541           openstack-cloud: "{openstack-cloud}"
542           openstack-heat-template: "{openstack-heat-template}"
543           openstack-heat-template-dir: "{openstack-heat-template-dir}"
544       - integration-install-robotframework
545       - inject:
546           properties-file: "env.properties"
547       - integration-get-slave-addresses
548       - inject:
549           properties-file: "slave_addresses.txt"
550       - integration-detect-variables
551       - integration-install-common-functions
552       - integration-configure-clustering
553       - integration-start-cluster-run-test
554       - integration-cleanup-tmp
555
556     publishers:
557       - email-notification:
558           email-recipients: "{email-recipients}"
559           email-prefix: "[{project}]"
560       - integration-csit-publish:
561           robot_other_files: ""
562           robot-pass-threshold: 100.0
563           robot-unstable-threshold: 0.0
564       - lf-stack-delete:
565           openstack-cloud: "{openstack-cloud}"
566       - lf-infra-publish
567
568 ######################
569 # inttest-csit-3node #
570 ######################
571
572 - inttest_csit_3node: &inttest_csit_3node
573     name: inttest-csit-3node
574
575     #####################
576     # Default variables #
577     #####################
578
579     openstack-cloud: vex
580     openstack-heat-template: csit-2-instance-type.yaml
581     openstack-heat-template-dir: openstack-hot
582
583     #####################
584     # Job configuration #
585     #####################
586
587     parameters:
588       - integration-csit-parameters:
589           archive-artifacts: "{archive-artifacts}"
590           branch: "{branch}"
591           os-cloud: "{os-cloud}"
592           # CSIT
593           bundle-url: "{bundle-url}"
594           repo-url: "{repo-url}"
595           robot-options: "{robot-options}"
596           # Controller
597           controller-scope: "{install}"
598           controller-max-mem: "{controller-max-mem}"
599           debug-map: "{debug-map}"
600           install-features: "odl-jolokia,{install-features}"
601           use-features-boot: "True"
602           elasticsearch-attribute: "{elasticsearch-attribute}"
603           karaf-based-controller: "{karaf-based-controller}"
604           karaf-version: "{karaf-version}"
605       - integration-stack-2-type:
606           vm_0_count: "3"
607           vm_0_flavor: "{odl_system_flavor}"
608           vm_0_image: "{odl_system_image}"
609           vm_1_count: "{tools_system_count}"
610           vm_1_flavor: "{tools_system_flavor}"
611           vm_1_image: "{tools_system_image}"
612       - integration-distribution-branch:
613           branch: "{branch}"
614       - integration-distribution-stream:
615           stream: "{stream}"
616       - integration-script-plan:
617           script-plan: "{project}.txt"
618       - integration-config-plan:
619           config-plan: "{project}.txt"
620       - integration-stream-test-plan:
621           stream-test-plan: "{project}-{functionality}-{stream}.txt"
622       - integration-test-plan:
623           test-plan: "{project}-{functionality}.txt"
624       - integration-test-suites:
625           test-suites: "{test-suites}"
626       - integration-patch-refspec:
627           branch: "master"
628       - integration-jdk-version:
629           jdkversion: "{jre}"
630
631     scm:
632       - integration-gerrit-scm:
633           basedir: "test"
634           refspec: "$PATCHREFSPEC"
635           branch: "master"
636
637     triggers:
638       # we need this for not SR projects
639       - integration-csit-trigger:
640           jobs: "{trigger-jobs}"
641
642     builders:
643       - lf-infra-pre-build
644       - integration-stack-2-type:
645           openstack-cloud: "{openstack-cloud}"
646           openstack-heat-template: "{openstack-heat-template}"
647           openstack-heat-template-dir: "{openstack-heat-template-dir}"
648       - integration-install-robotframework
649       - inject:
650           properties-file: "env.properties"
651       - integration-get-slave-addresses
652       - inject:
653           properties-file: "slave_addresses.txt"
654       - integration-detect-variables
655       - integration-install-common-functions
656       - integration-configure-clustering
657       - integration-start-cluster-run-test
658       - integration-cleanup-tmp
659
660     publishers:
661       - email-notification:
662           email-recipients: "{email-recipients}"
663           email-prefix: "[{project}]"
664       - plot:
665           - title: "{01-plot-title}"
666             yaxis: "{01-plot-yaxis}"
667             group: "{01-plot-group}"
668             num-builds: "180"
669             keep-records: true
670             style: line
671             use-description: false
672             # yamllint disable-line rule:line-length
673             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv"
674             series:
675               - file: "{01-plot-data-file}"
676                 inclusion-flag: "off"
677                 display-table: true
678                 format: csv
679           - title: "{02-plot-title}"
680             yaxis: "{02-plot-yaxis}"
681             group: "{02-plot-group}"
682             num-builds: "180"
683             keep-records: true
684             style: line
685             use-description: false
686             # yamllint disable-line rule:line-length
687             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv"
688             series:
689               - file: "{02-plot-data-file}"
690                 inclusion-flag: "off"
691                 display-table: true
692                 format: csv
693           - title: "{03-plot-title}"
694             yaxis: "{03-plot-yaxis}"
695             group: "{03-plot-group}"
696             num-builds: "180"
697             keep-records: true
698             style: line
699             use-description: false
700             # yamllint disable-line rule:line-length
701             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv"
702             series:
703               - file: "{03-plot-data-file}"
704                 inclusion-flag: "{03-inclusion-flag}"
705                 exclude: "{03-exclude-value}"
706                 format: csv
707           - title: "{04-plot-title}"
708             yaxis: "{04-plot-yaxis}"
709             group: "{04-plot-group}"
710             num-builds: "180"
711             keep-records: true
712             style: line
713             use-description: false
714             # yamllint disable-line rule:line-length
715             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv"
716             series:
717               - file: "{04-plot-data-file}"
718                 inclusion-flag: "{04-inclusion-flag}"
719                 exclude: "{04-exclude-value}"
720                 format: csv
721           - title: "{05-plot-title}"
722             yaxis: "{05-plot-yaxis}"
723             group: "{05-plot-group}"
724             num-builds: "180"
725             keep-records: true
726             style: line
727             use-description: false
728             # yamllint disable-line rule:line-length
729             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv"
730             series:
731               - file: "{05-plot-data-file}"
732                 inclusion-flag: "{05-inclusion-flag}"
733                 exclude: "{05-exclude-value}"
734                 format: csv
735           - title: "{06-plot-title}"
736             yaxis: "{06-plot-yaxis}"
737             group: "{06-plot-group}"
738             num-builds: "180"
739             keep-records: true
740             style: line
741             use-description: false
742             # yamllint disable-line rule:line-length
743             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv"
744             series:
745               - file: "{06-plot-data-file}"
746                 inclusion-flag: "{06-inclusion-flag}"
747                 exclude: "{06-exclude-value}"
748                 format: csv
749           - title: "{07-plot-title}"
750             yaxis: "{07-plot-yaxis}"
751             group: "{07-plot-group}"
752             num-builds: "180"
753             keep-records: true
754             style: line
755             use-description: false
756             # yamllint disable-line rule:line-length
757             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv"
758             series:
759               - file: "{07-plot-data-file}"
760                 inclusion-flag: "{07-inclusion-flag}"
761                 exclude: "{07-exclude-value}"
762                 format: csv
763           - title: "{08-plot-title}"
764             yaxis: "{08-plot-yaxis}"
765             group: "{08-plot-group}"
766             num-builds: "180"
767             keep-records: true
768             style: line
769             use-description: false
770             # yamllint disable-line rule:line-length
771             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv"
772             series:
773               - file: "{08-plot-data-file}"
774                 inclusion-flag: "{08-inclusion-flag}"
775                 exclude: "{08-exclude-value}"
776                 format: csv
777           - title: "{09-plot-title}"
778             yaxis: "{09-plot-yaxis}"
779             group: "{09-plot-group}"
780             num-builds: "180"
781             keep-records: true
782             style: line
783             use-description: false
784             # yamllint disable-line rule:line-length
785             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv"
786             series:
787               - file: "{09-plot-data-file}"
788                 inclusion-flag: "{09-inclusion-flag}"
789                 exclude: "{09-exclude-value}"
790                 format: csv
791           - title: "{10-plot-title}"
792             yaxis: "{10-plot-yaxis}"
793             group: "{10-plot-group}"
794             num-builds: "180"
795             keep-records: true
796             style: line
797             use-description: false
798             # yamllint disable-line rule:line-length
799             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv"
800             series:
801               - file: "{10-plot-data-file}"
802                 inclusion-flag: "{10-inclusion-flag}"
803                 exclude: "{10-exclude-value}"
804                 format: csv
805       - integration-csit-publish:
806           robot_other_files: ""
807           robot-pass-threshold: 100.0
808           robot-unstable-threshold: 0.0
809       - lf-stack-delete:
810           openstack-cloud: "{openstack-cloud}"
811       - lf-infra-publish
812
813 - job-template:
814     name: "{prefix}{project}-csit-3node-{functionality}-{install}-{stream}"
815     id: inttest-csit-3node
816     <<: *inttest_csit_common
817     # yamllint disable-line rule:key-duplicates
818     <<: *inttest_csit_3node
819
820 - job-template:
821     name: "{prefix}{project}-csit-3node-{functionality}-{install}-{stream}"
822     id: inttest-csit-3node-custom
823     <<: *inttest_csit_common
824     # yamllint disable-line rule:key-duplicates
825     <<: *inttest_csit_3node
826
827     parameters:
828       - integration-csit-parameters:
829           archive-artifacts: "{archive-artifacts}"
830           branch: "{branch}"
831           os-cloud: "{os-cloud}"
832           # CSIT
833           bundle-url: "{bundle-url}"
834           repo-url: "{repo-url}"
835           robot-options: "{robot-options}"
836           # Controller
837           controller-scope: "{install}"
838           controller-max-mem: "{controller-max-mem}"
839           debug-map: "{debug-map}"
840           install-features: "odl-jolokia,{install-features}"
841           use-features-boot: "True"
842           elasticsearch-attribute: "{elasticsearch-attribute}"
843           karaf-based-controller: "{karaf-based-controller}"
844           karaf-version: "{karaf-version}"
845       - integration-stack-2-type:
846           vm_0_count: "3"
847           vm_0_flavor: "{odl_system_flavor}"
848           vm_0_image: "{odl_system_image}"
849           vm_1_count: "{tools_system_count}"
850           vm_1_flavor: "{tools_system_flavor}"
851           vm_1_image: "{tools_system_image}"
852       - integration-distribution-branch:
853           branch: "{branch}"
854       - integration-distribution-stream:
855           stream: "{stream}"
856       - integration-script-plan:
857           script-plan: "{project}.txt"
858       - integration-config-plan:
859           config-plan: "{project}.txt"
860       - integration-stream-test-plan:
861           stream-test-plan: "{project}-{functionality}-{stream}.txt"
862       - integration-test-plan:
863           test-plan: "{testplan}"
864       - integration-test-suites:
865           test-suites: "{test-suites}"
866       - integration-patch-refspec:
867           branch: "master"
868       - integration-jdk-version:
869           jdkversion: "{jre}"
870
871 - job-template:
872     name: "{prefix}{project}-csit-3node-docker-{functionality}-{install}-{stream}"
873     id: inttest-csit-3node-docker
874     <<: *inttest_csit_common
875
876     #####################
877     # Default variables #
878     #####################
879
880     openstack-cloud: vex
881     openstack-heat-template: csit-2-instance-type.yaml
882     openstack-heat-template-dir: openstack-hot
883
884     docker_system_count: "1"
885     docker_system_flavor: "v3-standard-2"
886     docker_system_image: "ZZCI - CentOS 7 - docker - x86_64 - 20220811-110637.413"
887
888     #####################
889     # Job Configuration #
890     #####################
891
892     parameters:
893       - integration-csit-parameters:
894           archive-artifacts: "{archive-artifacts}"
895           branch: "{branch}"
896           os-cloud: "{os-cloud}"
897           # CSIT
898           bundle-url: "{bundle-url}"
899           repo-url: "{repo-url}"
900           robot-options: "{robot-options}"
901           # Controller
902           controller-scope: "{install}"
903           controller-max-mem: "{controller-max-mem}"
904           debug-map: "{debug-map}"
905           install-features: "odl-jolokia,{install-features}"
906           use-features-boot: "True"
907           elasticsearch-attribute: "{elasticsearch-attribute}"
908           karaf-based-controller: "{karaf-based-controller}"
909           karaf-version: "{karaf-version}"
910       - integration-stack-2-type:
911           vm_0_count: "3"
912           vm_0_flavor: "{odl_system_flavor}"
913           vm_0_image: "{odl_system_image}"
914           vm_1_count: "{docker_system_count}"
915           vm_1_flavor: "{docker_system_flavor}"
916           vm_1_image: "{docker_system_image}"
917       - integration-distribution-branch:
918           branch: "{branch}"
919       - integration-distribution-stream:
920           stream: "{stream}"
921       - integration-script-plan:
922           script-plan: "{project}.txt"
923       - integration-config-plan:
924           config-plan: "{project}.txt"
925       - integration-stream-test-plan:
926           stream-test-plan: "{project}-{functionality}-{stream}.txt"
927       - integration-test-plan:
928           test-plan: "{project}-{functionality}.txt"
929       - integration-patch-refspec:
930           branch: "master"
931       - integration-jdk-version:
932           jdkversion: "{jre}"
933
934     scm:
935       - integration-gerrit-scm:
936           basedir: "test"
937           refspec: "$PATCHREFSPEC"
938           branch: "master"
939
940     builders:
941       - lf-infra-pre-build
942       - integration-stack-2-type:
943           openstack-cloud: "{openstack-cloud}"
944           openstack-heat-template: "{openstack-heat-template}"
945           openstack-heat-template-dir: "{openstack-heat-template-dir}"
946       - integration-install-robotframework
947       - inject:
948           properties-file: "env.properties"
949       - integration-get-slave-addresses
950       - inject:
951           properties-file: "slave_addresses.txt"
952       - integration-detect-variables
953       - integration-install-common-functions
954       - integration-configure-clustering
955       - integration-start-cluster-run-test
956       - integration-cleanup-tmp
957
958     publishers:
959       - email-notification:
960           email-recipients: "{email-recipients}"
961           email-prefix: "[{project}]"
962       - plot:
963           - title: "{01-plot-title}"
964             yaxis: "{01-plot-yaxis}"
965             group: "{01-plot-group}"
966             num-builds: "5400"
967             keep-records: true
968             style: line
969             use-description: false
970             # yamllint disable-line rule:line-length
971             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv"
972             series:
973               - file: "{01-plot-data-file}"
974                 inclusion-flag: "off"
975                 display-table: true
976                 format: csv
977           - title: "{02-plot-title}"
978             yaxis: "{02-plot-yaxis}"
979             group: "{02-plot-group}"
980             num-builds: "5400"
981             keep-records: true
982             style: line
983             use-description: false
984             # yamllint disable-line rule:line-length
985             csv-file-name: "{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv"
986             series:
987               - file: "{02-plot-data-file}"
988                 inclusion-flag: "off"
989                 display-table: true
990                 format: csv
991       - integration-csit-publish:
992           robot_other_files: ""
993           robot-pass-threshold: 100.0
994           robot-unstable-threshold: 0.0
995       - lf-stack-delete:
996           openstack-cloud: "{openstack-cloud}"
997       - lf-infra-publish
998
999 # Template: {project}-mri-patch-test-{stream}
1000 # Goal: Build a patch and run project specific system test on a mri projects distribution containing the change
1001 # Operation: This job template builds a patch, uses the projects distribution and triggers the project system
1002 # test defined in {csit-list} when gerrit receives test-{project} keyword
1003
1004 - job-template:
1005     name: "{prefix}{project}-mri-patch-test-{feature}-{stream}"
1006     id: inttest-mri-patch-test
1007     <<: *inttest_csit_common
1008
1009     build-timeout: 720
1010
1011     parameters:
1012       - opendaylight-infra-parameters:
1013           os-cloud: "{os-cloud}"
1014           project: "{project}"
1015           branch: "{branch}"
1016           refspec: "refs/heads/{branch}"
1017           artifacts: "{archive-artifacts}"
1018       - integration-distribution-branch:
1019           branch: "{branch}"
1020       - distribution-karaf-version:
1021           karaf-version: "{karaf-version}"
1022       - integration-distribution-git-url:
1023           git-url: "{git-url}"
1024       - string:
1025           name: feature
1026           default: "all"
1027           description: "Specific feature test for patch"
1028       - maven-exec:
1029           maven-version: "{mvn-version}"
1030
1031     scm:
1032       - integration-gerrit-scm:
1033           basedir: "{project}"
1034           refspec: "$GERRIT_REFSPEC"
1035           branch: "{branch}"
1036       - integration-distribution-scm:
1037           branch: "{branch}"
1038
1039     triggers:
1040       - gerrit:
1041           server-name: "{gerrit-server-name}"
1042           trigger-on:
1043             - comment-added-contains-event:
1044                 comment-contains-value: "test-{project}-all"
1045             - comment-added-contains-event:
1046                 comment-contains-value: "test-{project}-{feature}"
1047           projects:
1048             - project-compare-type: "ANT"
1049               project-pattern: "{project}"
1050               branches:
1051                 - branch-compare-type: "ANT"
1052                   branch-pattern: "**/{branch}"
1053           skip-vote:
1054             successful: true
1055             failed: true
1056             unstable: true
1057             notbuilt: true
1058
1059     builders:
1060       - integration-rebase-gerrit-patch
1061       - wipe-org-opendaylight-repo
1062       - lf-update-java-alternatives:
1063           java-version: "{java-version}"
1064       - maven-target:
1065           maven-version: "{mvn-version}"
1066           pom: "{project}/pom.xml"
1067           goals: |
1068             clean install dependency:tree
1069             -Pq
1070             -Dgitid.skip=false
1071             -Dmaven.gitcommitid.skip=false
1072             -DgenerateReports=false
1073             -Dstream={stream}
1074             {opendaylight-infra-mvn-opts}
1075           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1076           java-opts:
1077             - "-Xmx4096m -Dmaven.compile.fork=true"
1078           settings: integration-settings
1079           settings-type: cfp
1080           global-settings: global-settings
1081           global-settings-type: cfp
1082       - integration-upload-distribution:
1083           dist-pom: "{project}/pom.xml"
1084           settings-project: "{project}"
1085       - trigger-builds:
1086           - project: "{csit-list}"
1087             block: true
1088             predefined-parameters: |
1089               BUNDLE_URL=$BUNDLE_URL
1090               GERRIT_BRANCH=$GERRIT_BRANCH
1091               GERRIT_PROJECT=$GERRIT_PROJECT
1092               GERRIT_REFSPEC=$GERRIT_REFSPEC
1093               KARAF_VERSION=$KARAF_VERSION
1094
1095     publishers:
1096       - email-notification:
1097           email-recipients: "{email-recipients}"
1098           email-prefix: "[{project}]"
1099       - lf-infra-publish
1100
1101 # Template: {project}-patch-test-{stream}
1102 # Goal: Build a patch and run project specific system test on a distribution containing the change
1103 # Operation: This job template builds a patch, creates a distribution containing the patch, and
1104 # triggers the project system test defined in {csit-list} when gerrit receives test-{project} keyword
1105
1106 - job-template:
1107     name: "{prefix}{project}-patch-test-{feature}-{stream}"
1108     id: inttest-patch-test
1109     <<: *inttest_csit_common
1110
1111     build-timeout: 720
1112
1113     parameters:
1114       - opendaylight-infra-parameters:
1115           os-cloud: "{os-cloud}"
1116           project: "{project}"
1117           branch: "{branch}"
1118           refspec: "refs/heads/{branch}"
1119           artifacts: "{archive-artifacts}"
1120       - integration-distribution-branch:
1121           branch: "{branch}"
1122       - distribution-karaf-version:
1123           karaf-version: "{karaf-version}"
1124       - integration-distribution-git-url:
1125           git-url: "{git-url}"
1126       - string:
1127           name: feature
1128           default: "all"
1129           description: "Specific feature test for patch"
1130       - maven-exec:
1131           maven-version: "{mvn-version}"
1132
1133     scm:
1134       - integration-gerrit-scm:
1135           basedir: "{project}"
1136           refspec: "$GERRIT_REFSPEC"
1137           branch: "{branch}"
1138       - integration-distribution-scm:
1139           branch: "{branch}"
1140
1141     triggers:
1142       - gerrit:
1143           server-name: "{gerrit-server-name}"
1144           trigger-on:
1145             - comment-added-contains-event:
1146                 comment-contains-value: "test-{project}-all"
1147             - comment-added-contains-event:
1148                 comment-contains-value: "test-{project}-{feature}"
1149           projects:
1150             - project-compare-type: "ANT"
1151               project-pattern: "{project}"
1152               branches:
1153                 - branch-compare-type: "ANT"
1154                   branch-pattern: "**/{branch}"
1155           skip-vote:
1156             successful: true
1157             failed: true
1158             unstable: true
1159             notbuilt: true
1160
1161     builders:
1162       - integration-rebase-gerrit-patch
1163       - wipe-org-opendaylight-repo
1164       - lf-update-java-alternatives:
1165           java-version: "{java-version}"
1166       - maven-target:
1167           maven-version: "{mvn-version}"
1168           pom: "{project}/pom.xml"
1169           goals: |
1170             clean install dependency:tree
1171             -Pq
1172             -Dgitid.skip=false
1173             -Dmaven.gitcommitid.skip=false
1174             -DgenerateReports=false
1175             -Dstream={stream}
1176             {opendaylight-infra-mvn-opts}
1177           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1178           java-opts:
1179             - "-Xmx4096m -Dmaven.compile.fork=true"
1180           settings: integration-settings
1181           settings-type: cfp
1182           global-settings: global-settings
1183           global-settings-type: cfp
1184       - maven-target:
1185           maven-version: "{mvn-version}"
1186           pom: distribution/pom.xml
1187           goals: |
1188             clean install dependency:tree
1189             -Pq
1190             -Dgitid.skip=false
1191             -Dmaven.gitcommitid.skip=false
1192             {opendaylight-infra-mvn-opts}
1193           # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
1194           java-opts:
1195             - "-Xmx1024m -Dmaven.compile.fork=true"
1196           settings: integration-settings
1197           settings-type: cfp
1198           global-settings: global-settings
1199           global-settings-type: cfp
1200       - integration-upload-distribution:
1201           dist-pom: distribution/pom.xml
1202           settings-project: integration
1203       - trigger-builds:
1204           - project: "{csit-list}"
1205             block: true
1206             predefined-parameters: |
1207               BUNDLE_URL=$BUNDLE_URL
1208               GERRIT_BRANCH=$GERRIT_BRANCH
1209               GERRIT_PROJECT=$GERRIT_PROJECT
1210               GERRIT_REFSPEC=$GERRIT_REFSPEC
1211               KARAF_VERSION=$KARAF_VERSION
1212
1213     publishers:
1214       - email-notification:
1215           email-recipients: "{email-recipients}"
1216           email-prefix: "[{project}]"
1217       - lf-infra-publish