Merge "Add Boron branch and csit jobs for jsonrpc"
[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-verify-1node-{functionality}
6 # {project}-csit-1node-{functionality}-{install}-{stream}
7 # {project}-csit-1node-periodic-{functionality}-{install}-{stream}
8 # {project}-csit-verify-3node-{functionality}
9 # {project}-csit-3node-{functionality}-{install}-{stream}
10 # {project}-csit-3node-periodic-{functionality}-{install}-{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
26
27 # New templates
28
29 - job-template:
30     name: '{project}-csit-verify-1node-{functionality}'
31     disabled: false
32
33     project-type: freestyle
34     node: centos7-robot-2c-2g
35
36     properties:
37       - opendaylight-infra-properties:
38           build-days-to-keep: '{build-days-to-keep}'
39
40     parameters:
41       - opendaylight-infra-parameters:
42           os-cloud: '{os-cloud}'
43           project: 'integration/test'
44           branch: '{branch}'
45           refspec: 'refs/heads/{branch}'
46           artifacts: '{archive-artifacts}'
47       - integration-distribution-branch:
48           branch: '{verify-branch}'
49       - integration-distribution-stream:
50           stream: '{verify-stream}'
51       - integration-bundle-url:
52           bundle-url: '{bundle-url}'
53       - integration-controller-scope:
54           controller-scope: 'only'
55       - integration-controller-features:
56           controller-features: '{install-features}'
57       - integration-test-options:
58           test-options: '{robot-options}'
59       - integration-stream-test-plan:
60           stream-test-plan: '{project}-{functionality}-{verify-stream}.txt'
61       - integration-test-plan:
62           test-plan: '{project}-{functionality}.txt'
63       - integration-jdk-version:
64           jdkversion: '{verify-jdkversion}'
65       - distribution-karaf-version:
66           karaf-version: '{verify-karaf-version}'
67
68     scm:
69       - integration-gerrit-scm:
70           basedir: 'test'
71           refspec: '$GERRIT_REFSPEC'
72           branch: 'master'
73
74     wrappers:
75       - opendaylight-infra-wrappers:
76           build-timeout: '{build-timeout}'
77
78     triggers:
79       - integration-trigger-patch-submitted:
80           server: '{server-name}'
81           project: 'integration/test'
82           branch: 'master'
83           files: 'csit/suites/{project}/**'
84
85     builders:
86       - integration-infra-stack:
87           stack-template: '{stack-template}'
88           vm_0_count: '1'
89           vm_0_flavor: '{odl_system_flavor}'
90           vm_0_image: '{odl_system_image}'
91           vm_1_count: '{tools_system_count}'
92           vm_1_flavor: '{tools_system_flavor}'
93           vm_1_image: '{tools_system_image}'
94       - integration-install-robotframework
95       - inject:
96           properties-file: 'env.properties'
97       - integration-get-slave-addresses
98       - inject:
99           properties-file: 'slave_addresses.txt'
100       - integration-detect-variables
101       - integration-deploy-controller-run-test
102       - integration-cleanup-tmp
103
104     publishers:
105       - integration-robot:
106           unstable-if: 0.0
107           pass-if: 100.0
108       - email-notification:
109           email-recipients: '{email-recipients}'
110           email-prefix: '[{project}]'
111       - integration-csit-archive-build
112       - lf-infra-publish
113
114 - job-template:
115     name: '{project}-csit-1node-{functionality}-{install}-{stream}'
116     # Keep synchronized with *-csit4-*-carbon please.
117     disabled: false
118
119     project-type: freestyle
120     node: centos7-robot-2c-2g
121
122     properties:
123       - opendaylight-infra-properties:
124           build-days-to-keep: '{build-days-to-keep}'
125
126     parameters:
127       - opendaylight-infra-parameters:
128           os-cloud: '{os-cloud}'
129           project: 'integration/test'
130           branch: '{branch}'
131           refspec: 'refs/heads/{branch}'
132           artifacts: '{archive-artifacts}'
133       - integration-distribution-branch:
134           branch: '{branch}'
135       - integration-distribution-stream:
136           stream: '{stream}'
137       - integration-bundle-url:
138           bundle-url: '{bundle-url}'
139       - integration-controller-scope:
140           controller-scope: '{scope}'
141       - integration-controller-features:
142           controller-features: '{install-features}'
143       - integration-test-options:
144           test-options: '{robot-options}'
145       - integration-stream-test-plan:
146           stream-test-plan: '{project}-{functionality}-{stream}.txt'
147       - integration-test-plan:
148           test-plan: '{project}-{functionality}.txt'
149       - integration-patch-refspec:
150           branch: 'master'
151       - integration-jdk-version:
152           jdkversion: '{jre}'
153       - distribution-karaf-version:
154           karaf-version: '{karaf-version}'
155
156     scm:
157       - integration-gerrit-scm:
158           basedir: 'test'
159           refspec: '$PATCHREFSPEC'
160           branch: 'master'
161
162     triggers:
163       # we need this for not SR projects
164       - integration-csit-trigger:
165           jobs: '{trigger-jobs}'
166
167     wrappers:
168       - opendaylight-infra-wrappers:
169           build-timeout: '{build-timeout}'
170
171     builders:
172       - integration-infra-stack:
173           stack-template: '{stack-template}'
174           vm_0_count: '1'
175           vm_0_flavor: '{odl_system_flavor}'
176           vm_0_image: '{odl_system_image}'
177           vm_1_count: '{tools_system_count}'
178           vm_1_flavor: '{tools_system_flavor}'
179           vm_1_image: '{tools_system_image}'
180       - integration-install-robotframework
181       - inject:
182           properties-file: 'env.properties'
183       - integration-get-slave-addresses
184       - inject:
185           properties-file: 'slave_addresses.txt'
186       - integration-detect-variables
187       - integration-deploy-controller-run-test
188       - integration-cleanup-tmp
189
190     publishers:
191       - integration-robot:
192           unstable-if: 0.0
193           pass-if: 100.0
194       - email-notification:
195           email-recipients: '{email-recipients}'
196           email-prefix: '[{project}]'
197       - plot:
198           - title: '{01-plot-title}'
199             yaxis: '{01-plot-yaxis}'
200             group: '{01-plot-group}'
201             num-builds: '5400'
202             keep-records: true
203             style: line
204             use-description: false
205             # yamllint disable-line rule:line-length
206             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
207             series:
208               - file: '{01-plot-data-file}'
209                 inclusion-flag: 'off'
210                 display-table: true
211                 format: csv
212           - title: '{02-plot-title}'
213             yaxis: '{02-plot-yaxis}'
214             group: '{02-plot-group}'
215             num-builds: '5400'
216             keep-records: true
217             style: line
218             use-description: false
219             # yamllint disable-line rule:line-length
220             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
221             series:
222               - file: '{02-plot-data-file}'
223                 inclusion-flag: 'off'
224                 display-table: true
225                 format: csv
226       - integration-csit-archive-build
227       - lf-infra-publish
228
229 - job-template:
230     name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}'
231     disabled: false
232
233     project-type: freestyle
234     node: centos7-robot-2c-2g
235
236     properties:
237       - opendaylight-infra-properties:
238           build-days-to-keep: '{build-days-to-keep}'
239
240     parameters:
241       - opendaylight-infra-parameters:
242           os-cloud: '{os-cloud}'
243           project: 'integration/test'
244           branch: '{branch}'
245           refspec: 'refs/heads/{branch}'
246           artifacts: '{archive-artifacts}'
247       - integration-distribution-branch:
248           branch: '{branch}'
249       - integration-distribution-stream:
250           stream: '{stream}'
251       - integration-bundle-url:
252           bundle-url: '{bundle-url}'
253       - integration-controller-scope:
254           controller-scope: '{scope}'
255       - integration-controller-features:
256           controller-features: '{install-features}'
257       - integration-test-options:
258           test-options: '{robot-options}'
259       - integration-stream-test-plan:
260           stream-test-plan: '{project}-{functionality}-{stream}.txt'
261       - integration-test-plan:
262           test-plan: '{project}-{functionality}.txt'
263       - integration-patch-refspec:
264           branch: 'master'
265       - integration-jdk-version:
266           jdkversion: '{jre}'
267       - distribution-karaf-version:
268           karaf-version: '{karaf-version}'
269
270     scm:
271       - integration-gerrit-scm:
272           basedir: 'test'
273           refspec: '$PATCHREFSPEC'
274           branch: 'master'
275
276     wrappers:
277       - opendaylight-infra-wrappers:
278           build-timeout: '{build-timeout}'
279
280     builders:
281       - integration-infra-stack:
282           stack-template: '{stack-template}'
283           vm_0_count: '1'
284           vm_0_flavor: '{odl_system_flavor}'
285           vm_0_image: '{odl_system_image}'
286           vm_1_count: '{tools_system_count}'
287           vm_1_flavor: '{tools_system_flavor}'
288           vm_1_image: '{tools_system_image}'
289       - integration-install-robotframework
290       - inject:
291           properties-file: 'env.properties'
292       - integration-get-slave-addresses
293       - inject:
294           properties-file: 'slave_addresses.txt'
295       - integration-detect-variables
296       - integration-deploy-controller-run-test
297       - integration-cleanup-tmp
298
299     publishers:
300       - integration-robot:
301           unstable-if: 0.0
302           pass-if: 100.0
303       - email-notification:
304           email-recipients: '{email-recipients}'
305           email-prefix: '[{project}]'
306       - plot:
307           - title: '{01-plot-title}'
308             yaxis: '{01-plot-yaxis}'
309             group: '{01-plot-group}'
310             num-builds: '180'
311             keep-records: true
312             style: line
313             use-description: false
314             # yamllint disable-line rule:line-length
315             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
316             series:
317               - file: '{01-plot-data-file}'
318                 inclusion-flag: 'off'
319                 display-table: true
320                 format: csv
321           - title: '{02-plot-title}'
322             yaxis: '{02-plot-yaxis}'
323             group: '{02-plot-group}'
324             num-builds: '180'
325             keep-records: true
326             style: line
327             use-description: false
328             # yamllint disable-line rule:line-length
329             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
330             series:
331               - file: '{02-plot-data-file}'
332                 inclusion-flag: 'off'
333                 display-table: true
334                 format: csv
335           - title: '{03-plot-title}'
336             yaxis: '{03-plot-yaxis}'
337             group: '{03-plot-group}'
338             num-builds: '180'
339             keep-records: true
340             style: line
341             use-description: false
342             # yamllint disable-line rule:line-length
343             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv'
344             series:
345               - file: '{03-plot-data-file}'
346                 inclusion-flag: '{03-inclusion-flag}'
347                 exclude: '{03-exclude-value}'
348                 format: csv
349           - title: '{04-plot-title}'
350             yaxis: '{04-plot-yaxis}'
351             group: '{04-plot-group}'
352             num-builds: '180'
353             keep-records: true
354             style: line
355             use-description: false
356             # yamllint disable-line rule:line-length
357             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv'
358             series:
359               - file: '{04-plot-data-file}'
360                 inclusion-flag: '{04-inclusion-flag}'
361                 exclude: '{04-exclude-value}'
362                 format: csv
363           - title: '{05-plot-title}'
364             yaxis: '{05-plot-yaxis}'
365             group: '{05-plot-group}'
366             num-builds: '180'
367             keep-records: true
368             style: line
369             use-description: false
370             # yamllint disable-line rule:line-length
371             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv'
372             series:
373               - file: '{05-plot-data-file}'
374                 inclusion-flag: '{05-inclusion-flag}'
375                 exclude: '{05-exclude-value}'
376                 format: csv
377           - title: '{06-plot-title}'
378             yaxis: '{06-plot-yaxis}'
379             group: '{06-plot-group}'
380             num-builds: '180'
381             keep-records: true
382             style: line
383             use-description: false
384             # yamllint disable-line rule:line-length
385             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv'
386             series:
387               - file: '{06-plot-data-file}'
388                 inclusion-flag: '{06-inclusion-flag}'
389                 exclude: '{06-exclude-value}'
390                 format: csv
391           - title: '{07-plot-title}'
392             yaxis: '{07-plot-yaxis}'
393             group: '{07-plot-group}'
394             num-builds: '180'
395             keep-records: true
396             style: line
397             use-description: false
398             # yamllint disable-line rule:line-length
399             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv'
400             series:
401               - file: '{07-plot-data-file}'
402                 inclusion-flag: '{07-inclusion-flag}'
403                 exclude: '{07-exclude-value}'
404                 format: csv
405           - title: '{08-plot-title}'
406             yaxis: '{08-plot-yaxis}'
407             group: '{08-plot-group}'
408             num-builds: '180'
409             keep-records: true
410             style: line
411             use-description: false
412             # yamllint disable-line rule:line-length
413             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv'
414             series:
415               - file: '{08-plot-data-file}'
416                 inclusion-flag: '{08-inclusion-flag}'
417                 exclude: '{08-exclude-value}'
418                 format: csv
419           - title: '{09-plot-title}'
420             yaxis: '{09-plot-yaxis}'
421             group: '{09-plot-group}'
422             num-builds: '180'
423             keep-records: true
424             style: line
425             use-description: false
426             # yamllint disable-line rule:line-length
427             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv'
428             series:
429               - file: '{09-plot-data-file}'
430                 inclusion-flag: '{09-inclusion-flag}'
431                 exclude: '{09-exclude-value}'
432                 format: csv
433           - title: '{10-plot-title}'
434             yaxis: '{10-plot-yaxis}'
435             group: '{10-plot-group}'
436             num-builds: '180'
437             keep-records: true
438             style: line
439             use-description: false
440             # yamllint disable-line rule:line-length
441             csv-file-name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv'
442             series:
443               - file: '{10-plot-data-file}'
444                 inclusion-flag: '{10-inclusion-flag}'
445                 exclude: '{10-exclude-value}'
446                 format: csv
447       - integration-csit-archive-build
448       - lf-infra-publish
449
450 - job-template:
451     name: '{project}-csit-verify-3node-{functionality}'
452     disabled: false
453
454     project-type: freestyle
455     node: centos7-robot-2c-2g
456
457     properties:
458       - opendaylight-infra-properties:
459           build-days-to-keep: '{build-days-to-keep}'
460
461     parameters:
462       - opendaylight-infra-parameters:
463           os-cloud: '{os-cloud}'
464           project: 'integration/test'
465           branch: '{branch}'
466           refspec: 'refs/heads/{branch}'
467           artifacts: '{archive-artifacts}'
468       - integration-distribution-branch:
469           branch: '{verify-branch}'
470       - integration-distribution-stream:
471           stream: '{verify-stream}'
472       - integration-bundle-url:
473           bundle-url: '{bundle-url}'
474       - integration-controller-scope:
475           controller-scope: 'only'
476       - integration-controller-features:
477           controller-features: 'odl-jolokia,{install-features}'
478       - integration-test-options:
479           test-options: '{robot-options}'
480       - integration-stream-test-plan:
481           stream-test-plan: '{project}-{functionality}-{verify-stream}.txt'
482       - integration-test-plan:
483           test-plan: '{project}-{functionality}.txt'
484       - integration-jdk-version:
485           jdkversion: '{verify-jdkversion}'
486       - distribution-karaf-version:
487           karaf-version: '{verify-karaf-version}'
488
489     scm:
490       - integration-gerrit-scm:
491           basedir: 'test'
492           refspec: '$GERRIT_REFSPEC'
493           branch: 'master'
494
495     wrappers:
496       - opendaylight-infra-wrappers:
497           build-timeout: '{build-timeout}'
498
499     triggers:
500       - integration-trigger-patch-submitted:
501           server: '{server-name}'
502           project: 'integration/test'
503           branch: 'master'
504           files: 'csit/suites/{project}/**'
505
506     builders:
507       - integration-infra-stack:
508           stack-template: '{stack-template}'
509           vm_0_count: '3'
510           vm_0_flavor: '{odl_system_flavor}'
511           vm_0_image: '{odl_system_image}'
512           vm_1_count: '{tools_system_count}'
513           vm_1_flavor: '{tools_system_flavor}'
514           vm_1_image: '{tools_system_image}'
515       - integration-install-robotframework
516       - inject:
517           properties-file: 'env.properties'
518       - integration-get-slave-addresses
519       - inject:
520           properties-file: 'slave_addresses.txt'
521       - integration-detect-variables
522       - integration-configure-clustering
523       - integration-start-cluster-run-test
524       - integration-cleanup-tmp
525
526     publishers:
527       - integration-robot:
528           unstable-if: 0.0
529           pass-if: 100.0
530       - email-notification:
531           email-recipients: '{email-recipients}'
532           email-prefix: '[{project}]'
533       - integration-csit-archive-build
534       - lf-infra-publish
535
536 - job-template:
537     name: '{project}-csit-3node-{functionality}-{install}-{stream}'
538     disabled: false
539
540     project-type: freestyle
541     node: centos7-robot-2c-2g
542
543     properties:
544       - opendaylight-infra-properties:
545           build-days-to-keep: '{build-days-to-keep}'
546
547     parameters:
548       - opendaylight-infra-parameters:
549           os-cloud: '{os-cloud}'
550           project: 'integration/test'
551           branch: '{branch}'
552           refspec: 'refs/heads/{branch}'
553           artifacts: '{archive-artifacts}'
554       - integration-distribution-branch:
555           branch: '{branch}'
556       - integration-distribution-stream:
557           stream: '{stream}'
558       - integration-bundle-url:
559           bundle-url: '{bundle-url}'
560       - integration-controller-scope:
561           controller-scope: '{scope}'
562       - integration-controller-features:
563           controller-features: 'odl-jolokia,{install-features}'
564       - integration-test-options:
565           test-options: '{robot-options}'
566       - integration-stream-test-plan:
567           stream-test-plan: '{project}-{functionality}-{stream}.txt'
568       - integration-test-plan:
569           test-plan: '{project}-{functionality}.txt'
570       - integration-patch-refspec:
571           branch: 'master'
572       - integration-jdk-version:
573           jdkversion: '{jre}'
574       - distribution-karaf-version:
575           karaf-version: '{karaf-version}'
576
577     scm:
578       - integration-gerrit-scm:
579           basedir: 'test'
580           refspec: '$PATCHREFSPEC'
581           branch: 'master'
582
583     wrappers:
584       - opendaylight-infra-wrappers:
585           build-timeout: '{build-timeout}'
586
587     builders:
588       - integration-infra-stack:
589           stack-template: '{stack-template}'
590           vm_0_count: '3'
591           vm_0_flavor: '{odl_system_flavor}'
592           vm_0_image: '{odl_system_image}'
593           vm_1_count: '{tools_system_count}'
594           vm_1_flavor: '{tools_system_flavor}'
595           vm_1_image: '{tools_system_image}'
596       - integration-install-robotframework
597       - inject:
598           properties-file: 'env.properties'
599       - integration-get-slave-addresses
600       - inject:
601           properties-file: 'slave_addresses.txt'
602       - integration-detect-variables
603       - integration-configure-clustering
604       - integration-start-cluster-run-test
605       - integration-cleanup-tmp
606
607     publishers:
608       - integration-robot:
609           unstable-if: 0.0
610           pass-if: 100.0
611       - email-notification:
612           email-recipients: '{email-recipients}'
613           email-prefix: '[{project}]'
614       - plot:
615           - title: '{01-plot-title}'
616             yaxis: '{01-plot-yaxis}'
617             group: '{01-plot-group}'
618             num-builds: '5400'
619             keep-records: true
620             style: line
621             use-description: false
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: '5400'
632             keep-records: true
633             style: line
634             use-description: false
635             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
636             series:
637               - file: '{02-plot-data-file}'
638                 inclusion-flag: 'off'
639                 display-table: true
640                 format: csv
641       - integration-csit-archive-build
642       - lf-infra-publish
643
644 - job-template:
645     name: '{project}-csit-3node-docker-{functionality}-{install}-{stream}'
646     disabled: false
647
648     project-type: freestyle
649     node: centos7-robot-2c-2g
650
651     properties:
652       - opendaylight-infra-properties:
653           build-days-to-keep: '{build-days-to-keep}'
654
655     parameters:
656       - opendaylight-infra-parameters:
657           os-cloud: '{os-cloud}'
658           project: 'integration/test'
659           branch: '{branch}'
660           refspec: 'refs/heads/{branch}'
661           artifacts: '{archive-artifacts}'
662       - integration-distribution-branch:
663           branch: '{branch}'
664       - integration-distribution-stream:
665           stream: '{stream}'
666       - integration-bundle-url:
667           bundle-url: '{bundle-url}'
668       - integration-controller-scope:
669           controller-scope: '{scope}'
670       - integration-controller-features:
671           controller-features: 'odl-jolokia,{install-features}'
672       - integration-test-options:
673           test-options: '{robot-options}'
674       - integration-stream-test-plan:
675           stream-test-plan: '{project}-{functionality}-{stream}.txt'
676       - integration-test-plan:
677           test-plan: '{project}-{functionality}.txt'
678       - integration-patch-refspec:
679           branch: 'master'
680       - integration-jdk-version:
681           jdkversion: '{jre}'
682       - distribution-karaf-version:
683           karaf-version: '{karaf-version}'
684
685     scm:
686       - integration-gerrit-scm:
687           basedir: 'test'
688           refspec: '$PATCHREFSPEC'
689           branch: 'master'
690
691     wrappers:
692       - opendaylight-infra-wrappers:
693           build-timeout: '{build-timeout}'
694
695     builders:
696       - integration-infra-stack:
697           stack-template: '{stack-template}'
698           vm_0_count: '3'
699           vm_0_flavor: '{odl_system_flavor}'
700           vm_0_image: '{odl_system_image}'
701           vm_1_count: '{docker_system_count}'
702           vm_1_flavor: '{docker_system_flavor}'
703           vm_1_image: '{docker_system_image}'
704       - integration-install-robotframework
705       - inject:
706           properties-file: 'env.properties'
707       - integration-get-slave-addresses
708       - inject:
709           properties-file: 'slave_addresses.txt'
710       - integration-detect-variables
711       - integration-configure-clustering
712       - integration-start-cluster-run-test
713       - integration-cleanup-tmp
714
715     publishers:
716       - integration-robot:
717           unstable-if: 0.0
718           pass-if: 100.0
719       - email-notification:
720           email-recipients: '{email-recipients}'
721           email-prefix: '[{project}]'
722       - plot:
723           - title: '{01-plot-title}'
724             yaxis: '{01-plot-yaxis}'
725             group: '{01-plot-group}'
726             num-builds: '5400'
727             keep-records: true
728             style: line
729             use-description: false
730             # yamllint disable-line rule:line-length
731             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
732             series:
733               - file: '{01-plot-data-file}'
734                 inclusion-flag: 'off'
735                 display-table: true
736                 format: csv
737           - title: '{02-plot-title}'
738             yaxis: '{02-plot-yaxis}'
739             group: '{02-plot-group}'
740             num-builds: '5400'
741             keep-records: true
742             style: line
743             use-description: false
744             # yamllint disable-line rule:line-length
745             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
746             series:
747               - file: '{02-plot-data-file}'
748                 inclusion-flag: 'off'
749                 display-table: true
750                 format: csv
751       - integration-csit-archive-build
752       - lf-infra-publish
753
754 - job-template:
755     name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
756     disabled: false
757
758     project-type: freestyle
759     node: centos7-robot-2c-2g
760
761     properties:
762       - opendaylight-infra-properties:
763           build-days-to-keep: '{build-days-to-keep}'
764
765     parameters:
766       - opendaylight-infra-parameters:
767           os-cloud: '{os-cloud}'
768           project: 'integration/test'
769           branch: '{branch}'
770           refspec: 'refs/heads/{branch}'
771           artifacts: '{archive-artifacts}'
772       - integration-distribution-branch:
773           branch: '{branch}'
774       - integration-distribution-stream:
775           stream: '{stream}'
776       - integration-bundle-url:
777           bundle-url: '{bundle-url}'
778       - integration-controller-scope:
779           controller-scope: '{scope}'
780       - integration-controller-features:
781           controller-features: 'odl-jolokia,{install-features}'
782       - integration-test-options:
783           test-options: '{robot-options}'
784       - integration-stream-test-plan:
785           stream-test-plan: '{project}-{functionality}-{stream}.txt'
786       - integration-test-plan:
787           test-plan: '{project}-{functionality}.txt'
788       - integration-patch-refspec:
789           branch: 'master'
790       - integration-jdk-version:
791           jdkversion: '{jre}'
792       - distribution-karaf-version:
793           karaf-version: '{karaf-version}'
794
795     scm:
796       - integration-gerrit-scm:
797           basedir: 'test'
798           refspec: '$PATCHREFSPEC'
799           branch: 'master'
800
801     wrappers:
802       - opendaylight-infra-wrappers:
803           build-timeout: '{build-timeout}'
804
805     builders:
806       - integration-infra-stack:
807           stack-template: '{stack-template}'
808           vm_0_count: '3'
809           vm_0_flavor: '{odl_system_flavor}'
810           vm_0_image: '{odl_system_image}'
811           vm_1_count: '{tools_system_count}'
812           vm_1_flavor: '{tools_system_flavor}'
813           vm_1_image: '{tools_system_image}'
814       - integration-install-robotframework
815       - inject:
816           properties-file: 'env.properties'
817       - integration-get-slave-addresses
818       - inject:
819           properties-file: 'slave_addresses.txt'
820       - integration-detect-variables
821       - integration-configure-clustering
822       - integration-start-cluster-run-test
823       - integration-cleanup-tmp
824
825     publishers:
826       - integration-robot:
827           unstable-if: 0.0
828           pass-if: 100.0
829       - email-notification:
830           email-recipients: '{email-recipients}'
831           email-prefix: '[{project}]'
832       - plot:
833           - title: '{01-plot-title}'
834             yaxis: '{01-plot-yaxis}'
835             group: '{01-plot-group}'
836             num-builds: '180'
837             keep-records: true
838             style: line
839             use-description: false
840             # yamllint disable-line rule:line-length
841             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
842             series:
843               - file: '{01-plot-data-file}'
844                 inclusion-flag: 'off'
845                 display-table: true
846                 format: csv
847           - title: '{02-plot-title}'
848             yaxis: '{02-plot-yaxis}'
849             group: '{02-plot-group}'
850             num-builds: '180'
851             keep-records: true
852             style: line
853             use-description: false
854             # yamllint disable-line rule:line-length
855             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
856             series:
857               - file: '{02-plot-data-file}'
858                 inclusion-flag: 'off'
859                 display-table: true
860                 format: csv
861           - title: '{03-plot-title}'
862             yaxis: '{03-plot-yaxis}'
863             group: '{03-plot-group}'
864             num-builds: '180'
865             keep-records: true
866             style: line
867             use-description: false
868             # yamllint disable-line rule:line-length
869             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{03-plot-data-file}-03-history.csv'
870             series:
871               - file: '{03-plot-data-file}'
872                 inclusion-flag: '{03-inclusion-flag}'
873                 exclude: '{03-exclude-value}'
874                 format: csv
875           - title: '{04-plot-title}'
876             yaxis: '{04-plot-yaxis}'
877             group: '{04-plot-group}'
878             num-builds: '180'
879             keep-records: true
880             style: line
881             use-description: false
882             # yamllint disable-line rule:line-length
883             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{04-plot-data-file}-04-history.csv'
884             series:
885               - file: '{04-plot-data-file}'
886                 inclusion-flag: '{04-inclusion-flag}'
887                 exclude: '{04-exclude-value}'
888                 format: csv
889           - title: '{05-plot-title}'
890             yaxis: '{05-plot-yaxis}'
891             group: '{05-plot-group}'
892             num-builds: '180'
893             keep-records: true
894             style: line
895             use-description: false
896             # yamllint disable-line rule:line-length
897             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{05-plot-data-file}-05-history.csv'
898             series:
899               - file: '{05-plot-data-file}'
900                 inclusion-flag: '{05-inclusion-flag}'
901                 exclude: '{05-exclude-value}'
902                 format: csv
903           - title: '{06-plot-title}'
904             yaxis: '{06-plot-yaxis}'
905             group: '{06-plot-group}'
906             num-builds: '180'
907             keep-records: true
908             style: line
909             use-description: false
910             # yamllint disable-line rule:line-length
911             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{06-plot-data-file}-06-history.csv'
912             series:
913               - file: '{06-plot-data-file}'
914                 inclusion-flag: '{06-inclusion-flag}'
915                 exclude: '{06-exclude-value}'
916                 format: csv
917           - title: '{07-plot-title}'
918             yaxis: '{07-plot-yaxis}'
919             group: '{07-plot-group}'
920             num-builds: '180'
921             keep-records: true
922             style: line
923             use-description: false
924             # yamllint disable-line rule:line-length
925             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{07-plot-data-file}-07-history.csv'
926             series:
927               - file: '{07-plot-data-file}'
928                 inclusion-flag: '{07-inclusion-flag}'
929                 exclude: '{07-exclude-value}'
930                 format: csv
931           - title: '{08-plot-title}'
932             yaxis: '{08-plot-yaxis}'
933             group: '{08-plot-group}'
934             num-builds: '180'
935             keep-records: true
936             style: line
937             use-description: false
938             # yamllint disable-line rule:line-length
939             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{08-plot-data-file}-08-history.csv'
940             series:
941               - file: '{08-plot-data-file}'
942                 inclusion-flag: '{08-inclusion-flag}'
943                 exclude: '{08-exclude-value}'
944                 format: csv
945           - title: '{09-plot-title}'
946             yaxis: '{09-plot-yaxis}'
947             group: '{09-plot-group}'
948             num-builds: '180'
949             keep-records: true
950             style: line
951             use-description: false
952             # yamllint disable-line rule:line-length
953             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{09-plot-data-file}-09-history.csv'
954             series:
955               - file: '{09-plot-data-file}'
956                 inclusion-flag: '{09-inclusion-flag}'
957                 exclude: '{09-exclude-value}'
958                 format: csv
959           - title: '{10-plot-title}'
960             yaxis: '{10-plot-yaxis}'
961             group: '{10-plot-group}'
962             num-builds: '180'
963             keep-records: true
964             style: line
965             use-description: false
966             # yamllint disable-line rule:line-length
967             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{10-plot-data-file}-10-history.csv'
968             series:
969               - file: '{10-plot-data-file}'
970                 inclusion-flag: '{10-inclusion-flag}'
971                 exclude: '{10-exclude-value}'
972                 format: csv
973       - integration-csit-archive-build
974       - lf-infra-publish
975
976 - job-template:
977     name: '{project}-csit-hwvtep-{topology}-openstack-{openstack}-{functionality}-{stream}'
978     disabled: false
979
980     project-type: freestyle
981     node: centos7-robot-2c-2g
982     concurrent: true
983
984     properties:
985       - opendaylight-infra-properties:
986           build-days-to-keep: '{build-days-to-keep}'
987
988     parameters:
989       - opendaylight-infra-parameters:
990           os-cloud: '{os-cloud}'
991           project: 'integration/test'
992           branch: '{branch}'
993           refspec: 'refs/heads/{branch}'
994           artifacts: '{archive-artifacts}'
995       - integration-distribution-branch:
996           branch: '{branch}'
997       - integration-distribution-stream:
998           stream: '{stream}'
999       - integration-bundle-url:
1000           bundle-url: '{bundle-url}'
1001       - integration-controller-features:
1002           controller-features: '{install-features}'
1003       - integration-test-options:
1004           test-options: '{robot-options}'
1005       - integration-test-plan:
1006           test-plan: '{testplan}'
1007       - integration-patch-refspec:
1008           branch: 'master'
1009       - integration-jdk-version:
1010           jdkversion: '{jre}'
1011       - distribution-karaf-version:
1012           karaf-version: '{karaf-version}'
1013       - string:
1014           name: OPENSTACK_BRANCH
1015           default: '{openstack-branch}'
1016           description: 'Openstack version to use with devstack'
1017       - string:
1018           name: ODL_ML2_DRIVER_REPO
1019           default: '{odl-ml2-driver-repo}'
1020           description: 'URL to fetch networking-odl driver'
1021       - string:
1022           name: ODL_ML2_BRANCH
1023           default: '{odl-ml2-branch}'
1024           description: 'Version of networking-odl to checkout from the repo'
1025       - string:
1026           name: ODL_ML2_DRIVER_VERSION
1027           default: '{odl-ml2-driver-version}'
1028           description: 'Mode of networking-odl (v1 or v2)'
1029       - string:
1030           name: ODL_ML2_PORT_BINDING
1031           default: '{odl-ml2-port-binding}'
1032           description: 'Method of networking-odl port-binding (pseudo-agentdb-binding or legacy-port-binding or
1033           network-topology)'
1034       - string:
1035           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1036           default: '{devstack-kubernetes-plugin-repo}'
1037           description: 'URL to fetch kubernetes devstack plugin'
1038       - string:
1039           name: DEVSTACK_LBAAS_PLUGIN_REPO
1040           default: '{devstack-lbaas-plugin-repo}'
1041           description: 'URL to fetch neutron-lbaas devstack plugin'
1042       - string:
1043           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1044           default: '{devstack-networking-sfc-plugin-repo}'
1045           description: 'URL to fetch neutron-lbaas devstack plugin'
1046       - string:
1047           name: ODL_ENABLE_L3_FWD
1048           default: '{odl-enable-l3}'
1049           description: 'Enable L3 FWD in ODL for createing br-ex'
1050       - string:
1051           name: IPSEC_VXLAN_TUNNELS_ENABLED
1052           default: '{ipsec-vxlan-tunnels-enabled}'
1053           description: 'Enable ipsec over vxlan support for all controllers and computes'
1054       - string:
1055           name: PUBLIC_BRIDGE
1056           default: '{public-bridge}'
1057           description: 'Specifies public bridge for provider and external networking'
1058       - string:
1059           name: ENABLE_HAPROXY_FOR_NEUTRON
1060           default: '{enable-haproxy}'
1061           description: 'Enable HAProxy for using neutron interface as HA'
1062       - string:
1063           name: ENABLE_OS_SERVICES
1064           default: '{enable-openstack-services}'
1065           description: 'comma seperated list of services to enable'
1066       - string:
1067           name: ENABLE_OS_PLUGINS
1068           default: '{enable-openstack-plugins}'
1069           description: 'comma seperated list of plugins to enable'
1070       - string:
1071           name: DISABLE_OS_SERVICES
1072           default: '{disable-openstack-services}'
1073           description: 'comma seperated list of services to enable'
1074       - string:
1075           name: TENANT_NETWORK_TYPE
1076           default: '{tenant-network-type}'
1077           description: 'Tenant Network Type supported by the implementation'
1078       - string:
1079           name: SECURITY_GROUP_MODE
1080           default: '{security-group-mode}'
1081           description: 'Security Group Mode to be used in netvirt aclservice config'
1082       - string:
1083           name: PUBLIC_PHYSICAL_NETWORK
1084           default: '{public-physical-network}'
1085           description: 'provider physical network used for flat/vlan networks'
1086       - string:
1087           name: ENABLE_NETWORKING_L2GW
1088           default: '{enable-networking-l2gw}'
1089           description: 'Enable networking L2gw'
1090       - string:
1091           name: NETWORKING_L2GW_DRIVER
1092           default: '{networking-l2gw-repo}'
1093           description: 'URL to fetch networking-l2gw driver'
1094       - string:
1095           name: CREATE_INITIAL_NETWORKS
1096           default: '{create-initial-networks}'
1097           description: 'Toggles the option of letting devstack create initial networks (True/False)'
1098       - string:
1099           name: LBAAS_SERVICE_PROVIDER
1100           default: '{lbaas-service-provider}'
1101           description: 'The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf - only relevant when using
1102           neutron-lbaas'
1103       - string:
1104           name: ODL_SFC_DRIVER
1105           default: '{odl-sfc-driver}'
1106           description: 'The SFC driver to be used in local.conf - only relevant when using networking-sfc'
1107       - string:
1108           name: ODL_SNAT_MODE
1109           default: '{odl-snat-mode}'
1110           description: 'The SNAT mode to be configured - options are conntrack/controller.'
1111     scm:
1112       - integration-gerrit-scm:
1113           basedir: 'test'
1114           refspec: '$PATCHREFSPEC'
1115           branch: 'master'
1116
1117     wrappers:
1118       - opendaylight-infra-wrappers:
1119           build-timeout: '{build-timeout}'
1120
1121     triggers:
1122       - timed: '{schedule}'
1123
1124     builders:
1125       - integration-infra-stack-3-type:
1126           vm_0_count: '{odl_system_count}'
1127           vm_0_flavor: '{odl_system_flavor}'
1128           vm_0_image: '{odl_system_image}'
1129           vm_1_count: '{openstack_system_count}'
1130           vm_1_flavor: '{openstack_system_flavor}'
1131           vm_1_image: '{openstack_system_image}'
1132           vm_2_count: '{tools_system_count}'
1133           vm_2_flavor: '{tools_system_flavor}'
1134           vm_2_image: '{tools_system_image}'
1135       - integration-install-robotframework
1136       - inject:
1137           properties-file: 'env.properties'
1138       - integration-get-slave-addresses
1139       - inject:
1140           properties-file: 'slave_addresses.txt'
1141       - integration-detect-variables
1142       - integration-deploy-controller-run-test
1143       - integration-deploy-openstack-run-test
1144       - integration-cleanup-tmp
1145
1146     publishers:
1147       - integration-robot-tempest:
1148           unstable-if: 0.0
1149           pass-if: 100.0
1150       - email-notification:
1151           email-recipients: '{email-recipients}'
1152           email-prefix: '[{project}]'
1153       - integration-csit-archive-build
1154       - lf-infra-publish
1155
1156 - job-template:
1157     name: '{project}-csit-{topology}-openstack-{openstack}-{functionality}-{stream}'
1158     disabled: false
1159
1160     project-type: freestyle
1161     node: centos7-robot-2c-2g
1162     concurrent: true
1163
1164     properties:
1165       - opendaylight-infra-properties:
1166           build-days-to-keep: '{build-days-to-keep}'
1167
1168     parameters:
1169       - opendaylight-infra-parameters:
1170           os-cloud: '{os-cloud}'
1171           project: 'integration/test'
1172           branch: '{branch}'
1173           refspec: 'refs/heads/{branch}'
1174           artifacts: '{archive-artifacts}'
1175       - integration-distribution-branch:
1176           branch: '{branch}'
1177       - integration-distribution-stream:
1178           stream: '{stream}'
1179       - integration-bundle-url:
1180           bundle-url: '{bundle-url}'
1181       - integration-controller-features:
1182           controller-features: '{install-features}'
1183       - integration-test-options:
1184           test-options: '{robot-options}'
1185       - integration-test-plan:
1186           test-plan: '{testplan}'
1187       - integration-patch-refspec:
1188           branch: 'master'
1189       - integration-jdk-version:
1190           jdkversion: '{jre}'
1191       - distribution-karaf-version:
1192           karaf-version: '{karaf-version}'
1193       - string:
1194           name: OPENSTACK_BRANCH
1195           default: '{openstack-branch}'
1196           description: 'Openstack version to use with devstack'
1197       - string:
1198           name: ODL_ML2_DRIVER_REPO
1199           default: '{odl-ml2-driver-repo}'
1200           description: 'URL to fetch networking-odl driver'
1201       - string:
1202           name: ODL_ML2_BRANCH
1203           default: '{odl-ml2-branch}'
1204           description: 'Version of networking-odl to checkout from the repo'
1205       - string:
1206           name: ODL_ML2_DRIVER_VERSION
1207           default: '{odl-ml2-driver-version}'
1208           description: 'Mode of networking-odl (v1 or v2)'
1209       - string:
1210           name: ODL_ML2_PORT_BINDING
1211           default: '{odl-ml2-port-binding}'
1212           description: 'Method of networking-odl port-binding (pseudo-agentdb-binding or legacy-port-binding or
1213           network-topology)'
1214       - string:
1215           name: DEVSTACK_KUBERNETES_PLUGIN_REPO
1216           default: '{devstack-kubernetes-plugin-repo}'
1217           description: 'URL to fetch kubernetes devstack plugin'
1218       - string:
1219           name: DEVSTACK_LBAAS_PLUGIN_REPO
1220           default: '{devstack-lbaas-plugin-repo}'
1221           description: 'URL to fetch neutron-lbaas devstack plugin'
1222       - string:
1223           name: DEVSTACK_NETWORKING_SFC_PLUGIN_REPO
1224           default: '{devstack-networking-sfc-plugin-repo}'
1225           description: 'URL to fetch neutron-lbaas devstack plugin'
1226       - string:
1227           name: ODL_ENABLE_L3_FWD
1228           default: '{odl-enable-l3}'
1229           description: 'Enable L3 FWD in ODL for createing br-ex'
1230       - string:
1231           name: IPSEC_VXLAN_TUNNELS_ENABLED
1232           default: '{ipsec-vxlan-tunnels-enabled}'
1233           description: 'Enable ipsec over vxlan support for all controllers and computes'
1234       - string:
1235           name: PUBLIC_BRIDGE
1236           default: '{public-bridge}'
1237           description: 'Specifies public bridge for provider and external networking'
1238       - string:
1239           name: ENABLE_HAPROXY_FOR_NEUTRON
1240           default: '{enable-haproxy}'
1241           description: 'Enable HAProxy for using neutron interface as HA'
1242       - string:
1243           name: ENABLE_OS_SERVICES
1244           default: '{enable-openstack-services}'
1245           description: 'comma seperated list of services to enable'
1246       - string:
1247           name: ENABLE_OS_PLUGINS
1248           default: '{enable-openstack-plugins}'
1249           description: 'comma seperated list of plugins to enable'
1250       - string:
1251           name: DISABLE_OS_SERVICES
1252           default: '{disable-openstack-services}'
1253           description: 'comma seperated list of services to enable'
1254       - string:
1255           name: TENANT_NETWORK_TYPE
1256           default: '{tenant-network-type}'
1257           description: 'Tenant Network Type supported by the implementation'
1258       - string:
1259           name: SECURITY_GROUP_MODE
1260           default: '{security-group-mode}'
1261           description: 'Security Group Mode to be used in netvirt aclservice config'
1262       - string:
1263           name: PUBLIC_PHYSICAL_NETWORK
1264           default: '{public-physical-network}'
1265           description: 'provider physical network used for flat/vlan networks'
1266       - string:
1267           name: ENABLE_NETWORKING_L2GW
1268           default: '{enable-networking-l2gw}'
1269           description: 'Enable networking L2gw'
1270       - string:
1271           name: NETWORKING_L2GW_DRIVER
1272           default: '{networking-l2gw-repo}'
1273           description: 'URL to fetch networking-l2gw driver'
1274       - string:
1275           name: CREATE_INITIAL_NETWORKS
1276           default: '{create-initial-networks}'
1277           description: 'Toggles the option of letting devstack create initial networks (True/False)'
1278       - string:
1279           name: LBAAS_SERVICE_PROVIDER
1280           default: '{lbaas-service-provider}'
1281           description: 'The NEUTRON_LBAAS_SERVICE_PROVIDERV2 value to be used in local.conf - only relevant when using
1282           neutron-lbaas'
1283       - string:
1284           name: NUM_OPENSTACK_SITES
1285           default: '{num-openstack-sites}'
1286           description: 'Number of openstack sites'
1287       - string:
1288           name: ODL_SFC_DRIVER
1289           default: '{odl-sfc-driver}'
1290           description: 'The SFC driver to be used in local.conf - only relevant when using networking-sfc'
1291       - string:
1292           name: ODL_SNAT_MODE
1293           default: '{odl-snat-mode}'
1294           description: 'The SNAT mode to be configured - options are conntrack/controller.'
1295
1296     scm:
1297       - integration-gerrit-scm:
1298           basedir: 'test'
1299           refspec: '$PATCHREFSPEC'
1300           branch: 'master'
1301
1302     wrappers:
1303       - opendaylight-infra-wrappers:
1304           build-timeout: '{build-timeout}'
1305
1306     triggers:
1307       - timed: '{schedule}'
1308
1309     builders:
1310       - integration-infra-stack:
1311           stack-template: '{stack-template}'
1312           vm_0_count: '{odl_system_count}'
1313           vm_0_flavor: '{odl_system_flavor}'
1314           vm_0_image: '{odl_system_image}'
1315           vm_1_count: '{openstack_system_count}'
1316           vm_1_flavor: '{openstack_system_flavor}'
1317           vm_1_image: '{openstack_system_image}'
1318       - integration-install-robotframework
1319       - inject:
1320           properties-file: 'env.properties'
1321       - integration-get-slave-addresses
1322       - inject:
1323           properties-file: 'slave_addresses.txt'
1324       - integration-detect-variables
1325       - integration-deploy-controller-run-test
1326       - integration-deploy-openstack-run-test
1327       - integration-cleanup-tmp
1328
1329     publishers:
1330       - integration-robot-tempest:
1331           unstable-if: 0.0
1332           pass-if: 100.0
1333       - email-notification:
1334           email-recipients: '{email-recipients}'
1335           email-prefix: '[{project}]'
1336       - integration-csit-archive-build
1337       - lf-infra-publish
1338
1339 # Template: {project}-patch-test-{stream}
1340 # Goal: Build a patch and run project specific system test on a distribution containing the change
1341 # Operation: This job template builds a patch, creates a distribution containing the patch, and
1342 # triggers the project system test defined in {csit-list} when gerrit receives test-{project} keyword
1343
1344 - job-template:
1345     name: '{project}-patch-test-{feature}-{stream}'
1346
1347     project-type: freestyle
1348     node: centos7-java-builder-2c-8g
1349     concurrent: true
1350     jdk: '{jdk}'
1351
1352     properties:
1353       - opendaylight-infra-properties:
1354           build-days-to-keep: '{build-days-to-keep}'
1355
1356     parameters:
1357       - opendaylight-infra-parameters:
1358           os-cloud: '{os-cloud}'
1359           project: '{project}'
1360           branch: '{branch}'
1361           refspec: 'refs/heads/{branch}'
1362           artifacts: '{archive-artifacts}'
1363       - integration-distribution-branch:
1364           branch: '{branch}'
1365       - distribution-karaf-version:
1366           karaf-version: 'karaf3'
1367       - integration-distribution-git-url:
1368           git-url: '{git-url}'
1369       - string:
1370           name: feature
1371           default: 'all'
1372           description: 'Specific feature test for patch'
1373       - maven-exec:
1374           maven-version: mvn33
1375
1376     scm:
1377       - integration-gerrit-scm:
1378           basedir: '{project}'
1379           refspec: '$GERRIT_REFSPEC'
1380           branch: '{branch}'
1381       - integration-distribution-scm:
1382           branch: '{branch}'
1383
1384     wrappers:
1385       - opendaylight-infra-wrappers:
1386           build-timeout: '{build-timeout}'
1387
1388     triggers:
1389       - gerrit:
1390           server-name: '{server-name}'
1391           trigger-on:
1392             - comment-added-contains-event:
1393                 comment-contains-value: 'test-{project}-all'
1394             - comment-added-contains-event:
1395                 comment-contains-value: 'test-{project}-{feature}'
1396           projects:
1397             - project-compare-type: 'ANT'
1398               project-pattern: '{project}'
1399               branches:
1400                 - branch-compare-type: 'ANT'
1401                   branch-pattern: '**/{branch}'
1402           skip-vote:
1403             successful: true
1404             failed: true
1405             unstable: true
1406             notbuilt: true
1407
1408     builders:
1409       - integration-rebase-gerrit-patch
1410       - wipe-org-opendaylight-repo
1411       - maven-target:
1412           maven-version: mvn33
1413           pom: '{project}/pom.xml'
1414           goals: |
1415               clean install dependency:tree
1416               -Pq
1417               -Dgitid.skip=false
1418               -DgenerateReports=false
1419               -Dstream={stream}
1420               {opendaylight-infra-mvn-opts}
1421           java-opts:
1422             - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
1423           settings: integration-settings
1424           settings-type: cfp
1425           global-settings: odl-global-settings
1426           global-settings-type: cfp
1427       - maven-target:
1428           maven-version: mvn33
1429           pom: distribution/pom.xml
1430           goals: |
1431               clean install dependency:tree
1432               -Pq
1433               -Dgitid.skip=false
1434               {opendaylight-infra-mvn-opts}
1435           java-opts:
1436             - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
1437           settings: integration-settings
1438           settings-type: cfp
1439           global-settings: odl-global-settings
1440           global-settings-type: cfp
1441       - integration-upload-distribution:
1442           dist-pom: distribution/pom.xml
1443       - trigger-builds:
1444           - project: '{csit-list}'
1445             block: true
1446             predefined-parameters: |
1447               BUNDLE_URL=$BUNDLE_URL
1448               KARAF_VERSION=$KARAF_VERSION
1449
1450     publishers:
1451       - email-notification:
1452           email-recipients: '{email-recipients}'
1453           email-prefix: '[{project}]'