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