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