Merge "Only run post-build actions on successful and unstable builds"
[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-distribution-{stream}'
13         - 'bgpcep-integration-{stream}'
14         - 'bgpcep-sonar'
15         - 'bgpcep-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: 'bgpcep'
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: 'bgpcep-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: 'bgpcep'
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: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate'
107             java-opts:
108                 - '-Xmx1024m -XX:MaxPermSize=256m'
109             settings: '{bgpcep-settings}'
110             global-settings: '{odl-global-settings}'
111
112     publishers:
113         - findbugs
114         - email-notification:
115             email-prefix: '[bgpcep]'
116         - jacoco-report
117
118 - job-template:
119     name: 'bgpcep-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: 'bgpcep'
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: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -Dmerge'
169         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
170         settings: '{bgpcep-settings}'
171         global-settings: '{odl-global-settings}'
172
173     reporters:
174         - findbugs
175
176     publishers:
177         - email-notification:
178             email-prefix: '[bgpcep]'
179         - maven-deploy:
180             id: ''
181             unique-version: true
182             deploy-unstable: false
183         - jacoco-report
184
185 - job-template:
186     name: 'bgpcep-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: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate'
234         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
235         settings: '{bgpcep-settings}'
236         global-settings: '{odl-global-settings}'
237
238     reporters:
239         - findbugs
240
241     publishers:
242         - email-notification:
243             email-prefix: '[bgpcep]'
244         - jacoco-report
245
246 - job-template:
247     name: 'bgpcep-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: 'bgpcep-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},tcpmd5-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: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate'
352         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
353         settings: '{bgpcep-settings}'
354         global-settings: '{odl-global-settings}'
355
356     reporters:
357         - findbugs
358
359     publishers:
360         - email-notification:
361             email-prefix: '[bgpcep] [odlparent] [yangtools] [controller] [tcpmd5]'
362         - jacoco-report
363
364 - job-template:
365     name: 'bgpcep-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         - gerrit-trigger-patch-sonar:
396             name: 'bgpcep'
397
398     prebuilders:
399         - wipe-org-opendaylight-repo
400         - jacoco-nojava-workaround
401
402     maven:
403         maven-name: '{mvn33}'
404         root-pom: 'pom.xml'
405         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -Dsonar'
406         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
407         settings: '{bgpcep-settings}'
408         global-settings: '{odl-global-settings}'
409
410     reporters:
411         - findbugs
412
413     publishers:
414         - sonar:
415             language: 'java'
416             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
417         - email-notification:
418             email-prefix: '[bgpcep]'
419         - jacoco-report
420
421 - job-template:
422     name: 'bgpcep-clm-{stream}'
423
424     project-type: maven
425     node: dynamic_verify
426     jdk: '{jdk}'
427
428     logrotate:
429         daysToKeep: '{build-days-to-keep}'
430         numToKeep: '{build-num-to-keep}'
431         artifactDaysToKeep: '{build-artifact-days-to-keep}'
432         artifactNumToKeep: '{build-artifact-num-to-keep}'
433
434     parameters:
435         - project-parameter:
436             project: '{project}'
437
438     scm:
439         - git-scm:
440             credentials-id: '{ssh-credentials}'
441             refspec: ''
442             branch: '{branch}'
443
444     wrappers:
445         - build-timeout
446         - ssh-agent-credentials:
447             users:
448                 - '{ssh-credentials}'
449
450     triggers:
451         - timed: '@weekly'
452
453     prebuilders:
454         - wipe-org-opendaylight-repo
455
456     maven:
457         maven-name: '{mvn33}'
458         root-pom: 'pom.xml'
459         goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
460         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
461         settings: '{bgpcep-settings}'
462         global-settings: '{odl-global-settings}'
463
464     postbuilders:
465         - check-clm:
466             application-name: bgpcep
467
468     publishers:
469         - email-notification:
470             email-prefix: '[bgpcep]'
471