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