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:    release stream (eg. stable-lithium or beryllium)
18     # branch:    git branch (eg. stable/lithium or master)
19     stream:
20         - neutron-yang-migration:
21             branch: 'topic/master/neutron-yang-migration'
22             jdk: openjdk7
23             jdks:
24                 - openjdk7
25         - routermanager:
26             branch: 'topic/routermanager'
27             jdk: openjdk7
28             jdks:
29                 - openjdk7
30         - beryllium:
31             branch: 'master'
32             jdk: openjdk7
33             jdks:
34                 - openjdk7
35         - stable-lithium:
36             branch: 'stable/lithium'
37             jdk: openjdk7
38             jdks:
39                 - openjdk7
40         - stable-helium:
41             branch: 'stable/helium'
42             jdk: openjdk7
43             jdks:
44                 - openjdk7
45
46     project: 'ovsdb'
47
48 # For the Job templates below replace instances of:
49 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
50 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
51 # MAVEN_GOALS with your maven goals to build
52 # MAVEN_OPTS with your maven options to build
53
54 - job-template:
55     name: 'ovsdb-verify-{stream}'
56
57     # Job template for ODL verify jobs
58     #
59     # The purpose of this job template is to setup a ODL verify job
60     #
61     # Required Variables:
62     #     stream:    release stream (eg. stable-lithium or beryllium)
63     #     branch:    git branch (eg. stable/lithium or master)
64
65     project-type: matrix
66     node: matrix_master
67     concurrent: true
68
69     axes:
70         - axis:
71             type: slave
72             name: nodes
73             values:
74                 - dynamic_verify
75         - axis:
76             type: jdk
77             values: '{obj:jdks}'
78
79     logrotate:
80         daysToKeep: '{build-days-to-keep}'
81         numToKeep: '{build-num-to-keep}'
82         artifactDaysToKeep: '{build-artifact-days-to-keep}'
83         artifactNumToKeep: '{build-artifact-num-to-keep}'
84
85     parameters:
86         - project-parameter:
87             project: '{project}'
88         - gerrit-parameter:
89             branch: '{branch}'
90
91     scm:
92         - gerrit-trigger-scm:
93             credentials-id: '{ssh-credentials}'
94             refspec: '$GERRIT_REFSPEC'
95             choosing-strategy: 'gerrit'
96
97     wrappers:
98         - build-timeout
99         - ssh-agent-credentials:
100             users:
101                 - '{ssh-credentials}'
102
103     triggers:
104         - gerrit-trigger-patch-submitted:
105             name: 'ovsdb'
106             branch: '{branch}'
107
108     builders:
109         - wipe-org-opendaylight-repo
110         - jacoco-nojava-workaround
111         - provide-maven-settings:
112             global-settings-file: '{odl-global-settings}'
113             settings-file: '{ovsdb-settings}'
114         - maven-target:
115             maven-version: '{mvn33}'
116             pom: 'pom.xml'
117             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dstream={stream}'
118             java-opts:
119                 - '-Xmx1024m -XX:MaxPermSize=256m'
120             settings: '{ovsdb-settings}'
121             global-settings: '{odl-global-settings}'
122
123     publishers:
124         - findbugs
125         - email-notification:
126             email-prefix: '[ovsdb]'
127         - jacoco-report
128
129 - job-template:
130     name: 'ovsdb-merge-{stream}'
131
132     # Job template for ODL merge jobs
133     #
134     # The purpose of this job template is to setup a ODL merge job
135     # and deploy artifacts to Nexus.
136     #
137     # Required Variables:
138     #     stream:    release stream (eg. stable-lithium or beryllium)
139     #     branch:    git branch (eg. stable/lithium or master)
140
141     project-type: maven
142     node: dynamic_merge
143     jdk: '{jdk}'
144
145     logrotate:
146         daysToKeep: '{build-days-to-keep}'
147         numToKeep: '{build-num-to-keep}'
148         artifactDaysToKeep: '{build-artifact-days-to-keep}'
149         artifactNumToKeep: '{build-artifact-num-to-keep}'
150
151     parameters:
152         - project-parameter:
153             project: '{project}'
154
155     scm:
156         - gerrit-trigger-scm:
157             credentials-id: '{ssh-credentials}'
158             refspec: ''
159             choosing-strategy: 'default'
160
161     wrappers:
162         - build-timeout
163         - ssh-agent-credentials:
164             users:
165                 - '{ssh-credentials}'
166
167     triggers:
168         - gerrit-trigger-patch-merged:
169             name: 'ovsdb'
170             branch: '{branch}'
171
172     prebuilders:
173         - wipe-org-opendaylight-repo
174         - jacoco-nojava-workaround
175         - provide-maven-settings:
176             global-settings-file: '{odl-global-settings}'
177             settings-file: '{ovsdb-settings}'
178
179     maven:
180         maven-name: '{mvn33}'
181         root-pom: 'pom.xml'
182         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dstream={stream}'
183         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
184         settings: '{ovsdb-settings}'
185         global-settings: '{odl-global-settings}'
186         post-step-run-condition: UNSTABLE
187
188     postbuilders:
189         - conditional-step:
190             condition-kind: file-exists
191             condition-filename: deploy-site.xml
192             condition-basedir: workspace
193
194             # The strategy here is intentional to run Maven site:deploy twice
195             # once using regular pom.xml to produce a staged-site which is
196             # then used by deploy-site.xml to push to Nexus. This is a
197             # workaround to Maven Site's default linking code which creates
198             # incorrect URLs for sites due to auto-detection assuming your
199             # project is configured in a certain way which ODL is not.
200             steps:
201             - maven-target:
202                 maven-version: '{mvn33}'
203                 pom: pom.xml
204                 goals: 'site:deploy -Dstream={stream}'
205                 java-opts:
206                     - '-Xmx2g'
207                 settings: '{ovsdb-settings}'
208                 global-settings: '{odl-global-settings}'
209             - maven-target:
210                 maven-version: '{mvn33}'
211                 pom: deploy-site.xml
212                 goals: 'site:deploy -Dstream={stream}'
213                 java-opts:
214                     - '-Xmx2g'
215                 settings: '{ovsdb-settings}'
216                 global-settings: '{odl-global-settings}'
217
218     reporters:
219         - findbugs
220
221     publishers:
222         - email-notification:
223             email-prefix: '[ovsdb]'
224         - maven-deploy:
225             id: ''
226             unique-version: true
227             deploy-unstable: false
228         - jacoco-report
229
230 - job-template:
231     name: 'ovsdb-daily-{stream}'
232
233     # Job template for daily builders
234     #
235     # The purpose of this job template is to setup a daily/nightly
236     # builder and pushes to Sonar analysis.
237     #
238     # Required Variables:
239     #     stream:    release stream (eg. stable-lithium or beryllium)
240     #     branch:    git branch (eg. stable/lithium or master)
241
242     project-type: maven
243     node: dynamic_verify
244     jdk: '{jdk}'
245
246     logrotate:
247         daysToKeep: '{build-days-to-keep}'
248         numToKeep: '{build-num-to-keep}'
249         artifactDaysToKeep: '{build-artifact-days-to-keep}'
250         artifactNumToKeep: '{build-artifact-num-to-keep}'
251
252     parameters:
253         - project-parameter:
254             project: '{project}'
255
256     scm:
257         - git-scm:
258             credentials-id: '{ssh-credentials}'
259             refspec: ''
260             branch: '{branch}'
261
262     wrappers:
263         - build-timeout
264         - ssh-agent-credentials:
265             users:
266                 - '{ssh-credentials}'
267
268     triggers:
269         - timed: 'H H * * *'
270
271     prebuilders:
272         - wipe-org-opendaylight-repo
273         - jacoco-nojava-workaround
274         - provide-maven-settings:
275             global-settings-file: '{odl-global-settings}'
276             settings-file: '{ovsdb-settings}'
277
278     maven:
279         maven-name: '{mvn33}'
280         root-pom: 'pom.xml'
281         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
282         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
283         settings: '{ovsdb-settings}'
284         global-settings: '{odl-global-settings}'
285
286     reporters:
287         - findbugs
288
289     publishers:
290         - email-notification:
291             email-prefix: '[ovsdb]'
292         - jacoco-report
293
294 - job-template:
295     name: 'ovsdb-distribution-{stream}'
296
297     # Required variables:
298     #     stream:    release stream (eg. stable-lithium or beryllium)
299     #     branch:    git branch (eg. stable/lithium or master)
300
301     project-type: maven
302     node: dynamic_merge
303     jdk: '{jdk}'
304
305     logrotate:
306         daysToKeep: '{build-days-to-keep}'
307         numToKeep: '{build-num-to-keep}'
308         artifactDaysToKeep: '{build-artifact-days-to-keep}'
309         artifactNumToKeep: '{build-artifact-num-to-keep}'
310
311     parameters:
312         - project-parameter:
313             project: 'integration'
314
315     scm:
316         - git-scm:
317             credentials-id: '{ssh-credentials}'
318             refspec: ''
319             branch: '{branch}'
320
321     wrappers:
322         - build-timeout
323         - ssh-agent-credentials:
324             users:
325                 - '{ssh-credentials}'
326
327     triggers:
328         - reverse:
329             jobs: '{project}-merge-{stream}'
330             result: 'success'
331
332     prebuilders:
333         - wipe-org-opendaylight-repo
334         - provide-maven-settings:
335             global-settings-file: '{odl-global-settings}'
336             settings-file: '{ovsdb-settings}'
337
338     maven:
339         maven-name: '{mvn33}'
340         root-pom: 'pom.xml'
341         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
342         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
343         settings: '{integration-settings}'
344         global-settings: '{odl-global-settings}'
345
346     publishers:
347         - email-notification:
348             email-prefix: '[{project}]'
349         - maven-deploy:
350             id: ''
351             unique-version: true
352             deploy-unstable: false
353
354 - job-template:
355     name: 'ovsdb-integration-{stream}'
356     disabled: false
357
358     # Job template for ODL integration verify jobs
359     #
360     # This is similar to a normal verify job, but it runs
361     # when a project that's a dependency of your project
362     # is successfully built.
363     #
364     # Required Variables:
365     #     stream:    release stream (eg. stable-lithium or beryllium)
366     #     branch:    git branch (eg. stable/lithium or master)
367
368     project-type: maven
369     node: dynamic_merge
370     jdk: '{jdk}'
371
372     logrotate:
373         daysToKeep: '{build-days-to-keep}'
374         numToKeep: '{build-num-to-keep}'
375         artifactDaysToKeep: '{build-artifact-days-to-keep}'
376         artifactNumToKeep: '{build-artifact-num-to-keep}'
377
378     parameters:
379         - project-parameter:
380             project: '{project}'
381
382     scm:
383         - git-scm:
384             credentials-id: '{ssh-credentials}'
385             refspec: ''
386             branch: '{branch}'
387
388     wrappers:
389         - build-timeout
390         - ssh-agent-credentials:
391             users:
392                 - '{ssh-credentials}'
393
394     triggers:
395         - reverse:
396             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream}'
397             result: 'success'
398
399     prebuilders:
400         - wipe-org-opendaylight-repo
401         - jacoco-nojava-workaround
402         - provide-maven-settings:
403             global-settings-file: '{odl-global-settings}'
404             settings-file: '{ovsdb-settings}'
405
406     maven:
407         maven-name: '{mvn33}'
408         root-pom: 'pom.xml'
409         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
410         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
411         settings: '{ovsdb-settings}'
412         global-settings: '{odl-global-settings}'
413
414     reporters:
415         - findbugs
416
417     publishers:
418         - email-notification:
419             email-prefix: '[ovsdb] [odlparent] [controller] [yangtools] [openflowplugin] [neutron]'
420         - jacoco-report
421
422 - job-template:
423     name: 'ovsdb-clm-{stream}'
424
425     project-type: maven
426     node: dynamic_verify
427     jdk: '{jdk}'
428
429     logrotate:
430         daysToKeep: '{build-days-to-keep}'
431         numToKeep: '{build-num-to-keep}'
432         artifactDaysToKeep: '{build-artifact-days-to-keep}'
433         artifactNumToKeep: '{build-artifact-num-to-keep}'
434
435     parameters:
436         - project-parameter:
437             project: '{project}'
438
439     scm:
440         - git-scm:
441             credentials-id: '{ssh-credentials}'
442             refspec: ''
443             branch: '{branch}'
444
445     wrappers:
446         - build-timeout
447         - ssh-agent-credentials:
448             users:
449                 - '{ssh-credentials}'
450
451     triggers:
452         - timed: '@weekly'
453
454     prebuilders:
455         - wipe-org-opendaylight-repo
456         - provide-maven-settings:
457             global-settings-file: '{odl-global-settings}'
458             settings-file: '{ovsdb-settings}'
459
460     maven:
461         maven-name: '{mvn33}'
462         root-pom: 'pom.xml'
463         goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
464         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
465         settings: '{ovsdb-settings}'
466         global-settings: '{odl-global-settings}'
467
468     postbuilders:
469         - check-clm:
470             application-name: ovsdb
471
472     publishers:
473         - email-notification:
474             email-prefix: '[ovsdb]'
475