Merge "Run integration-test job post-build"
[releng/builder.git] / jjb / integration / integration-templates.yaml
1 # Job templates in this file (please update with every new template):
2
3 # Old templates:
4 # {project}-csit-verify-1node-{functionality}-{stream}
5 # {project}-csit-1node-imds-{functionality}-{install}-{stream}
6 #
7 # New (for Be release):
8 # {project}-csit-verify-1node-{functionality}
9 # {project}-csit-1node-{functionality}-{install}-{stream}
10 # {project}-csit-1node-periodic-{functionality}-{install}-{stream}
11 # {project}-csit-verify-3node-{functionality}
12 # {project}-csit-3node-{functionality}-{install}-{stream}
13 # {project}-csit-3node-periodic-{functionality}-{install}-{stream}
14 #
15 # Parameters:
16 #
17 # project-parameter: main project integration/test ($PROJECT)
18 # integration-branch: distribution branch ($BRANCH)
19 # integration-controller-bundleurl: distribution URL ($BUNDLEURL)
20 # integration-controller-scope: only or all features ($CONTROLLERSCOPE)
21 # integration-controller-features: features under test ($CONTROLLER FEATURES)
22 # integration-test-options: robot options ($TESTOPTIONS)
23 # integration-test-plan: robot test plan ($TESTPLAN)
24 # integration-patch-refspec: test branch ($PATCHREFSPEC)
25
26
27
28 # Old templates
29
30 - job-template:
31     name: '{project}-csit-verify-1node-{functionality}-{stream}'
32
33     project-type: freestyle
34     node: dynamic_robot
35
36     logrotate:
37         daysToKeep: '{build-days-to-keep}'
38         numToKeep: '{build-num-to-keep}'
39         artifactDaysToKeep: '{build-artifact-days-to-keep}'
40         artifactNumToKeep: '{build-num-to-keep}'
41
42     parameters:
43         - project-parameter:
44             project: 'integration/test'
45         - integration-branch:
46             branch: 'master'
47         - integration-bundleurl:
48             bundleurl: 'last'
49         - integration-controller-scope:
50             controller-scope: 'only'
51         - integration-controller-features:
52             controller-features: '{install-features}'
53         - integration-test-options:
54             test-options: '{robot-options}'
55         - integration-test-plan:
56             test-plan: '{project}-{functionality}.txt'
57
58     scm:
59         - integration-gerrit-scm:
60             credentials-id: '{ssh-credentials}'
61             basedir: 'test'
62             refspec: '$GERRIT_REFSPEC'
63             branch: 'master'
64
65     wrappers:
66         - build-timeout
67         - integration-jclouds-controller-mininet:
68             controller-vms: 1
69             mininet-image: '{mininet-image}'
70             mininet-vms: '{mininet-vms}'
71         - ssh-agent-credentials:
72             users:
73                 - '{ssh-credentials}'
74
75     triggers:
76         - integration-trigger-patch-submitted:
77             name: 'integration/test'
78             branch: '{branch}'
79             pattern: 'csit/suites/{project}/**'
80
81     builders:
82         - integration-get-slave-addresses
83         - inject:
84             properties-file: 'slave_addresses.txt'
85         - integration-get-bundle-vars
86         - inject:
87             properties-file: 'bundle_vars.txt'
88         - integration-deploy-controller-run-test
89
90     publishers:
91         - integration-robot:
92             unstable-if: 0.0
93             pass-if: 0.0
94         - archive:
95             artifacts: 'karaf.log'
96         - email-notification:
97             email-prefix: '[{project}]'
98
99 - job-template:
100     name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}'
101
102     project-type: freestyle
103     node: dynamic_robot
104
105     logrotate:
106         daysToKeep: '{build-days-to-keep}'
107         numToKeep: '{build-num-to-keep}'
108         artifactDaysToKeep: '{build-artifact-days-to-keep}'
109         artifactNumToKeep: '{build-num-to-keep}'
110
111     parameters:
112         - project-parameter:
113             project: 'integration/test'
114         - integration-branch:
115             branch: '{branch}'
116         - integration-bundleurl:
117             bundleurl: 'last'
118         - integration-controller-scope:
119             controller-scope: '{scope}'
120         - integration-controller-features:
121             controller-features: '{install-features}'
122         - integration-test-options:
123             test-options: '{robot-options}'
124         - integration-test-plan:
125             test-plan: '{project}-{functionality}.txt'
126         - integration-patch-refspec:
127             branch: 'stable/helium'
128
129     scm:
130         - integration-gerrit-scm:
131             credentials-id: '{ssh-credentials}'
132             basedir: 'test'
133             refspec: '$PATCHREFSPEC'
134             branch: 'master'
135
136     wrappers:
137         - build-timeout
138         - integration-jclouds-controller-mininet:
139             controller-vms: 1
140             mininet-image: '{mininet-image}'
141             mininet-vms: '{mininet-vms}'
142         - ssh-agent-credentials:
143             users:
144                 - '{ssh-credentials}'
145
146     triggers:
147         - reverse:
148             jobs: '{trigger-jobs}'
149             result: 'success'
150
151     builders:
152         - integration-get-slave-addresses
153         - inject:
154             properties-file: 'slave_addresses.txt'
155         - integration-get-bundle-vars
156         - inject:
157             properties-file: 'bundle_vars.txt'
158         - integration-deploy-controller-run-test
159
160     publishers:
161         - integration-robot:
162             unstable-if: 0.0
163             pass-if: 100.0
164         - archive:
165             artifacts: 'karaf.log'
166         - email-notification:
167             email-prefix: '[{project}]'
168         - plot:
169           - title: '{01-plot-title}'
170             yaxis: '{01-plot-yaxis}'
171             group: '{01-plot-group}'
172             num-builds: '5400'
173             style: line
174             use-description: false
175             csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
176             keep-records: true
177             series:
178               - file: '{01-plot-data-file}'
179                 inclusion-flag: 'off'
180                 display-table: true
181                 format: csv
182           - title: '{02-plot-title}'
183             yaxis: '{02-plot-yaxis}'
184             group: '{02-plot-group}'
185             num-builds: '5400'
186             style: line
187             use-description: false
188             csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
189             keep-records: true
190             series:
191               - file: '{02-plot-data-file}'
192                 inclusion-flag: 'off'
193                 display-table: true
194                 format: csv
195
196 # New templates
197
198 - job-template:
199     name: '{project}-csit-verify-1node-{functionality}'
200
201     project-type: freestyle
202     node: dynamic_robot
203
204     logrotate:
205         daysToKeep: '{build-days-to-keep}'
206         numToKeep: '{build-num-to-keep}'
207         artifactDaysToKeep: '{build-artifact-days-to-keep}'
208         artifactNumToKeep: '{build-num-to-keep}'
209
210     parameters:
211         - project-parameter:
212             project: 'integration/test'
213         - integration-branch:
214             branch: 'master'
215         - integration-bundleurl:
216             bundleurl: 'last'
217         - integration-controller-scope:
218             controller-scope: 'only'
219         - integration-controller-features:
220             controller-features: '{install-features}'
221         - integration-test-options:
222             test-options: '{robot-options}'
223         - integration-test-plan:
224             test-plan: '{project}-{functionality}.txt'
225
226     scm:
227         - integration-gerrit-scm:
228             credentials-id: '{ssh-credentials}'
229             basedir: 'test'
230             refspec: '$GERRIT_REFSPEC'
231             branch: 'master'
232
233     wrappers:
234         - build-timeout
235         - integration-jclouds-controller-mininet:
236             controller-vms: 1
237             mininet-image: '{mininet-image}'
238             mininet-vms: '{mininet-vms}'
239         - ssh-agent-credentials:
240             users:
241                 - '{ssh-credentials}'
242
243     triggers:
244         - integration-trigger-patch-submitted:
245             name: 'integration/test'
246             branch: 'master'
247             pattern: 'csit/suites/{project}/**'
248
249     builders:
250         - integration-get-slave-addresses
251         - inject:
252             properties-file: 'slave_addresses.txt'
253         - integration-get-bundle-vars
254         - inject:
255             properties-file: 'bundle_vars.txt'
256         - integration-deploy-controller-run-test
257
258     publishers:
259         - integration-robot:
260             unstable-if: 0.0
261             pass-if: 0.0
262         - archive:
263             artifacts: 'karaf.log'
264         - email-notification:
265             email-prefix: '[{project}]'
266
267 - job-template:
268     name: '{project}-csit-1node-{functionality}-{install}-{stream}'
269
270     project-type: freestyle
271     node: dynamic_robot
272
273     logrotate:
274         daysToKeep: '{build-days-to-keep}'
275         numToKeep: '{build-num-to-keep}'
276         artifactDaysToKeep: '{build-artifact-days-to-keep}'
277         artifactNumToKeep: '{build-num-to-keep}'
278
279     parameters:
280         - project-parameter:
281             project: 'integration/test'
282         - integration-branch:
283             branch: '{branch}'
284         - integration-bundleurl:
285             bundleurl: 'last'
286         - integration-controller-scope:
287             controller-scope: '{scope}'
288         - integration-controller-features:
289             controller-features: '{install-features}'
290         - integration-test-options:
291             test-options: '{robot-options}'
292         - integration-test-plan:
293             test-plan: '{project}-{functionality}.txt'
294         - integration-patch-refspec:
295             branch: 'master'
296
297     scm:
298         - integration-gerrit-scm:
299             credentials-id: '{ssh-credentials}'
300             basedir: 'test'
301             refspec: '$PATCHREFSPEC'
302             branch: 'master'
303
304     wrappers:
305         - build-timeout
306         - integration-jclouds-controller-mininet:
307             controller-vms: 1
308             mininet-image: '{mininet-image}'
309             mininet-vms: '{mininet-vms}'
310         - ssh-agent-credentials:
311             users:
312                 - '{ssh-credentials}'
313
314     triggers:
315         - reverse:
316             jobs: '{trigger-jobs}'
317             result: 'success'
318
319     builders:
320         - integration-get-slave-addresses
321         - inject:
322             properties-file: 'slave_addresses.txt'
323         - integration-get-bundle-vars
324         - inject:
325             properties-file: 'bundle_vars.txt'
326         - integration-deploy-controller-run-test
327
328     publishers:
329         - integration-robot:
330             unstable-if: 0.0
331             pass-if: 100.0
332         - archive:
333             artifacts: 'karaf.log'
334         - email-notification:
335             email-prefix: '[{project}]'
336         - plot:
337           - title: '{01-plot-title}'
338             yaxis: '{01-plot-yaxis}'
339             group: '{01-plot-group}'
340             num-builds: '5400'
341             style: line
342             use-description: false
343             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
344             series:
345               - file: '{01-plot-data-file}'
346                 inclusion-flag: 'off'
347                 display-table: true
348                 format: csv
349           - title: '{02-plot-title}'
350             yaxis: '{02-plot-yaxis}'
351             group: '{02-plot-group}'
352             num-builds: '5400'
353             style: line
354             use-description: false
355             csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
356             series:
357               - file: '{02-plot-data-file}'
358                 inclusion-flag: 'off'
359                 display-table: true
360                 format: csv
361
362 - job-template:
363     name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}'
364
365     project-type: freestyle
366     node: dynamic_robot
367
368     logrotate:
369         daysToKeep: '{build-days-to-keep}'
370         numToKeep: '{build-num-to-keep}'
371         artifactDaysToKeep: '{build-artifact-days-to-keep}'
372         artifactNumToKeep: '{build-num-to-keep}'
373
374     parameters:
375         - project-parameter:
376             project: 'integration/test'
377         - integration-branch:
378             branch: '{branch}'
379         - integration-bundleurl:
380             bundleurl: 'last'
381         - integration-controller-scope:
382             controller-scope: '{scope}'
383         - integration-controller-features:
384             controller-features: '{install-features}'
385         - integration-test-options:
386             test-options: '{robot-options}'
387         - integration-test-plan:
388             test-plan: '{project}-{functionality}.txt'
389         - integration-patch-refspec:
390             branch: 'master'
391
392     scm:
393         - integration-gerrit-scm:
394             credentials-id: '{ssh-credentials}'
395             basedir: 'test'
396             refspec: '$PATCHREFSPEC'
397             branch: 'master'
398
399     wrappers:
400         - integration-jclouds-controller-mininet:
401             controller-vms: 1
402             mininet-image: '{mininet-image}'
403             mininet-vms: '{mininet-vms}'
404         - ssh-agent-credentials:
405             users:
406                 - '{ssh-credentials}'
407
408     triggers:
409         - timed: '{schedule}'
410
411     builders:
412         - integration-get-slave-addresses
413         - inject:
414             properties-file: 'slave_addresses.txt'
415         - integration-get-bundle-vars
416         - inject:
417             properties-file: 'bundle_vars.txt'
418         - integration-deploy-controller-run-test
419
420     publishers:
421         - integration-robot:
422             unstable-if: 0.0
423             pass-if: 100.0
424         - archive:
425             artifacts: 'karaf.log'
426         - email-notification:
427             email-prefix: '[{project}]'
428         - plot:
429           - title: '{01-plot-title}'
430             yaxis: '{01-plot-yaxis}'
431             group: '{01-plot-group}'
432             num-builds: '180'
433             style: line
434             use-description: false
435             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
436             series:
437               - file: '{01-plot-data-file}'
438                 inclusion-flag: 'off'
439                 display-table: true
440                 format: csv
441           - title: '{02-plot-title}'
442             yaxis: '{02-plot-yaxis}'
443             group: '{02-plot-group}'
444             num-builds: '180'
445             style: line
446             use-description: false
447             csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
448             series:
449               - file: '{02-plot-data-file}'
450                 inclusion-flag: 'off'
451                 display-table: true
452                 format: csv
453
454 - job-template:
455     name: '{project}-csit-verify-3node-{functionality}'
456
457     project-type: freestyle
458     node: dynamic_robot
459
460     logrotate:
461         daysToKeep: '{build-days-to-keep}'
462         numToKeep: '{build-num-to-keep}'
463         artifactDaysToKeep: '{build-artifact-days-to-keep}'
464         artifactNumToKeep: '{build-num-to-keep}'
465
466     parameters:
467         - project-parameter:
468             project: 'integration/test'
469         - integration-branch:
470             branch: 'master'
471         - integration-bundleurl:
472             bundleurl: 'last'
473         - integration-controller-scope:
474             controller-scope: 'only'
475         - integration-controller-features:
476             controller-features: 'odl-mdsal-clustering,{install-features}'
477         - integration-test-options:
478             test-options: '{robot-options}'
479         - integration-test-plan:
480             test-plan: '{project}-{functionality}.txt'
481
482     scm:
483         - integration-gerrit-scm:
484             credentials-id: '{ssh-credentials}'
485             basedir: 'test'
486             refspec: '$GERRIT_REFSPEC'
487             branch: 'master'
488
489     wrappers:
490         - build-timeout
491         - integration-jclouds-controller-mininet:
492             controller-vms: 3
493             mininet-image: '{mininet-image}'
494             mininet-vms: '{mininet-vms}'
495         - ssh-agent-credentials:
496             users:
497                 - '{ssh-credentials}'
498
499     triggers:
500         - integration-trigger-patch-submitted:
501             name: 'integration/test'
502             branch: 'master'
503             pattern: 'csit/suites/{project}/**'
504
505     builders:
506         - integration-get-slave-addresses
507         - inject:
508             properties-file: 'slave_addresses.txt'
509         - integration-get-bundle-vars
510         - inject:
511             properties-file: 'bundle_vars.txt'
512         - integration-deploy-controller
513         - integration-configure-clustering
514         - integration-start-cluster-run-test
515     publishers:
516         - integration-robot:
517             unstable-if: 0.0
518             pass-if: 0.0
519         - archive:
520             artifacts: '*karaf.log'
521         - email-notification:
522             email-prefix: '[{project}]'
523
524 - job-template:
525     name: '{project}-csit-3node-{functionality}-{install}-{stream}'
526
527     project-type: freestyle
528     node: dynamic_robot
529
530     logrotate:
531         daysToKeep: '{build-days-to-keep}'
532         numToKeep: '{build-num-to-keep}'
533         artifactDaysToKeep: '{build-artifact-days-to-keep}'
534         artifactNumToKeep: '{build-num-to-keep}'
535
536     parameters:
537         - project-parameter:
538             project: 'integration/test'
539         - integration-branch:
540             branch: '{branch}'
541         - integration-bundleurl:
542             bundleurl: 'last'
543         - integration-controller-scope:
544             controller-scope: '{scope}'
545         - integration-controller-features:
546             controller-features: 'odl-mdsal-clustering,{install-features}'
547         - integration-test-options:
548             test-options: '{robot-options}'
549         - integration-test-plan:
550             test-plan: '{project}-{functionality}.txt'
551         - integration-patch-refspec:
552             branch: 'master'
553
554     scm:
555         - integration-gerrit-scm:
556             credentials-id: '{ssh-credentials}'
557             basedir: 'test'
558             refspec: '$PATCHREFSPEC'
559             branch: 'master'
560
561     wrappers:
562         - build-timeout
563         - integration-jclouds-controller-mininet:
564             controller-vms: 3
565             mininet-image: '{mininet-image}'
566             mininet-vms: '{mininet-vms}'
567         - ssh-agent-credentials:
568             users:
569                 - '{ssh-credentials}'
570
571     triggers:
572         - reverse:
573             jobs: '{trigger-jobs}'
574             result: 'success'
575
576     builders:
577         - integration-get-slave-addresses
578         - inject:
579             properties-file: 'slave_addresses.txt'
580         - integration-get-bundle-vars
581         - inject:
582             properties-file: 'bundle_vars.txt'
583         - integration-deploy-controller
584         - integration-configure-clustering
585         - integration-start-cluster-run-test
586
587     publishers:
588         - integration-robot:
589             unstable-if: 0.0
590             pass-if: 100.0
591         - archive:
592             artifacts: '*karaf.log'
593         - email-notification:
594             email-prefix: '[{project}]'
595         - plot:
596           - title: '{01-plot-title}'
597             yaxis: '{01-plot-yaxis}'
598             group: '{01-plot-group}'
599             num-builds: '5400'
600             style: line
601             use-description: false
602             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
603             series:
604               - file: '{01-plot-data-file}'
605                 inclusion-flag: 'off'
606                 display-table: true
607                 format: csv
608           - title: '{02-plot-title}'
609             yaxis: '{02-plot-yaxis}'
610             group: '{02-plot-group}'
611             num-builds: '5400'
612             style: line
613             use-description: false
614             csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
615             series:
616               - file: '{02-plot-data-file}'
617                 inclusion-flag: 'off'
618                 display-table: true
619                 format: csv
620
621 - job-template:
622     name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}'
623
624     project-type: freestyle
625     node: dynamic_robot
626
627     logrotate:
628         daysToKeep: '{build-days-to-keep}'
629         numToKeep: '{build-num-to-keep}'
630         artifactDaysToKeep: '{build-artifact-days-to-keep}'
631         artifactNumToKeep: '{build-num-to-keep}'
632
633     parameters:
634         - project-parameter:
635             project: 'integration/test'
636         - integration-branch:
637             branch: '{branch}'
638         - integration-bundleurl:
639             bundleurl: 'last'
640         - integration-controller-scope:
641             controller-scope: '{scope}'
642         - integration-controller-features:
643             controller-features: 'odl-mdsal-clustering,{install-features}'
644         - integration-test-options:
645             test-options: '{robot-options}'
646         - integration-test-plan:
647             test-plan: '{project}-{functionality}.txt'
648         - integration-patch-refspec:
649             branch: 'master'
650
651     scm:
652         - integration-gerrit-scm:
653             credentials-id: '{ssh-credentials}'
654             basedir: 'test'
655             refspec: '$PATCHREFSPEC'
656             branch: 'master'
657
658     wrappers:
659         - integration-jclouds-controller-mininet:
660             controller-vms: 3
661             mininet-image: '{mininet-image}'
662             mininet-vms: '{mininet-vms}'
663         - ssh-agent-credentials:
664             users:
665                 - '{ssh-credentials}'
666
667     triggers:
668         - timed: '{schedule}'
669
670     builders:
671         - integration-get-slave-addresses
672         - inject:
673             properties-file: 'slave_addresses.txt'
674         - integration-get-bundle-vars
675         - inject:
676             properties-file: 'bundle_vars.txt'
677         - integration-deploy-controller
678         - integration-configure-clustering
679         - integration-start-cluster-run-test
680
681     publishers:
682         - integration-robot:
683             unstable-if: 0.0
684             pass-if: 100.0
685         - archive:
686             artifacts: '*karaf.log'
687         - email-notification:
688             email-prefix: '[{project}]'
689         - plot:
690           - title: '{01-plot-title}'
691             yaxis: '{01-plot-yaxis}'
692             group: '{01-plot-group}'
693             num-builds: '5400'
694             style: line
695             use-description: false
696             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
697             series:
698               - file: '{01-plot-data-file}'
699                 inclusion-flag: 'off'
700                 display-table: true
701                 format: csv
702           - title: '{02-plot-title}'
703             yaxis: '{02-plot-yaxis}'
704             group: '{02-plot-group}'
705             num-builds: '5400'
706             style: line
707             use-description: false
708             csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
709             series:
710               - file: '{02-plot-data-file}'
711                 inclusion-flag: 'off'
712                 display-table: true
713                 format: csv