Merge "Creating first pass of robot tests."
[releng/builder.git] / jjb / integration / integration-templates.yaml
1 - job-template:
2     name: '{project}-distribution-{stream}'
3
4     project-type: maven
5     node: dynamic_merge
6     jdk: '{jdk}'
7
8     logrotate:
9         daysToKeep: '{build-days-to-keep}'
10         numToKeep: '{build-num-to-keep}'
11         artifactDaysToKeep: '{build-artifact-days-to-keep}'
12         artifactNumToKeep: '{build-artifact-num-to-keep}'
13
14     parameters:
15         - project-parameter:
16             project: 'integration'
17
18     scm:
19         - git-scm:
20             credentials-id: '{ssh-credentials}'
21             refspec: ''
22             branch: '{branch}'
23
24     wrappers:
25         - build-timeout
26         - ssh-agent-credentials:
27             users:
28                 - '{ssh-credentials}'
29
30     triggers:
31         - reverse:
32             jobs: '{project}-merge-{stream}'
33             result: 'success'
34
35     prebuilders:
36         - wipe-org-opendaylight-repo
37
38     maven:
39         maven-name: '{mvn32}'
40         root-pom: 'pom.xml'
41         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install source:jar javadoc:jar'
42         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
43         settings: '{integration-settings}'
44         global-settings: '{odl-global-settings}'
45
46     publishers:
47         - email-notification:
48             email-prefix: '[{project}]'
49         - maven-deploy:
50             id: ''
51             unique-version: true
52             deploy-unstable: false
53
54 - job-template:
55     name: '{project}-csit-verify-{functionality}-{stream}'
56
57     project-type: freestyle
58     node: dynamic_robot
59
60     logrotate:
61         daysToKeep: '{build-days-to-keep}'
62         numToKeep: '{build-num-to-keep}'
63         artifactDaysToKeep: '{build-artifact-days-to-keep}'
64         artifactNumToKeep: '{build-artifact-num-to-keep}'
65
66     parameters:
67         - project-parameter:
68             project: 'integration'
69         - integration-branch:
70             branch: '{branch}'
71         - integration-bundleurl:
72             bundleurl: 'last'
73         - integration-controller-scope:
74             controller-scope: 'only'
75         - integration-controller-features:
76             controller-features: '{install-features}'
77         - integration-test-options:
78             test-options: '{robot-options}'
79         - integration-test-plan:
80             test-plan: '{project}-{functionality}.txt'
81
82     scm:
83         - gerrit-trigger-scm:
84             credentials-id: '{ssh-credentials}'
85             refspec: '$GERRIT_REFSPEC'
86             choosing-strategy: 'gerrit'
87
88     wrappers:
89         - build-timeout
90         - integration-jclouds-controller-mininet:
91             controller-vms: 1
92             mininet-vms: 1
93         - ssh-agent-credentials:
94             users:
95                 - '{ssh-credentials}'
96
97     triggers:
98         - integration-test-gerrit-trigger-patch-submitted:
99             name: 'integration'
100             branch: '{branch}'
101             project: '{project}'
102
103     builders:
104         - integration-get-slave-addresses
105         - inject:
106             properties-file: 'slave_addresses.txt'
107         - integration-deploy-controller-run-test
108
109     publishers:
110         - integration-robot:
111             unstable-if: 0.0
112             pass-if: 0.0
113         - archive:
114             artifacts: 'karaf.log'
115         - email-notification:
116             email-prefix: '[{project}]'
117
118 - job-template:
119     name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}'
120
121     project-type: freestyle
122     node: dynamic_robot
123
124     logrotate:
125         daysToKeep: '{build-days-to-keep}'
126         numToKeep: '{build-num-to-keep}'
127         artifactDaysToKeep: '{build-artifact-days-to-keep}'
128         artifactNumToKeep: '{build-artifact-num-to-keep}'
129
130     parameters:
131         - project-parameter:
132             project: 'integration'
133         - integration-branch:
134             branch: '{branch}'
135         - integration-bundleurl:
136             bundleurl: 'last'
137         - integration-controller-scope:
138             controller-scope: '{scope}'
139         - integration-controller-features:
140             controller-features: '{install-features}'
141         - integration-test-options:
142             test-options: '{robot-options}'
143         - integration-test-plan:
144             test-plan: '{project}-{functionality}.txt'
145
146     scm:
147         - git-scm:
148             credentials-id: '{ssh-credentials}'
149             refspec: ''
150             branch: '{branch}'
151
152     wrappers:
153         - build-timeout
154         - integration-jclouds-controller-mininet:
155             controller-vms: 1
156             mininet-vms: 1
157         - ssh-agent-credentials:
158             users:
159                 - '{ssh-credentials}'
160
161     triggers:
162         - reverse:
163             jobs: '{trigger-jobs}'
164             result: 'success'
165
166     builders:
167         - integration-get-slave-addresses
168         - inject:
169             properties-file: 'slave_addresses.txt'
170         - integration-deploy-controller-run-test
171
172     publishers:
173         - integration-robot:
174             unstable-if: 0.0
175             pass-if: 100.0
176         - archive:
177             artifacts: 'karaf.log'
178         - email-notification:
179             email-prefix: '[{project}]'
180         - plot:
181           - title: '{01-plot-title}'
182             yaxis: '{01-plot-yaxis}'
183             group: '{01-plot-group}'
184             num-builds: '5400'
185             style: line
186             use-description: false
187             csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
188             series:
189               - file: '{01-plot-data-file}'
190                 inclusion-flag: 'off'
191                 display-table: true
192                 format: csv
193           - title: '{02-plot-title}'
194             yaxis: '{02-plot-yaxis}'
195             group: '{02-plot-group}'
196             num-builds: '5400'
197             style: line
198             use-description: false
199             csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
200             series:
201               - file: '{02-plot-data-file}'
202                 inclusion-flag: 'off'
203                 display-table: true
204                 format: csv
205
206 - job-template:
207     name: '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
208
209     project-type: freestyle
210     node: dynamic_robot
211
212     logrotate:
213         daysToKeep: '{build-days-to-keep}'
214         numToKeep: '{build-num-to-keep}'
215         artifactDaysToKeep: '{build-artifact-days-to-keep}'
216         artifactNumToKeep: '{build-artifact-num-to-keep}'
217
218     parameters:
219         - project-parameter:
220             project: 'integration'
221         - integration-branch:
222             branch: '{branch}'
223         - integration-bundleurl:
224             bundleurl: 'last'
225         - integration-controller-scope:
226             controller-scope: '{scope}'
227         - integration-controller-features:
228             controller-features: '{install-features}'
229         - integration-test-options:
230             test-options: '{robot-options}'
231         - integration-test-plan:
232             test-plan: '{project}-{functionality}.txt'
233
234     scm:
235         - git-scm:
236             credentials-id: '{ssh-credentials}'
237             refspec: ''
238             branch: '{branch}'
239
240     wrappers:
241         - build-timeout
242         - integration-jclouds-controller-mininet:
243             controller-vms: 1
244             mininet-vms: 1
245         - ssh-agent-credentials:
246             users:
247                 - '{ssh-credentials}'
248
249     triggers:
250         - reverse:
251             jobs: '{trigger-jobs}'
252             result: 'success'
253
254     builders:
255         - integration-get-slave-addresses
256         - inject:
257             properties-file: 'slave_addresses.txt'
258         - integration-deploy-controller-run-test
259
260     publishers:
261         - integration-robot:
262             unstable-if: 0.0
263             pass-if: 100.0
264         - archive:
265             artifacts: 'karaf.log'
266         - email-notification:
267             email-prefix: '[{project}]'
268         - plot:
269           - title: '{01-plot-title}'
270             yaxis: '{01-plot-yaxis}'
271             group: '{01-plot-group}'
272             num-builds: '5400'
273             style: line
274             use-description: false
275             csv-file-name: '{project}-csit-1node-cds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
276             series:
277               - file: '{01-plot-data-file}'
278                 inclusion-flag: 'off'
279                 display-table: true
280                 format: csv
281           - title: '{02-plot-title}'
282             yaxis: '{02-plot-yaxis}'
283             group: '{02-plot-group}'
284             num-builds: '5400'
285             style: line
286             use-description: false
287             csv-file-name: '{project}-csit-1node-cds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
288             series:
289               - file: '{02-plot-data-file}'
290                 inclusion-flag: 'off'
291                 display-table: true
292                 format: csv
293
294
295 - job-template:
296     name: '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}'
297
298     project-type: freestyle
299     node: dynamic_robot
300
301     logrotate:
302         daysToKeep: '{build-days-to-keep}'
303         numToKeep: '{build-num-to-keep}'
304         artifactDaysToKeep: '{build-artifact-days-to-keep}'
305         artifactNumToKeep: '{build-artifact-num-to-keep}'
306
307     parameters:
308         - project-parameter:
309             project: 'integration'
310         - integration-branch:
311             branch: '{branch}'
312         - integration-bundleurl:
313             bundleurl: 'last'
314         - integration-controller-scope:
315             controller-scope: '{scope}'
316         - integration-controller-features:
317             controller-features: '{install-features}'
318         - integration-test-options:
319             test-options: '{robot-options}'
320         - integration-test-plan:
321             test-plan: '{project}-{functionality}.txt'
322
323     scm:
324         - git-scm:
325             credentials-id: '{ssh-credentials}'
326             refspec: ''
327             branch: '{branch}'
328
329     wrappers:
330         - build-timeout
331         - integration-jclouds-controller-mininet:
332             controller-vms: 1
333             mininet-vms: 1
334         - ssh-agent-credentials:
335             users:
336                 - '{ssh-credentials}'
337
338     triggers:
339         - timed: '{schedule}'
340
341     builders:
342         - integration-get-slave-addresses
343         - inject:
344             properties-file: 'slave_addresses.txt'
345         - integration-deploy-controller-run-test
346
347     publishers:
348         - integration-robot:
349             unstable-if: 0.0
350             pass-if: 100.0
351         - archive:
352             artifacts: 'karaf.log'
353         - email-notification:
354             email-prefix: '[{project}]'
355         - plot:
356           - title: '{01-plot-title}'
357             yaxis: '{01-plot-yaxis}'
358             group: '{01-plot-group}'
359             num-builds: '180'
360             style: line
361             use-description: false
362             csv-file-name: '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
363             series:
364               - file: '{01-plot-data-file}'
365                 inclusion-flag: 'off'
366                 display-table: true
367                 format: csv
368           - title: '{02-plot-title}'
369             yaxis: '{02-plot-yaxis}'
370             group: '{02-plot-group}'
371             num-builds: '180'
372             style: line
373             use-description: false
374             csv-file-name: '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
375             series:
376               - file: '{02-plot-data-file}'
377                 inclusion-flag: 'off'
378                 display-table: true
379                 format: csv
380
381
382 - job-template:
383     name: '{project}-csit-3node-cds-{functionality}-{install}-{stream}'
384
385     project-type: freestyle
386     node: dynamic_robot
387
388     logrotate:
389         daysToKeep: '{build-days-to-keep}'
390         numToKeep: '{build-num-to-keep}'
391         artifactDaysToKeep: '{build-artifact-days-to-keep}'
392         artifactNumToKeep: '{build-artifact-num-to-keep}'
393
394     parameters:
395         - project-parameter:
396             project: 'integration'
397         - integration-branch:
398             branch: '{branch}'
399         - integration-bundleurl:
400             bundleurl: 'last'
401         - integration-controller-scope:
402             controller-scope: '{scope}'
403         - integration-controller-features:
404             controller-features: 'odl-mdsal-clustering,{install-features}'
405         - integration-test-options:
406             test-options: '{robot-options}'
407         - integration-test-plan:
408             test-plan: '{project}-{functionality}.txt'
409
410     scm:
411         - git-scm:
412             credentials-id: '{ssh-credentials}'
413             refspec: ''
414             branch: '{branch}'
415
416     wrappers:
417         - build-timeout
418         - integration-jclouds-controller-mininet:
419             controller-vms: 3
420             mininet-vms: 1
421         - ssh-agent-credentials:
422             users:
423                 - '{ssh-credentials}'
424
425     triggers:
426         - reverse:
427             jobs: '{trigger-jobs}'
428             result: 'success'
429
430     builders:
431         - integration-get-slave-addresses
432         - inject:
433             properties-file: 'slave_addresses.txt'
434         - integration-get-bundle-vars
435         - inject:
436             properties-file: 'bundle_vars.txt'
437         - integration-deploy-controller
438         - integration-configure-clustering
439         - integration-start-cluster-run-test
440     publishers:
441         - integration-robot:
442             unstable-if: 95.0
443             pass-if: 100.0
444         - archive:
445             artifacts: '*karaf.log'
446         - email-notification:
447             email-prefix: '[{project}]'
448         - plot:
449           - title: '{01-plot-title}'
450             yaxis: '{01-plot-yaxis}'
451             group: '{01-plot-group}'
452             num-builds: '5400'
453             style: line
454             use-description: false
455             csv-file-name: '{project}-csit-3node-cds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv'
456             series:
457               - file: '{01-plot-data-file}'
458                 inclusion-flag: 'off'
459                 display-table: true
460                 format: csv
461           - title: '{02-plot-title}'
462             yaxis: '{02-plot-yaxis}'
463             group: '{02-plot-group}'
464             num-builds: '5400'
465             style: line
466             use-description: false
467             csv-file-name: '{project}-csit-3node-cds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv'
468             series:
469               - file: '{02-plot-data-file}'
470                 inclusion-flag: 'off'
471                 display-table: true
472                 format: csv
473