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