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