Merge "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         - gerrit-refspec-parameter:
117             refspec: 'refs/heads/{branch}'
118
119     scm:
120         - gerrit-trigger-scm:
121             credentials-id: '{ssh-credentials}'
122             refspec: '$GERRIT_REFSPEC'
123             choosing-strategy: 'gerrit'
124
125     wrappers:
126         - build-timeout
127         - ssh-agent-credentials:
128             users:
129                 - '{ssh-credentials}'
130
131     triggers:
132         - gerrit-trigger-patch-submitted:
133             name: 'ovsdb'
134             branch: '{branch}'
135
136     builders:
137         - wipe-org-opendaylight-repo
138         - jacoco-nojava-workaround
139         - provide-maven-settings:
140             global-settings-file: '{odl-global-settings}'
141             settings-file: '{ovsdb-settings}'
142         - maven-target:
143             maven-version: '{mvn33}'
144             pom: 'pom.xml'
145             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dstream={stream}'
146             java-opts:
147                 - '-Xmx1024m -XX:MaxPermSize=256m'
148             settings: '{ovsdb-settings}'
149             global-settings: '{odl-global-settings}'
150
151     publishers:
152         - findbugs
153         - email-notification:
154             email-prefix: '[ovsdb]'
155         - jacoco-report
156
157 - job-template:
158     name: 'ovsdb-merge-{stream}'
159
160     # Job template for ODL merge jobs
161     #
162     # The purpose of this job template is to setup a ODL merge job
163     # and deploy artifacts to Nexus.
164     #
165     # Required Variables:
166     #     stream:    release stream (eg. stable-lithium or beryllium)
167     #     branch:    git branch (eg. stable/lithium or master)
168
169     project-type: maven
170     node: dynamic_merge
171     jdk: '{jdk}'
172
173     logrotate:
174         daysToKeep: '{build-days-to-keep}'
175         numToKeep: '{build-num-to-keep}'
176         artifactDaysToKeep: '{build-artifact-days-to-keep}'
177         artifactNumToKeep: '{build-artifact-num-to-keep}'
178
179     parameters:
180         - project-parameter:
181             project: '{project}'
182         - gerrit-parameter:
183             branch: '{branch}'
184         - gerrit-refspec-parameter:
185             refspec: 'refs/heads/{branch}'
186
187     scm:
188         - gerrit-trigger-scm:
189             credentials-id: '{ssh-credentials}'
190             refspec: ''
191             choosing-strategy: 'default'
192
193     wrappers:
194         - build-timeout
195         - ssh-agent-credentials:
196             users:
197                 - '{ssh-credentials}'
198
199     triggers:
200         - gerrit-trigger-patch-merged:
201             name: 'ovsdb'
202             branch: '{branch}'
203
204     prebuilders:
205         - wipe-org-opendaylight-repo
206         - jacoco-nojava-workaround
207         - provide-maven-settings:
208             global-settings-file: '{odl-global-settings}'
209             settings-file: '{ovsdb-settings}'
210
211     maven:
212         maven-name: '{mvn33}'
213         root-pom: 'pom.xml'
214         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dstream={stream}'
215         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
216         settings: '{ovsdb-settings}'
217         global-settings: '{odl-global-settings}'
218         post-step-run-condition: UNSTABLE
219
220     postbuilders:
221         - conditional-step:
222             condition-kind: file-exists
223             condition-filename: deploy-site.xml
224             condition-basedir: workspace
225
226             # The strategy here is intentional to run Maven site:deploy twice
227             # once using regular pom.xml to produce a staged-site which is
228             # then used by deploy-site.xml to push to Nexus. This is a
229             # workaround to Maven Site's default linking code which creates
230             # incorrect URLs for sites due to auto-detection assuming your
231             # project is configured in a certain way which ODL is not.
232             steps:
233             - maven-target:
234                 maven-version: '{mvn33}'
235                 pom: pom.xml
236                 goals: 'site:deploy -Dstream={stream}'
237                 java-opts:
238                     - '-Xmx2g'
239                 settings: '{ovsdb-settings}'
240                 global-settings: '{odl-global-settings}'
241             - maven-target:
242                 maven-version: '{mvn33}'
243                 pom: deploy-site.xml
244                 goals: 'site:deploy -Dstream={stream}'
245                 java-opts:
246                     - '-Xmx2g'
247                 settings: '{ovsdb-settings}'
248                 global-settings: '{odl-global-settings}'
249
250     reporters:
251         - findbugs
252
253     publishers:
254         - email-notification:
255             email-prefix: '[ovsdb]'
256         - maven-deploy:
257             id: ''
258             unique-version: true
259             deploy-unstable: false
260         - jacoco-report
261
262 - job-template:
263     name: 'ovsdb-daily-{stream}'
264
265     # Job template for daily builders
266     #
267     # The purpose of this job template is to setup a daily/nightly
268     # builder and pushes to Sonar analysis.
269     #
270     # Required Variables:
271     #     stream:    release stream (eg. stable-lithium or beryllium)
272     #     branch:    git branch (eg. stable/lithium or master)
273
274     project-type: maven
275     node: dynamic_verify
276     jdk: '{jdk}'
277
278     logrotate:
279         daysToKeep: '{build-days-to-keep}'
280         numToKeep: '{build-num-to-keep}'
281         artifactDaysToKeep: '{build-artifact-days-to-keep}'
282         artifactNumToKeep: '{build-artifact-num-to-keep}'
283
284     parameters:
285         - project-parameter:
286             project: '{project}'
287
288     scm:
289         - git-scm:
290             credentials-id: '{ssh-credentials}'
291             refspec: ''
292             branch: '{branch}'
293
294     wrappers:
295         - build-timeout
296         - ssh-agent-credentials:
297             users:
298                 - '{ssh-credentials}'
299
300     triggers:
301         - timed: 'H H * * *'
302
303     prebuilders:
304         - wipe-org-opendaylight-repo
305         - jacoco-nojava-workaround
306         - provide-maven-settings:
307             global-settings-file: '{odl-global-settings}'
308             settings-file: '{ovsdb-settings}'
309
310     maven:
311         maven-name: '{mvn33}'
312         root-pom: 'pom.xml'
313         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
314         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
315         settings: '{ovsdb-settings}'
316         global-settings: '{odl-global-settings}'
317
318     reporters:
319         - findbugs
320
321     publishers:
322         - email-notification:
323             email-prefix: '[ovsdb]'
324         - jacoco-report
325
326 - job-template:
327     name: 'ovsdb-distribution-{stream}'
328
329     # Required variables:
330     #     stream:    release stream (eg. stable-lithium or beryllium)
331     #     branch:    git branch (eg. stable/lithium or master)
332
333     project-type: maven
334     node: dynamic_merge
335     jdk: '{jdk}'
336
337     logrotate:
338         daysToKeep: '{build-days-to-keep}'
339         numToKeep: '{build-num-to-keep}'
340         artifactDaysToKeep: '{build-artifact-days-to-keep}'
341         artifactNumToKeep: '{build-artifact-num-to-keep}'
342
343     parameters:
344         - project-parameter:
345             project: 'integration/distribution'
346
347     scm:
348         - git-scm:
349             credentials-id: '{ssh-credentials}'
350             refspec: ''
351             branch: '{branch}'
352
353     wrappers:
354         - build-timeout
355         - ssh-agent-credentials:
356             users:
357                 - '{ssh-credentials}'
358
359     triggers:
360         - reverse:
361             jobs: '{project}-merge-{stream}'
362             result: 'success'
363
364     prebuilders:
365         - wipe-org-opendaylight-repo
366         - provide-maven-settings:
367             global-settings-file: '{odl-global-settings}'
368             settings-file: '{ovsdb-settings}'
369
370     maven:
371         maven-name: '{mvn33}'
372         root-pom: 'pom.xml'
373         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
374         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
375         settings: '{integration-settings}'
376         global-settings: '{odl-global-settings}'
377
378     publishers:
379         - email-notification:
380             email-prefix: '[{project}]'
381         - maven-deploy:
382             id: ''
383             unique-version: true
384             deploy-unstable: false
385
386 - job-template:
387     name: 'ovsdb-integration-{stream}'
388     disabled: false
389
390     # Job template for ODL integration verify jobs
391     #
392     # This is similar to a normal verify job, but it runs
393     # when a project that's a dependency of your project
394     # is successfully built.
395     #
396     # Required Variables:
397     #     stream:    release stream (eg. stable-lithium or beryllium)
398     #     branch:    git branch (eg. stable/lithium or master)
399
400     project-type: maven
401     node: dynamic_merge
402     jdk: '{jdk}'
403
404     logrotate:
405         daysToKeep: '{build-days-to-keep}'
406         numToKeep: '{build-num-to-keep}'
407         artifactDaysToKeep: '{build-artifact-days-to-keep}'
408         artifactNumToKeep: '{build-artifact-num-to-keep}'
409
410     parameters:
411         - project-parameter:
412             project: '{project}'
413
414     scm:
415         - git-scm:
416             credentials-id: '{ssh-credentials}'
417             refspec: ''
418             branch: '{branch}'
419
420     wrappers:
421         - build-timeout
422         - ssh-agent-credentials:
423             users:
424                 - '{ssh-credentials}'
425
426     triggers:
427         - reverse:
428             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream}'
429             result: 'success'
430
431     prebuilders:
432         - wipe-org-opendaylight-repo
433         - jacoco-nojava-workaround
434         - provide-maven-settings:
435             global-settings-file: '{odl-global-settings}'
436             settings-file: '{ovsdb-settings}'
437
438     maven:
439         maven-name: '{mvn33}'
440         root-pom: 'pom.xml'
441         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
442         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
443         settings: '{ovsdb-settings}'
444         global-settings: '{odl-global-settings}'
445
446     reporters:
447         - findbugs
448
449     publishers:
450         - email-notification:
451             email-prefix: '[ovsdb] [odlparent] [controller] [yangtools] [openflowplugin] [neutron]'
452         - jacoco-report
453
454 - job-template:
455     name: 'ovsdb-clm-{stream}'
456
457     project-type: maven
458     node: dynamic_verify
459     jdk: '{jdk}'
460
461     logrotate:
462         daysToKeep: '{build-days-to-keep}'
463         numToKeep: '{build-num-to-keep}'
464         artifactDaysToKeep: '{build-artifact-days-to-keep}'
465         artifactNumToKeep: '{build-artifact-num-to-keep}'
466
467     parameters:
468         - project-parameter:
469             project: '{project}'
470
471     scm:
472         - git-scm:
473             credentials-id: '{ssh-credentials}'
474             refspec: ''
475             branch: '{branch}'
476
477     wrappers:
478         - build-timeout
479         - ssh-agent-credentials:
480             users:
481                 - '{ssh-credentials}'
482
483     triggers:
484         - timed: '@weekly'
485
486     prebuilders:
487         - wipe-org-opendaylight-repo
488         - provide-maven-settings:
489             global-settings-file: '{odl-global-settings}'
490             settings-file: '{ovsdb-settings}'
491
492     maven:
493         maven-name: '{mvn33}'
494         root-pom: 'pom.xml'
495         goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
496         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
497         settings: '{ovsdb-settings}'
498         global-settings: '{odl-global-settings}'
499
500     postbuilders:
501         - check-clm:
502             application-name: ovsdb
503
504     publishers:
505         - email-notification:
506             email-prefix: '[ovsdb]'
507
508 - job-template:
509     name: 'ovsdb-validate-autorelease-{stream}'
510     disabled: '{obj:disable_autorelease}'
511
512     project-type: maven
513     node: dynamic_verify
514     concurrent: true
515     jdk: '{jdk}'
516
517     logrotate:
518         daysToKeep: '{build-days-to-keep}'
519         numToKeep: '{build-num-to-keep}'
520         artifactDaysToKeep: '{build-artifact-days-to-keep}'
521         artifactNumToKeep: '{build-artifact-num-to-keep}'
522
523     parameters:
524         - project-parameter:
525             project: '{project}'
526         - gerrit-parameter:
527             branch: '{branch}'
528         - autorelease-release-tag:
529             release-tag: 'validate'
530         - autorelease-release-branch:
531             release-branch: '{branch}'
532         - autorelease-release-datestamp:
533             datestamp: true
534
535     scm:
536         - git:
537             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
538             refspec: ''
539             branches:
540                 - 'origin/{branch}'
541             skip-tag: true
542             submodule:
543                 recursive: true
544
545     wrappers:
546         - autorelease-build-timeout
547         - ssh-agent-credentials:
548             users:
549                 - '{ssh-credentials}'
550
551     triggers:
552         - gerrit:
553             server-name: 'OpenDaylight'
554             trigger-on:
555                 - patchset-created-event:
556                     exclude-drafts: 'false'
557                     exclude-trivial-rebase: 'false'
558                     exclude-no-code-change: 'false'
559                 - draft-published-event
560                 - comment-added-contains-event:
561                     comment-contains-value: 'recheck'
562                 - comment-added-contains-event:
563                     comment-contains-value: 'reverify'
564                 - comment-added-contains-event:
565                     comment-contains-value: 'revalidate'
566             projects:
567               - project-compare-type: 'ANT'
568                 project-pattern: 'ovsdb'
569                 branches:
570                   - branch-compare-type: 'ANT'
571                     branch-pattern: '**/{branch}'
572
573     prebuilders:
574         - wipe-org-opendaylight-repo
575         - jacoco-nojava-workaround
576         - autorelease-checkout-gerrit-patch
577         - autorelease-generate-taglist
578         - autorelease-generate-release-patches
579         - maven-target:
580             maven-version: '{mvn33}'
581             pom: validate-pom.xml
582             goals: 'clean install -T1.5C -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
583             java-opts:
584             - '-Xmx8g'
585             settings: '{autorelease-settings}'
586             global-settings: '{odl-global-settings}'
587
588     maven:
589         maven-name: '{mvn33}'
590         root-pom: 'pom.xml'
591         goals: 'clean validate -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
592         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
593         settings: '{autorelease-settings}'
594         global-settings: '{odl-global-settings}'
595         automatic-archiving: false
596         post-step-run-condition: UNSTABLE
597
598     postbuilders:
599         - shell: "./scripts/list-project-dependencies.sh"
600         - autorelease-sys-stats
601
602     publishers:
603         - archive-artifacts:
604             artifacts: '*.log'
605         - email-notification:
606             email-prefix: '[autorelease] [ovsdb]'
607