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