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