Move distribution template to releng
[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         
168         - email-notification:
169             email-prefix: '[capwap]'
170         - maven-deploy:
171             id: ''
172             unique-version: true
173             deploy-unstable: false
174         - jacoco-report
175
176 - job-template:
177     name: 'capwap-daily-{stream}'
178
179     # Job template for daily builders
180     #
181     # The purpose of this job template is to setup a daily/nightly
182     # builder and pushes to Sonar analysis.
183     #
184     # Required Variables:
185     #     stream:    branch with - in place of / (eg. stable-helium)
186     #     branch:    branch (eg. stable/helium)
187
188     project-type: maven
189     node: dynamic_verify
190     jdk: '{jdk}'
191
192     logrotate:
193         daysToKeep: '{build-days-to-keep}'
194         numToKeep: '{build-num-to-keep}'
195         artifactDaysToKeep: '{build-artifact-days-to-keep}'
196         artifactNumToKeep: '{build-artifact-num-to-keep}'
197
198     parameters:
199         - project-parameter:
200             project: '{project}'
201
202     scm:
203         - git-scm:
204             credentials-id: '{ssh-credentials}'
205             refspec: ''
206             branch: '{branch}'
207
208     wrappers:
209         - build-timeout
210         - ssh-agent-credentials:
211             users:
212                 - '{ssh-credentials}'
213
214     triggers:
215         - timed: 'H H * * *'
216
217     prebuilders:
218         - wipe-org-opendaylight-repo
219
220     maven:
221         maven-name: '{mvn32}'
222         root-pom: 'pom.xml'
223         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
224         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
225         settings: '{capwap-settings}'
226         global-settings: '{odl-global-settings}'
227
228     postbuilders:
229         - jacoco-nojava-workaround
230
231     reporters:
232         - findbugs
233
234     publishers:
235         - email-notification:
236             email-prefix: '[capwap]'
237         - jacoco-report
238
239 - job-template:
240     name: 'capwap-distribution-{stream}'
241
242     project-type: maven
243     node: dynamic_merge
244     jdk: '{jdk}'
245
246     logrotate:
247         daysToKeep: '{build-days-to-keep}'
248         numToKeep: '{build-num-to-keep}'
249         artifactDaysToKeep: '{build-artifact-days-to-keep}'
250         artifactNumToKeep: '{build-artifact-num-to-keep}'
251
252     parameters:
253         - project-parameter:
254             project: 'integration'
255
256     scm:
257         - git-scm:
258             credentials-id: '{ssh-credentials}'
259             refspec: ''
260             branch: '{branch}'
261
262     wrappers:
263         - build-timeout
264         - ssh-agent-credentials:
265             users:
266                 - '{ssh-credentials}'
267
268     triggers:
269         - reverse:
270             jobs: '{project}-merge-{stream}'
271             result: 'success'
272
273     prebuilders:
274         - wipe-org-opendaylight-repo
275
276     maven:
277         maven-name: '{mvn32}'
278         root-pom: 'pom.xml'
279         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install source:jar javadoc:jar'
280         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
281         settings: '{integration-settings}'
282         global-settings: '{odl-global-settings}'
283
284     publishers:
285         - email-notification:
286             email-prefix: '[{project}]'
287         - maven-deploy:
288             id: ''
289             unique-version: true
290             deploy-unstable: false
291
292 - job-template:
293     name: 'capwap-integration-{stream}'
294     disabled: false
295
296     # Job template for ODL integration verify jobs
297     #
298     # This is similar to a normal verify job, but it runs
299     # when a project that's a dependency of your project
300     # is successfully built.
301     #
302     # Required Variables:
303     #     stream:    branch with - in place of / (eg. stable-helium)
304     #     branch:    branch (eg. stable/helium)
305
306     project-type: maven
307     node: dynamic_merge
308     jdk: '{jdk}'
309
310     logrotate:
311         daysToKeep: '{build-days-to-keep}'
312         numToKeep: '{build-num-to-keep}'
313         artifactDaysToKeep: '{build-artifact-days-to-keep}'
314         artifactNumToKeep: '{build-artifact-num-to-keep}'
315
316     parameters:
317         - project-parameter:
318             project: '{project}'
319
320     scm:
321         - git-scm:
322             credentials-id: '{ssh-credentials}'
323             refspec: ''
324             branch: '{branch}'
325
326     wrappers:
327         - build-timeout
328         - ssh-agent-credentials:
329             users:
330                 - '{ssh-credentials}'
331
332     triggers:
333         - reverse:
334             jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}'
335             result: 'success'
336
337     prebuilders:
338         - wipe-org-opendaylight-repo
339
340     maven:
341         maven-name: '{mvn32}'
342         root-pom: 'pom.xml'
343         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
344         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
345         settings: '{capwap-settings}'
346         global-settings: '{odl-global-settings}'
347
348     postbuilders:
349         - jacoco-nojava-workaround
350
351     reporters:
352         - findbugs
353
354     publishers:
355         - email-notification:
356             email-prefix: '[capwap] [controller] [yangtools] [odlparent]'
357         - jacoco-report
358
359 - job-template:
360     name: 'capwap-sonar'
361
362     project-type: maven
363     node: dynamic_verify
364     jdk: 'openjdk7'
365
366     logrotate:
367         daysToKeep: '7'
368         numToKeep: '10'
369         artifactDaysToKeep: '1'
370         artifactNumToKeep: '1'
371
372     parameters:
373         - project-parameter:
374             project: '{project}'
375
376     scm:
377         - git-scm:
378             credentials-id: '{ssh-credentials}'
379             refspec: ''
380             branch: 'master'
381
382     wrappers:
383         - build-timeout
384         - ssh-agent-credentials:
385             users:
386                 - '{ssh-credentials}'
387
388     triggers:
389         - timed: 'H H * * *'
390
391     maven:
392         maven-name: '{mvn32}'
393         root-pom: 'pom.xml'
394         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
395         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
396         settings: '{capwap-settings}'
397         global-settings: '{odl-global-settings}'
398
399     postbuilders:
400         - jacoco-nojava-workaround
401
402     reporters:
403         - findbugs
404
405     publishers:
406         - sonar:
407             language: 'java'
408             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
409         - email-notification:
410             email-prefix: '[capwap]'
411         - jacoco-report
412
413 - job-template:
414     name: 'capwap-clm'
415
416     project-type: maven
417     node: dynamic_verify
418     jdk: 'openjdk7'
419
420     logrotate:
421         daysToKeep: '{build-days-to-keep}'
422         numToKeep: '{build-num-to-keep}'
423         artifactDaysToKeep: '{build-artifact-days-to-keep}'
424         artifactNumToKeep: '{build-artifact-num-to-keep}'
425
426     parameters:
427         - project-parameter:
428             project: '{project}'
429
430     scm:
431         - git-scm:
432             credentials-id: '{ssh-credentials}'
433             refspec: ''
434             branch: 'master'
435
436     wrappers:
437         - build-timeout
438         - ssh-agent-credentials:
439             users:
440                 - '{ssh-credentials}'
441
442     triggers:
443         - timed: '@weekly'
444
445     prebuilders:
446         - wipe-org-opendaylight-repo
447
448     maven:
449         maven-name: '{mvn32}'
450         root-pom: 'pom.xml'
451         goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
452         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
453         settings: '{capwap-settings}'
454         global-settings: '{odl-global-settings}'
455
456     postbuilders:
457         - check-clm:
458             application-name: capwap
459
460     publishers:
461         - email-notification:
462             email-prefix: '[capwap]'
463