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