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