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