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