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