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