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