0244ec563142842fce735e200f19caa4f2f57cbb
[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-periodic-{stream}'
12         - 'ovsdb-distribution-{stream}'
13         - 'ovsdb-distribution-check-{stream}'
14         - 'ovsdb-integration-{stream}'
15         - 'ovsdb-clm-{stream}'
16         - 'ovsdb-validate-autorelease-{stream}'
17
18
19     # stream:    release stream (eg. stable-lithium or beryllium)
20     # branch:    git branch (eg. stable/lithium or master)
21     stream:
22         - boron:
23             branch: 'master'
24             jdk: openjdk8
25             jdks:
26                 - openjdk8
27             disable_autorelease: False
28             disable_distribution_check: False
29         - beryllium:
30             branch: 'stable/beryllium'
31             jdk: openjdk7
32             jdks:
33                 - openjdk7
34                 - openjdk8
35             disable_autorelease: False
36             disable_distribution_check: False
37         - stable-lithium:
38             branch: 'stable/lithium'
39             jdk: openjdk7
40             jdks:
41                 - openjdk7
42             disable_autorelease: True
43             disable_distribution_check: True
44
45     project: 'ovsdb'
46
47 # For the Job templates below replace instances of:
48 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
49 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
50 # MAVEN_GOALS with your maven goals to build
51 # MAVEN_OPTS with your maven options to build
52
53 - job-template:
54     name: 'ovsdb-verify-{stream}'
55
56     # Job template for ODL verify jobs
57     #
58     # The purpose of this job template is to setup a ODL verify job
59     #
60     # Required Variables:
61     #     stream:    release stream (eg. stable-lithium or beryllium)
62     #     branch:    git branch (eg. stable/lithium or master)
63
64     project-type: matrix
65     node: matrix_master
66     concurrent: true
67
68     axes:
69         - axis:
70             type: slave
71             name: nodes
72             values:
73                 - dynamic_verify
74         - axis:
75             type: jdk
76             values: '{obj:jdks}'
77
78     logrotate:
79         daysToKeep: '14'
80
81     parameters:
82         - project-parameter:
83             project: '{project}'
84         - gerrit-parameters:
85             project: '{project}'
86             branch: '{branch}'
87             refspec: 'refs/heads/{branch}'
88
89     scm:
90         - gerrit-trigger-scm:
91             refspec: '$GERRIT_REFSPEC'
92             choosing-strategy: 'gerrit'
93
94     wrappers:
95         - opendaylight-infra-wrappers:
96             build-timeout: '{build-timeout}'
97
98     triggers:
99         - gerrit-trigger-patch-submitted:
100             name: 'ovsdb'
101             branch: '{branch}'
102
103     builders:
104         - jacoco-nojava-workaround
105         - provide-maven-settings:
106             global-settings-file: 'odl-global-settings'
107             settings-file: 'ovsdb-settings'
108         - maven-target:
109             maven-version: '{mvn33}'
110             pom: 'pom.xml'
111             goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -V -B -Djenkins -Dstream={stream}'
112             java-opts:
113                 - '-Xmx1024m -XX:MaxPermSize=256m'
114             settings: 'ovsdb-settings'
115             settings-type: cfp
116             global-settings: 'odl-global-settings'
117             global-settings-type: cfp
118
119     publishers:
120         - archive-artifacts:
121             artifacts: '**/target/surefire-reports/*-output.txt, '
122         - findbugs
123         - email-notification:
124             email-prefix: '[ovsdb]'
125         - jacoco-report
126         - archive-build:
127             maven-version: '{mvn33}'
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: '14'
147         numToKeep: '10'
148         artifactDaysToKeep: '{build-artifact-days-to-keep}'
149         artifactNumToKeep: '{build-artifact-num-to-keep}'
150
151     parameters:
152         - project-parameter:
153             project: '{project}'
154         - gerrit-parameters:
155             project: '{project}'
156             branch: '{branch}'
157             refspec: 'refs/heads/{branch}'
158
159     scm:
160         - gerrit-trigger-scm:
161             refspec: ''
162             choosing-strategy: 'default'
163
164     wrappers:
165         - opendaylight-infra-wrappers:
166             build-timeout: '{build-timeout}'
167
168     triggers:
169         - timed: 'H H * * 0'
170         - gerrit-trigger-patch-merged:
171             name: 'ovsdb'
172             branch: '{branch}'
173
174     prebuilders:
175         - jacoco-nojava-workaround
176         - provide-maven-settings:
177             global-settings-file: 'odl-global-settings'
178             settings-file: 'ovsdb-settings'
179
180     maven:
181         maven-name: '{mvn33}'
182         root-pom: 'pom.xml'
183         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -V -B -Djenkins -Dmerge -Dstream={stream}'
184         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
185         settings: 'ovsdb-settings'
186         settings-type: cfp
187         global-settings: 'odl-global-settings'
188         global-settings-type: cfp
189         post-step-run-condition: UNSTABLE
190
191     postbuilders:
192         - conditional-step:
193             condition-kind: file-exists
194             condition-filename: deploy-site.xml
195             condition-basedir: workspace
196
197             # The strategy here is intentional to run Maven site:deploy twice
198             # once using regular pom.xml to produce a staged-site which is
199             # then used by deploy-site.xml to push to Nexus. This is a
200             # workaround to Maven Site's default linking code which creates
201             # incorrect URLs for sites due to auto-detection assuming your
202             # project is configured in a certain way which ODL is not.
203             steps:
204             - maven-target:
205                 maven-version: '{mvn33}'
206                 pom: pom.xml
207                 goals: 'site:deploy -V -B -Dstream={stream}'
208                 java-opts:
209                     - '-Xmx2g'
210                 settings: 'ovsdb-settings'
211                 settings-type: cfp
212                 global-settings: 'odl-global-settings'
213                 global-settings-type: cfp
214             - maven-target:
215                 maven-version: '{mvn33}'
216                 pom: deploy-site.xml
217                 goals: 'site:deploy -V -B -Dstream={stream}'
218                 java-opts:
219                     - '-Xmx2g'
220                 settings: 'ovsdb-settings'
221                 settings-type: cfp
222                 global-settings: 'odl-global-settings'
223                 global-settings-type: cfp
224
225     reporters:
226         - findbugs
227
228     publishers:
229         - archive-artifacts:
230             artifacts: '**/target/surefire-reports/*-output.txt, '
231         - email-notification:
232             email-prefix: '[ovsdb]'
233         - maven-deploy:
234             id: ''
235             unique-version: true
236             deploy-unstable: false
237         - jacoco-report
238         - archive-build:
239             maven-version: '{mvn33}'
240
241 - job-template:
242     name: 'ovsdb-periodic-{stream}'
243     disabled: false
244
245     # Job template for periodic builders
246     #
247     # The purpose of this job template is to setup a periodic
248     # builder.
249     #
250     # Required Variables:
251     #     stream:    release stream (eg. stable-lithium or beryllium)
252     #     branch:    git branch (eg. stable/lithium or master)
253
254     project-type: maven
255     node: dynamic_verify
256     jdk: '{jdk}'
257
258     logrotate:
259         daysToKeep: '14'
260         numToKeep: '10'
261         artifactDaysToKeep: '{build-artifact-days-to-keep}'
262         artifactNumToKeep: '{build-artifact-num-to-keep}'
263
264     parameters:
265         - project-parameter:
266             project: '{project}'
267
268     scm:
269         - git-scm:
270             refspec: ''
271             branch: '{branch}'
272
273     wrappers:
274         - opendaylight-infra-wrappers:
275             build-timeout: '{build-timeout}'
276
277     triggers:
278         - timed: '@daily'
279
280     prebuilders:
281         - jacoco-nojava-workaround
282         - provide-maven-settings:
283             global-settings-file: 'odl-global-settings'
284             settings-file: 'ovsdb-settings'
285
286     maven:
287         maven-name: '{mvn33}'
288         root-pom: 'pom.xml'
289         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -V -B -Djenkins'
290         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
291         settings: 'ovsdb-settings'
292         settings-type: cfp
293         global-settings: 'odl-global-settings'
294         global-settings-type: cfp
295
296     reporters:
297         - findbugs
298
299     publishers:
300         - email-notification:
301             email-prefix: '[ovsdb]'
302         - jacoco-report
303         - archive-build:
304             maven-version: '{mvn33}'
305
306 - job-template:
307     name: 'ovsdb-distribution-{stream}'
308
309     # Required variables:
310     #     stream:    release stream (eg. stable-lithium or beryllium)
311     #     branch:    git branch (eg. stable/lithium or master)
312
313     project-type: maven
314     node: dynamic_merge
315     jdk: '{jdk}'
316
317     logrotate:
318         daysToKeep: '{build-days-to-keep}'
319         numToKeep: '{build-num-to-keep}'
320         artifactDaysToKeep: '{build-artifact-days-to-keep}'
321         artifactNumToKeep: '{build-artifact-num-to-keep}'
322
323     parameters:
324         - project-parameter:
325             project: 'integration/distribution'
326
327     scm:
328         - git-scm:
329             refspec: ''
330             branch: '{branch}'
331
332     wrappers:
333         - opendaylight-infra-wrappers:
334             build-timeout: '{build-timeout}'
335
336     triggers:
337         - reverse:
338             jobs: '{project}-merge-{stream}'
339             result: 'success'
340
341     prebuilders:
342         - provide-maven-settings:
343             global-settings-file: 'odl-global-settings'
344             settings-file: 'ovsdb-settings'
345
346     maven:
347         maven-name: '{mvn33}'
348         root-pom: 'pom.xml'
349         goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
350         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
351         settings: 'integration-distribution-settings'
352         settings-type: cfp
353         global-settings: 'odl-global-settings'
354         global-settings-type: cfp
355
356     publishers:
357         - email-notification:
358             email-prefix: '[{project}]'
359         - maven-deploy:
360             id: ''
361             unique-version: true
362             deploy-unstable: false
363         - archive-build:
364             maven-version: '{mvn33}'
365
366 # Template: integration-patch-distribution-{stream}
367 # Goal: Build a patch and make sure the distribution can deploy with this change
368 # Operation: This job template builds a patch, creates a distribution containing
369 #            the patch, and triggers the distribution deploy test
370
371 - job-template:
372     name: 'ovsdb-distribution-check-{stream}'
373     disabled: '{obj:disable_distribution_check}'
374
375     project-type: maven
376     node: dynamic_verify
377     concurrent: true
378     jdk: '{jdk}'
379
380     logrotate:
381         daysToKeep: '{build-days-to-keep}'
382         numToKeep: '{build-num-to-keep}'
383         artifactDaysToKeep: '{build-artifact-days-to-keep}'
384         artifactNumToKeep: '{build-artifact-num-to-keep}'
385
386     parameters:
387         - gerrit-parameters:
388             project: '{project}'
389             branch: '{branch}'
390             refspec: 'refs/heads/{branch}'
391         - project-parameter:
392             project: '{project}'
393         - integration-distribution-git-url
394
395     scm:
396         - integration-gerrit-scm:
397             basedir: '$GERRIT_PROJECT'
398             refspec: '$GERRIT_REFSPEC'
399             branch: '{branch}'
400         - integration-distribution-scm:
401             branch: '{branch}'
402
403     wrappers:
404         - opendaylight-infra-wrappers:
405             build-timeout: '{build-timeout}'
406
407     triggers:
408         - gerrit:
409             server-name: 'OpenDaylight'
410             trigger-on:
411                 - patchset-created-event:
412                     exclude-drafts: 'true'
413                     exclude-trivial-rebase: 'false'
414                     exclude-no-code-change: 'true'
415                 - draft-published-event
416                 - comment-added-contains-event:
417                     comment-contains-value: 'test-distribution'
418                 - comment-added-contains-event:
419                     comment-contains-value: 'reverify'
420                 - comment-added-contains-event:
421                     comment-contains-value: 'recheck'
422             projects:
423               - project-compare-type: 'ANT'
424                 project-pattern: '{name}'
425                 branches:
426                   - branch-compare-type: 'ANT'
427                     branch-pattern: '**/{branch}'
428             skip-vote:
429                 successful: false
430                 failed: false
431                 unstable: false
432                 notbuilt: false
433
434     prebuilders:
435         - maven-target:
436             maven-version: '{mvn33}'
437             pom: '$GERRIT_PROJECT/pom.xml'
438             goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
439             java-opts:
440                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
441             settings: 'ovsdb-settings'
442             settings-type: cfp
443             global-settings: 'odl-global-settings'
444             global-settings-type: cfp
445
446     maven:
447         maven-name: '{mvn33}'
448         root-pom: 'distribution/pom.xml'
449         goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
450         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
451         settings: 'ovsdb-settings'
452         settings-type: cfp
453         global-settings: 'odl-global-settings'
454         global-settings-type: cfp
455         ignore-upstream-changes: true
456         post-step-run-condition: 'SUCCESS'
457
458     postbuilders:
459         - integration-distribution-check
460
461     publishers:
462         - email-notification:
463             email-prefix: '[ovsdb]'
464         - postbuildscript:
465             builders:
466                 - shell: |
467                     #!/bin/bash
468                     mkdir -p $WORKSPACE/archives
469                     cp karaf*.log $WORKSPACE/archives
470             script-only-if-succeeded: False
471             script-only-if-failed: False
472             mark-unstable-if-failed: True
473         - archive-build:
474             maven-version: '{mvn33}'
475
476 - job-template:
477     name: 'ovsdb-integration-{stream}'
478     disabled: false
479
480     # Job template for ODL integration verify jobs
481     #
482     # This is similar to a normal verify job, but it runs
483     # when a project that's a dependency of your project
484     # is successfully built.
485     #
486     # Required Variables:
487     #     stream:    release stream (eg. stable-lithium or beryllium)
488     #     branch:    git branch (eg. stable/lithium or master)
489
490     project-type: maven
491     node: dynamic_merge
492     jdk: '{jdk}'
493
494     logrotate:
495         daysToKeep: '{build-days-to-keep}'
496         numToKeep: '{build-num-to-keep}'
497         artifactDaysToKeep: '{build-artifact-days-to-keep}'
498         artifactNumToKeep: '{build-artifact-num-to-keep}'
499
500     parameters:
501         - project-parameter:
502             project: '{project}'
503
504     scm:
505         - git-scm:
506             refspec: ''
507             branch: '{branch}'
508
509     wrappers:
510         - opendaylight-infra-wrappers:
511             build-timeout: '{build-timeout}'
512
513     triggers:
514         - reverse:
515             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
516             result: 'success'
517
518     prebuilders:
519         - jacoco-nojava-workaround
520         - provide-maven-settings:
521             global-settings-file: 'odl-global-settings'
522             settings-file: 'ovsdb-settings'
523
524     maven:
525         maven-name: '{mvn33}'
526         root-pom: 'pom.xml'
527         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -V -B -Djenkins'
528         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
529         settings: 'ovsdb-settings'
530         settings-type: cfp
531         global-settings: 'odl-global-settings'
532         global-settings-type: cfp
533
534     reporters:
535         - findbugs
536
537     publishers:
538         - email-notification:
539             email-prefix: '[ovsdb] [odlparent] [controller] [yangtools]'
540         - jacoco-report
541         - archive-build:
542             maven-version: '{mvn33}'
543
544 - job-template:
545     name: 'ovsdb-clm-{stream}'
546     disabled: false
547
548     project-type: maven
549     node: dynamic_verify
550     jdk: '{jdk}'
551
552     logrotate:
553         daysToKeep: '{build-days-to-keep}'
554         numToKeep: '{build-num-to-keep}'
555         artifactDaysToKeep: '{build-artifact-days-to-keep}'
556         artifactNumToKeep: '{build-artifact-num-to-keep}'
557
558     parameters:
559         - project-parameter:
560             project: '{project}'
561
562     scm:
563         - git-scm:
564             refspec: ''
565             branch: '{branch}'
566
567     wrappers:
568         - opendaylight-infra-wrappers:
569             build-timeout: '{build-timeout}'
570
571     triggers:
572         - timed: 'H H * * 6'
573
574     prebuilders:
575         - provide-maven-settings:
576             global-settings-file: 'odl-global-settings'
577             settings-file: 'ovsdb-settings'
578
579     maven:
580         maven-name: '{mvn33}'
581         root-pom: 'pom.xml'
582         goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
583         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
584         settings: 'ovsdb-settings'
585         settings-type: cfp
586         global-settings: 'odl-global-settings'
587         global-settings-type: cfp
588
589     postbuilders:
590         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
591         - check-clm:
592             application-name: ovsdb
593
594     publishers:
595         - email-notification:
596             email-prefix: '[ovsdb]'
597         - archive-build:
598             maven-version: '{mvn33}'
599
600 - job-template:
601     name: 'ovsdb-validate-autorelease-{stream}'
602     disabled: '{obj:disable_autorelease}'
603
604     project-type: maven
605     node: dynamic_verify
606     concurrent: true
607     jdk: '{jdk}'
608
609     logrotate:
610         daysToKeep: '{build-days-to-keep}'
611         numToKeep: '{build-num-to-keep}'
612         artifactDaysToKeep: '{build-artifact-days-to-keep}'
613         artifactNumToKeep: '{build-artifact-num-to-keep}'
614
615     parameters:
616         - project-parameter:
617             project: '{project}'
618         - gerrit-parameters:
619             project: '{project}'
620             branch: '{branch}'
621             refspec: 'refs/heads/{branch}'
622         - autorelease-release-tag:
623             release-tag: 'validate'
624         - autorelease-release-branch:
625             release-branch: '{branch}'
626         - string:
627             name: CLONE_URL
628             default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
629             description: "Autorelease clone URL"
630
631     scm:
632         - git:
633             url: '$CLONE_URL'
634             credentials-id: 'opendaylight-jenkins-ssh'
635             refspec: ''
636             branches:
637                 - 'origin/{branch}'
638             skip-tag: true
639             submodule:
640                 recursive: true
641                 timeout: 60
642
643     wrappers:
644         - opendaylight-infra-wrappers:
645             build-timeout: '{build-timeout}'
646
647     triggers:
648         - gerrit:
649             server-name: 'OpenDaylight'
650             trigger-on:
651                 - patchset-created-event:
652                     exclude-drafts: 'true'
653                     exclude-trivial-rebase: 'false'
654                     exclude-no-code-change: 'true'
655                 - draft-published-event
656                 - comment-added-contains-event:
657                     comment-contains-value: 'recheck'
658                 - comment-added-contains-event:
659                     comment-contains-value: 'reverify'
660                 - comment-added-contains-event:
661                     comment-contains-value: 'revalidate'
662             projects:
663               - project-compare-type: 'ANT'
664                 project-pattern: 'ovsdb'
665                 branches:
666                   - branch-compare-type: 'ANT'
667                     branch-pattern: '**/{branch}'
668                 file-paths:
669                     - compare-type: ANT
670                       pattern: '**/*.xml'
671
672     prebuilders:
673         - jacoco-nojava-workaround
674         - autorelease-checkout-gerrit-patch
675         - autorelease-generate-release-patches
676         - maven-target:
677             maven-version: '{mvn33}'
678             pom: validate-pom.xml
679             goals: 'clean install -V -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
680             java-opts:
681             - '-Xmx8g'
682             settings: 'autorelease-settings'
683             settings-type: cfp
684             global-settings: 'odl-global-settings'
685             global-settings-type: cfp
686
687     maven:
688         maven-name: '{mvn33}'
689         root-pom: 'pom.xml'
690         goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
691         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
692         settings: 'autorelease-settings'
693         settings-type: cfp
694         global-settings: 'odl-global-settings'
695         global-settings-type: cfp
696         automatic-archiving: false
697         post-step-run-condition: UNSTABLE
698
699     postbuilders:
700         - autorelease-sys-stats
701
702     publishers:
703         - email-notification:
704             email-prefix: '[autorelease] [ovsdb]'
705         - archive-build:
706             maven-version: '{mvn33}'
707