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