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