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