Update automated project templates
[releng/builder.git] / jjb / toolkit / toolkit.yaml
1 # REMOVE THIS LINE IF YOU WANT TO CUSTOMIZE ANYTHING BELOW
2 # Otherwise this file will be automatically overwritten by the template
3 # autobuilder.
4
5 # ODL Releng build templates
6 - project:
7     name: toolkit
8     jobs:
9         - 'toolkit-verify-{stream}'
10         - 'toolkit-merge-{stream}'
11         - 'toolkit-daily-{stream}'
12         - 'toolkit-distribution-{stream}'
13         - 'toolkit-integration-{stream}'
14         - 'toolkit-sonar'
15         - 'toolkit-clm-{stream}'
16
17
18     # stream:    branch with - in place of / (eg. stable-helium)
19     # branch:    branch (eg. stable/helium)
20     stream:
21         - master:
22             branch: 'master'
23             jdk: openjdk7
24             jdks:
25                 - openjdk7
26
27     project: 'toolkit'
28
29 # For the Job templates below replace instances of:
30 # PROJECT with your project name (eg. controller)
31 # MAVEN_GOALS with your maven goals to build
32 # MAVEN_OPTS with your maven options to build
33
34 - job-template:
35     name: 'toolkit-verify-{stream}'
36
37     # Job template for ODL verify jobs
38     #
39     # The purpose of this job template is to setup a ODL verify job
40     #
41     # Required Variables:
42     #     stream:    branch with - in place of / (eg. stable-helium)
43     #     branch:    branch (eg. stable/helium)
44
45     project-type: matrix
46     node: matrix_master
47     concurrent: true
48
49     axes:
50         - axis:
51             type: slave
52             name: nodes
53             values:
54                 - dynamic_verify
55         - axis:
56             type: jdk
57             values: '{obj:jdks}'
58
59     logrotate:
60         daysToKeep: '{build-days-to-keep}'
61         numToKeep: '{build-num-to-keep}'
62         artifactDaysToKeep: '{build-artifact-days-to-keep}'
63         artifactNumToKeep: '{build-artifact-num-to-keep}'
64
65     parameters:
66         - project-parameter:
67             project: '{project}'
68         - gerrit-parameter:
69             branch: '{branch}'
70
71     scm:
72         - gerrit-trigger-scm:
73             credentials-id: '{ssh-credentials}'
74             refspec: '$GERRIT_REFSPEC'
75             choosing-strategy: 'gerrit'
76
77     wrappers:
78         - build-timeout
79         - ssh-agent-credentials:
80             users:
81                 - '{ssh-credentials}'
82
83     triggers:
84         - gerrit-trigger-patch-submitted:
85             name: 'toolkit'
86             branch: '{branch}'
87
88     builders:
89         - wipe-org-opendaylight-repo
90         - jacoco-nojava-workaround
91         - maven-target:
92             maven-version: '{mvn33}'
93             pom: 'pom.xml'
94             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
95             java-opts:
96                 - '-Xmx1024m -XX:MaxPermSize=256m'
97             settings: '{toolkit-settings}'
98             global-settings: '{odl-global-settings}'
99
100     publishers:
101         - findbugs
102         - email-notification:
103             email-prefix: '[toolkit]'
104         - jacoco-report
105
106 - job-template:
107     name: 'toolkit-merge-{stream}'
108
109     # Job template for ODL merge jobs
110     #
111     # The purpose of this job template is to setup a ODL merge job
112     # and deploy artifacts to Nexus.
113     #
114     # Required Variables:
115     #     stream:    branch with - in place of / (eg. stable-helium)
116     #     branch:    branch (eg. stable/helium)
117
118     project-type: maven
119     node: dynamic_merge
120     jdk: '{jdk}'
121
122     logrotate:
123         daysToKeep: '{build-days-to-keep}'
124         numToKeep: '{build-num-to-keep}'
125         artifactDaysToKeep: '{build-artifact-days-to-keep}'
126         artifactNumToKeep: '{build-artifact-num-to-keep}'
127
128     parameters:
129         - project-parameter:
130             project: '{project}'
131
132     scm:
133         - gerrit-trigger-scm:
134             credentials-id: '{ssh-credentials}'
135             refspec: ''
136             choosing-strategy: 'default'
137
138     wrappers:
139         - build-timeout
140         - ssh-agent-credentials:
141             users:
142                 - '{ssh-credentials}'
143
144     triggers:
145         - gerrit-trigger-patch-merged:
146             name: 'toolkit'
147             branch: '{branch}'
148
149     prebuilders:
150         - wipe-org-opendaylight-repo
151         - jacoco-nojava-workaround
152
153     maven:
154         maven-name: '{mvn33}'
155         root-pom: 'pom.xml'
156         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge'
157         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
158         settings: '{toolkit-settings}'
159         global-settings: '{odl-global-settings}'
160
161     reporters:
162         - findbugs
163
164     publishers:
165         - email-notification:
166             email-prefix: '[toolkit]'
167         - maven-deploy:
168             id: ''
169             unique-version: true
170             deploy-unstable: false
171         - jacoco-report
172
173 - job-template:
174     name: 'toolkit-daily-{stream}'
175
176     # Job template for daily builders
177     #
178     # The purpose of this job template is to setup a daily/nightly
179     # builder and pushes to Sonar analysis.
180     #
181     # Required Variables:
182     #     stream:    branch with - in place of / (eg. stable-helium)
183     #     branch:    branch (eg. stable/helium)
184
185     project-type: maven
186     node: dynamic_verify
187     jdk: '{jdk}'
188
189     logrotate:
190         daysToKeep: '{build-days-to-keep}'
191         numToKeep: '{build-num-to-keep}'
192         artifactDaysToKeep: '{build-artifact-days-to-keep}'
193         artifactNumToKeep: '{build-artifact-num-to-keep}'
194
195     parameters:
196         - project-parameter:
197             project: '{project}'
198
199     scm:
200         - git-scm:
201             credentials-id: '{ssh-credentials}'
202             refspec: ''
203             branch: '{branch}'
204
205     wrappers:
206         - build-timeout
207         - ssh-agent-credentials:
208             users:
209                 - '{ssh-credentials}'
210
211     triggers:
212         - timed: 'H H * * *'
213
214     prebuilders:
215         - wipe-org-opendaylight-repo
216         - jacoco-nojava-workaround
217
218     maven:
219         maven-name: '{mvn33}'
220         root-pom: 'pom.xml'
221         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
222         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
223         settings: '{toolkit-settings}'
224         global-settings: '{odl-global-settings}'
225
226     reporters:
227         - findbugs
228
229     publishers:
230         - email-notification:
231             email-prefix: '[toolkit]'
232         - jacoco-report
233
234 - job-template:
235     name: 'toolkit-distribution-{stream}'
236
237     project-type: maven
238     node: dynamic_merge
239     jdk: '{jdk}'
240
241     logrotate:
242         daysToKeep: '{build-days-to-keep}'
243         numToKeep: '{build-num-to-keep}'
244         artifactDaysToKeep: '{build-artifact-days-to-keep}'
245         artifactNumToKeep: '{build-artifact-num-to-keep}'
246
247     parameters:
248         - project-parameter:
249             project: 'integration'
250
251     scm:
252         - git-scm:
253             credentials-id: '{ssh-credentials}'
254             refspec: ''
255             branch: '{branch}'
256
257     wrappers:
258         - build-timeout
259         - ssh-agent-credentials:
260             users:
261                 - '{ssh-credentials}'
262
263     triggers:
264         - reverse:
265             jobs: '{project}-merge-{stream}'
266             result: 'success'
267
268     prebuilders:
269         - wipe-org-opendaylight-repo
270
271     maven:
272         maven-name: '{mvn33}'
273         root-pom: 'pom.xml'
274         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
275         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
276         settings: '{integration-settings}'
277         global-settings: '{odl-global-settings}'
278
279     publishers:
280         - email-notification:
281             email-prefix: '[{project}]'
282         - maven-deploy:
283             id: ''
284             unique-version: true
285             deploy-unstable: false
286
287 - job-template:
288     name: 'toolkit-integration-{stream}'
289     disabled: false
290
291     # Job template for ODL integration verify jobs
292     #
293     # This is similar to a normal verify job, but it runs
294     # when a project that's a dependency of your project
295     # is successfully built.
296     #
297     # Required Variables:
298     #     stream:    branch with - in place of / (eg. stable-helium)
299     #     branch:    branch (eg. stable/helium)
300
301     project-type: maven
302     node: dynamic_merge
303     jdk: '{jdk}'
304
305     logrotate:
306         daysToKeep: '{build-days-to-keep}'
307         numToKeep: '{build-num-to-keep}'
308         artifactDaysToKeep: '{build-artifact-days-to-keep}'
309         artifactNumToKeep: '{build-artifact-num-to-keep}'
310
311     parameters:
312         - project-parameter:
313             project: '{project}'
314
315     scm:
316         - git-scm:
317             credentials-id: '{ssh-credentials}'
318             refspec: ''
319             branch: '{branch}'
320
321     wrappers:
322         - build-timeout
323         - ssh-agent-credentials:
324             users:
325                 - '{ssh-credentials}'
326
327     triggers:
328         - reverse:
329             jobs: 'odlparent-merge-{stream},controller-merge-{stream}'
330             result: 'success'
331
332     prebuilders:
333         - wipe-org-opendaylight-repo
334         - jacoco-nojava-workaround
335
336     maven:
337         maven-name: '{mvn33}'
338         root-pom: 'pom.xml'
339         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
340         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
341         settings: '{toolkit-settings}'
342         global-settings: '{odl-global-settings}'
343
344     reporters:
345         - findbugs
346
347     publishers:
348         - email-notification:
349             email-prefix: '[toolkit] [odlparent] [controller]'
350         - jacoco-report
351
352 - job-template:
353     name: 'toolkit-sonar'
354
355     project-type: maven
356     node: dynamic_verify
357     jdk: 'openjdk7'
358
359     logrotate:
360         daysToKeep: '7'
361         numToKeep: '10'
362         artifactDaysToKeep: '1'
363         artifactNumToKeep: '1'
364
365     parameters:
366         - project-parameter:
367             project: '{project}'
368
369     scm:
370         - git-scm:
371             credentials-id: '{ssh-credentials}'
372             refspec: ''
373             branch: 'master'
374
375     wrappers:
376         - build-timeout
377         - ssh-agent-credentials:
378             users:
379                 - '{ssh-credentials}'
380
381     triggers:
382         - timed: 'H H * * *'
383
384     prebuilders:
385         - wipe-org-opendaylight-repo
386         - jacoco-nojava-workaround
387
388     maven:
389         maven-name: '{mvn33}'
390         root-pom: 'pom.xml'
391         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
392         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
393         settings: '{toolkit-settings}'
394         global-settings: '{odl-global-settings}'
395
396     reporters:
397         - findbugs
398
399     publishers:
400         - sonar:
401             language: 'java'
402             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
403         - email-notification:
404             email-prefix: '[toolkit]'
405         - jacoco-report
406
407 - job-template:
408     name: 'toolkit-clm-{stream}'
409
410     project-type: maven
411     node: dynamic_verify
412     jdk: '{jdk}'
413
414     logrotate:
415         daysToKeep: '{build-days-to-keep}'
416         numToKeep: '{build-num-to-keep}'
417         artifactDaysToKeep: '{build-artifact-days-to-keep}'
418         artifactNumToKeep: '{build-artifact-num-to-keep}'
419
420     parameters:
421         - project-parameter:
422             project: '{project}'
423
424     scm:
425         - git-scm:
426             credentials-id: '{ssh-credentials}'
427             refspec: ''
428             branch: '{branch}'
429
430     wrappers:
431         - build-timeout
432         - ssh-agent-credentials:
433             users:
434                 - '{ssh-credentials}'
435
436     triggers:
437         - timed: '@weekly'
438
439     prebuilders:
440         - wipe-org-opendaylight-repo
441
442     maven:
443         maven-name: '{mvn33}'
444         root-pom: 'pom.xml'
445         goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
446         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
447         settings: '{toolkit-settings}'
448         global-settings: '{odl-global-settings}'
449
450     postbuilders:
451         - check-clm:
452             application-name: toolkit
453
454     publishers:
455         - email-notification:
456             email-prefix: '[toolkit]'
457