Merge "Add stable/lithium jobs for sxp"
[releng/builder.git] / jjb / capwap / capwap.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: capwap
8     jobs:
9         - 'capwap-verify-{stream}'
10         - 'capwap-merge-{stream}'
11         - 'capwap-daily-{stream}'
12         - 'capwap-distribution-{stream}'
13         - 'capwap-integration-{stream}'
14         - 'capwap-sonar'
15         - 'capwap-clm'
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
27     project: 'capwap'
28
29 # For the Job templates below replace instances of:
30 # PROJECT with your project name (eg. controller)
31 # MAVEN_GOALS with your maven goals to build
32 # MAVEN_OPTS with your maven options to build
33
34 - job-template:
35     name: 'capwap-verify-{stream}'
36
37     # Job template for ODL verify jobs
38     #
39     # The purpose of this job template is to setup a ODL verify job
40     #
41     # Required Variables:
42     #     stream:    branch with - in place of / (eg. stable-helium)
43     #     branch:    branch (eg. stable/helium)
44
45     project-type: matrix
46     node: matrix_master
47     concurrent: true
48
49     axes:
50         - axis:
51             type: slave
52             name: nodes
53             values:
54                 - dynamic_verify
55         - axis:
56             type: jdk
57             values: '{obj:jdks}'
58
59     logrotate:
60         daysToKeep: '{build-days-to-keep}'
61         numToKeep: '{build-num-to-keep}'
62         artifactDaysToKeep: '{build-artifact-days-to-keep}'
63         artifactNumToKeep: '{build-artifact-num-to-keep}'
64
65     parameters:
66         - project-parameter:
67             project: '{project}'
68         - gerrit-parameter:
69             branch: '{branch}'
70
71     scm:
72         - gerrit-trigger-scm:
73             credentials-id: '{ssh-credentials}'
74             refspec: '$GERRIT_REFSPEC'
75             choosing-strategy: 'gerrit'
76
77     wrappers:
78         - build-timeout
79         - ssh-agent-credentials:
80             users:
81                 - '{ssh-credentials}'
82
83     triggers:
84         - gerrit-trigger-patch-submitted:
85             name: 'capwap'
86             branch: '{branch}'
87
88     builders:
89         - wipe-org-opendaylight-repo
90         - maven-target:
91             maven-version: '{mvn32}'
92             pom: 'pom.xml'
93             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
94             java-opts:
95                 - '-Xmx1024m -XX:MaxPermSize=256m'
96             settings: '{capwap-settings}'
97             global-settings: '{odl-global-settings}'
98         - jacoco-nojava-workaround
99
100     publishers:
101         - findbugs
102         - email-notification:
103             email-prefix: '[capwap]'
104         - jacoco-report
105
106 - job-template:
107     name: 'capwap-merge-{stream}'
108
109     # Job template for ODL merge jobs
110     #
111     # The purpose of this job template is to setup a ODL merge job
112     # and deploy artifacts to Nexus.
113     #
114     # Required Variables:
115     #     stream:    branch with - in place of / (eg. stable-helium)
116     #     branch:    branch (eg. stable/helium)
117
118     project-type: maven
119     node: dynamic_merge
120     jdk: '{jdk}'
121
122     logrotate:
123         daysToKeep: '{build-days-to-keep}'
124         numToKeep: '{build-num-to-keep}'
125         artifactDaysToKeep: '{build-artifact-days-to-keep}'
126         artifactNumToKeep: '{build-artifact-num-to-keep}'
127
128     parameters:
129         - project-parameter:
130             project: '{project}'
131
132     scm:
133         - gerrit-trigger-scm:
134             credentials-id: '{ssh-credentials}'
135             refspec: ''
136             choosing-strategy: 'default'
137
138     wrappers:
139         - build-timeout
140         - ssh-agent-credentials:
141             users:
142                 - '{ssh-credentials}'
143
144     triggers:
145         - gerrit-trigger-patch-merged:
146             name: 'capwap'
147             branch: '{branch}'
148
149     prebuilders:
150         - wipe-org-opendaylight-repo
151
152     maven:
153         maven-name: '{mvn32}'
154         root-pom: 'pom.xml'
155         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
156         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
157         settings: '{capwap-settings}'
158         global-settings: '{odl-global-settings}'
159
160     postbuilders:
161         - jacoco-nojava-workaround
162
163     reporters:
164         - findbugs
165
166     publishers:
167         - email-notification:
168             email-prefix: '[capwap]'
169         - maven-deploy:
170             id: ''
171             unique-version: true
172             deploy-unstable: false
173         - jacoco-report
174
175 - job-template:
176     name: 'capwap-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: '{capwap-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: '[capwap]'
236         - jacoco-report
237
238 - job-template:
239     name: 'capwap-distribution-{stream}'
240
241     project-type: maven
242     node: dynamic_merge
243     jdk: '{jdk}'
244
245     logrotate:
246         daysToKeep: '{build-days-to-keep}'
247         numToKeep: '{build-num-to-keep}'
248         artifactDaysToKeep: '{build-artifact-days-to-keep}'
249         artifactNumToKeep: '{build-artifact-num-to-keep}'
250
251     parameters:
252         - project-parameter:
253             project: 'integration'
254
255     scm:
256         - git-scm:
257             credentials-id: '{ssh-credentials}'
258             refspec: ''
259             branch: '{branch}'
260
261     wrappers:
262         - build-timeout
263         - ssh-agent-credentials:
264             users:
265                 - '{ssh-credentials}'
266
267     triggers:
268         - reverse:
269             jobs: '{project}-merge-{stream}'
270             result: 'success'
271
272     prebuilders:
273         - wipe-org-opendaylight-repo
274
275     maven:
276         maven-name: '{mvn32}'
277         root-pom: 'pom.xml'
278         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install source:jar javadoc:jar'
279         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
280         settings: '{integration-settings}'
281         global-settings: '{odl-global-settings}'
282
283     publishers:
284         - email-notification:
285             email-prefix: '[{project}]'
286         - maven-deploy:
287             id: ''
288             unique-version: true
289             deploy-unstable: false
290
291 - job-template:
292     name: 'capwap-integration-{stream}'
293     disabled: false
294
295     # Job template for ODL integration verify jobs
296     #
297     # This is similar to a normal verify job, but it runs
298     # when a project that's a dependency of your project
299     # is successfully built.
300     #
301     # Required Variables:
302     #     stream:    branch with - in place of / (eg. stable-helium)
303     #     branch:    branch (eg. stable/helium)
304
305     project-type: maven
306     node: dynamic_merge
307     jdk: '{jdk}'
308
309     logrotate:
310         daysToKeep: '{build-days-to-keep}'
311         numToKeep: '{build-num-to-keep}'
312         artifactDaysToKeep: '{build-artifact-days-to-keep}'
313         artifactNumToKeep: '{build-artifact-num-to-keep}'
314
315     parameters:
316         - project-parameter:
317             project: '{project}'
318
319     scm:
320         - git-scm:
321             credentials-id: '{ssh-credentials}'
322             refspec: ''
323             branch: '{branch}'
324
325     wrappers:
326         - build-timeout
327         - ssh-agent-credentials:
328             users:
329                 - '{ssh-credentials}'
330
331     triggers:
332         - reverse:
333             jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}'
334             result: 'success'
335
336     prebuilders:
337         - wipe-org-opendaylight-repo
338
339     maven:
340         maven-name: '{mvn32}'
341         root-pom: 'pom.xml'
342         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
343         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
344         settings: '{capwap-settings}'
345         global-settings: '{odl-global-settings}'
346
347     postbuilders:
348         - jacoco-nojava-workaround
349
350     reporters:
351         - findbugs
352
353     publishers:
354         - email-notification:
355             email-prefix: '[capwap] [controller] [yangtools] [odlparent]'
356         - jacoco-report
357
358 - job-template:
359     name: 'capwap-sonar'
360
361     project-type: maven
362     node: dynamic_verify
363     jdk: 'openjdk7'
364
365     logrotate:
366         daysToKeep: '7'
367         numToKeep: '10'
368         artifactDaysToKeep: '1'
369         artifactNumToKeep: '1'
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: 'H H * * *'
389
390     maven:
391         maven-name: '{mvn32}'
392         root-pom: 'pom.xml'
393         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
394         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
395         settings: '{capwap-settings}'
396         global-settings: '{odl-global-settings}'
397
398     postbuilders:
399         - jacoco-nojava-workaround
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: '[capwap]'
410         - jacoco-report
411
412 - job-template:
413     name: 'capwap-clm'
414
415     project-type: maven
416     node: dynamic_verify
417     jdk: 'openjdk7'
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: 'master'
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: '{mvn32}'
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: '{capwap-settings}'
453         global-settings: '{odl-global-settings}'
454
455     postbuilders:
456         - check-clm:
457             application-name: capwap
458
459     publishers:
460         - email-notification:
461             email-prefix: '[capwap]'
462