Update automated project templates
[releng/builder.git] / jjb / reservation / reservation.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: reservation
8     jobs:
9         - 'reservation-verify-{stream}'
10         - 'reservation-merge-{stream}'
11         - 'reservation-daily-{stream}'
12         - 'reservation-distribution-{stream}'
13         - 'reservation-integration-{stream}'
14         - 'reservation-sonar'
15         - 'reservation-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         - stable-lithium:
27             branch: 'stable/lithium'
28             jdk: openjdk7
29             jdks:
30                 - openjdk7
31
32     project: 'reservation'
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: 'reservation-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: 'reservation'
91             branch: '{branch}'
92
93     builders:
94         - wipe-org-opendaylight-repo
95         - jacoco-nojava-workaround
96         - maven-target:
97             maven-version: '{mvn33}'
98             pom: 'pom.xml'
99             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
100             java-opts:
101                 - '-Xmx1024m -XX:MaxPermSize=256m'
102             settings: '{reservation-settings}'
103             global-settings: '{odl-global-settings}'
104
105     publishers:
106         - findbugs
107         - email-notification:
108             email-prefix: '[reservation]'
109         - jacoco-report
110
111 - job-template:
112     name: 'reservation-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: 'reservation'
152             branch: '{branch}'
153
154     prebuilders:
155         - wipe-org-opendaylight-repo
156         - jacoco-nojava-workaround
157
158     maven:
159         maven-name: '{mvn33}'
160         root-pom: 'pom.xml'
161         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge'
162         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
163         settings: '{reservation-settings}'
164         global-settings: '{odl-global-settings}'
165
166     reporters:
167         - findbugs
168
169     publishers:
170         - email-notification:
171             email-prefix: '[reservation]'
172         - maven-deploy:
173             id: ''
174             unique-version: true
175             deploy-unstable: false
176         - jacoco-report
177
178 - job-template:
179     name: 'reservation-daily-{stream}'
180
181     # Job template for daily builders
182     #
183     # The purpose of this job template is to setup a daily/nightly
184     # builder and pushes to Sonar analysis.
185     #
186     # Required Variables:
187     #     stream:    branch with - in place of / (eg. stable-helium)
188     #     branch:    branch (eg. stable/helium)
189
190     project-type: maven
191     node: dynamic_verify
192     jdk: '{jdk}'
193
194     logrotate:
195         daysToKeep: '{build-days-to-keep}'
196         numToKeep: '{build-num-to-keep}'
197         artifactDaysToKeep: '{build-artifact-days-to-keep}'
198         artifactNumToKeep: '{build-artifact-num-to-keep}'
199
200     parameters:
201         - project-parameter:
202             project: '{project}'
203
204     scm:
205         - git-scm:
206             credentials-id: '{ssh-credentials}'
207             refspec: ''
208             branch: '{branch}'
209
210     wrappers:
211         - build-timeout
212         - ssh-agent-credentials:
213             users:
214                 - '{ssh-credentials}'
215
216     triggers:
217         - timed: 'H H * * *'
218
219     prebuilders:
220         - wipe-org-opendaylight-repo
221         - jacoco-nojava-workaround
222
223     maven:
224         maven-name: '{mvn33}'
225         root-pom: 'pom.xml'
226         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
227         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
228         settings: '{reservation-settings}'
229         global-settings: '{odl-global-settings}'
230
231     reporters:
232         - findbugs
233
234     publishers:
235         - email-notification:
236             email-prefix: '[reservation]'
237         - jacoco-report
238
239 - job-template:
240     name: 'reservation-distribution-{stream}'
241
242     project-type: maven
243     node: dynamic_merge
244     jdk: '{jdk}'
245
246     logrotate:
247         daysToKeep: '{build-days-to-keep}'
248         numToKeep: '{build-num-to-keep}'
249         artifactDaysToKeep: '{build-artifact-days-to-keep}'
250         artifactNumToKeep: '{build-artifact-num-to-keep}'
251
252     parameters:
253         - project-parameter:
254             project: 'integration'
255
256     scm:
257         - git-scm:
258             credentials-id: '{ssh-credentials}'
259             refspec: ''
260             branch: '{branch}'
261
262     wrappers:
263         - build-timeout
264         - ssh-agent-credentials:
265             users:
266                 - '{ssh-credentials}'
267
268     triggers:
269         - reverse:
270             jobs: '{project}-merge-{stream}'
271             result: 'success'
272
273     prebuilders:
274         - wipe-org-opendaylight-repo
275
276     maven:
277         maven-name: '{mvn33}'
278         root-pom: 'pom.xml'
279         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
280         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
281         settings: '{integration-settings}'
282         global-settings: '{odl-global-settings}'
283
284     publishers:
285         - email-notification:
286             email-prefix: '[{project}]'
287         - maven-deploy:
288             id: ''
289             unique-version: true
290             deploy-unstable: false
291
292 - job-template:
293     name: 'reservation-integration-{stream}'
294     disabled: false
295
296     # Job template for ODL integration verify jobs
297     #
298     # This is similar to a normal verify job, but it runs
299     # when a project that's a dependency of your project
300     # is successfully built.
301     #
302     # Required Variables:
303     #     stream:    branch with - in place of / (eg. stable-helium)
304     #     branch:    branch (eg. stable/helium)
305
306     project-type: maven
307     node: dynamic_merge
308     jdk: '{jdk}'
309
310     logrotate:
311         daysToKeep: '{build-days-to-keep}'
312         numToKeep: '{build-num-to-keep}'
313         artifactDaysToKeep: '{build-artifact-days-to-keep}'
314         artifactNumToKeep: '{build-artifact-num-to-keep}'
315
316     parameters:
317         - project-parameter:
318             project: '{project}'
319
320     scm:
321         - git-scm:
322             credentials-id: '{ssh-credentials}'
323             refspec: ''
324             branch: '{branch}'
325
326     wrappers:
327         - build-timeout
328         - ssh-agent-credentials:
329             users:
330                 - '{ssh-credentials}'
331
332     triggers:
333         - reverse:
334             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}'
335             result: 'success'
336
337     prebuilders:
338         - wipe-org-opendaylight-repo
339         - jacoco-nojava-workaround
340
341     maven:
342         maven-name: '{mvn33}'
343         root-pom: 'pom.xml'
344         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
345         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
346         settings: '{reservation-settings}'
347         global-settings: '{odl-global-settings}'
348
349     reporters:
350         - findbugs
351
352     publishers:
353         - email-notification:
354             email-prefix: '[reservation] [odlparent] [controller] [yangtools] [groupbasedpolicy]'
355         - jacoco-report
356
357 - job-template:
358     name: 'reservation-sonar'
359
360     project-type: maven
361     node: dynamic_verify
362     jdk: 'openjdk7'
363
364     logrotate:
365         daysToKeep: '7'
366         numToKeep: '10'
367         artifactDaysToKeep: '1'
368         artifactNumToKeep: '1'
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             users:
384                 - '{ssh-credentials}'
385
386     triggers:
387         - timed: 'H H * * *'
388
389     prebuilders:
390         - wipe-org-opendaylight-repo
391         - jacoco-nojava-workaround
392
393     maven:
394         maven-name: '{mvn33}'
395         root-pom: 'pom.xml'
396         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
397         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
398         settings: '{reservation-settings}'
399         global-settings: '{odl-global-settings}'
400
401     reporters:
402         - findbugs
403
404     publishers:
405         - sonar:
406             language: 'java'
407             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
408         - email-notification:
409             email-prefix: '[reservation]'
410         - jacoco-report
411
412 - job-template:
413     name: 'reservation-clm-{stream}'
414
415     project-type: maven
416     node: dynamic_verify
417     jdk: '{jdk}'
418
419     logrotate:
420         daysToKeep: '{build-days-to-keep}'
421         numToKeep: '{build-num-to-keep}'
422         artifactDaysToKeep: '{build-artifact-days-to-keep}'
423         artifactNumToKeep: '{build-artifact-num-to-keep}'
424
425     parameters:
426         - project-parameter:
427             project: '{project}'
428
429     scm:
430         - git-scm:
431             credentials-id: '{ssh-credentials}'
432             refspec: ''
433             branch: '{branch}'
434
435     wrappers:
436         - build-timeout
437         - ssh-agent-credentials:
438             users:
439                 - '{ssh-credentials}'
440
441     triggers:
442         - timed: '@weekly'
443
444     prebuilders:
445         - wipe-org-opendaylight-repo
446
447     maven:
448         maven-name: '{mvn33}'
449         root-pom: 'pom.xml'
450         goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
451         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
452         settings: '{reservation-settings}'
453         global-settings: '{odl-global-settings}'
454
455     postbuilders:
456         - check-clm:
457             application-name: reservation
458
459     publishers:
460         - email-notification:
461             email-prefix: '[reservation]'
462