37022627338866d41bf1d11e87e512488903d278
[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         - beryllium:
28             branch: 'stable/beryllium'
29             jdk: openjdk7
30             jdks:
31                 - openjdk7
32                 - openjdk8
33             disable_autorelease: False
34         - stable-lithium:
35             branch: 'stable/lithium'
36             jdk: openjdk7
37             jdks:
38                 - openjdk7
39             disable_autorelease: True
40         - stable-helium:
41             branch: 'stable/helium'
42             jdk: openjdk7
43             jdks:
44                 - openjdk7
45             disable_autorelease: True
46
47     project: 'ovsdb'
48
49 # For the Job templates below replace instances of:
50 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
51 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
52 # MAVEN_GOALS with your maven goals to build
53 # MAVEN_OPTS with your maven options to build
54
55 - job-template:
56     name: 'ovsdb-verify-{stream}'
57
58     # Job template for ODL verify jobs
59     #
60     # The purpose of this job template is to setup a ODL verify job
61     #
62     # Required Variables:
63     #     stream:    release stream (eg. stable-lithium or beryllium)
64     #     branch:    git branch (eg. stable/lithium or master)
65
66     project-type: matrix
67     node: matrix_master
68     concurrent: true
69
70     axes:
71         - axis:
72             type: slave
73             name: nodes
74             values:
75                 - dynamic_verify
76         - axis:
77             type: jdk
78             values: '{obj:jdks}'
79
80     logrotate:
81         daysToKeep: '{build-days-to-keep}'
82         numToKeep: '{build-num-to-keep}'
83         artifactDaysToKeep: '{build-artifact-days-to-keep}'
84         artifactNumToKeep: '{build-artifact-num-to-keep}'
85
86     parameters:
87         - project-parameter:
88             project: '{project}'
89         - gerrit-parameter:
90             branch: '{branch}'
91         - gerrit-refspec-parameter:
92             refspec: 'refs/heads/{branch}'
93
94     scm:
95         - gerrit-trigger-scm:
96             credentials-id: '{ssh-credentials}'
97             refspec: '$GERRIT_REFSPEC'
98             choosing-strategy: 'gerrit'
99
100     wrappers:
101         - build-timeout
102         - ssh-agent-credentials:
103             users:
104                 - '{ssh-credentials}'
105
106     triggers:
107         - gerrit-trigger-patch-submitted:
108             name: 'ovsdb'
109             branch: '{branch}'
110
111     builders:
112         - wipe-org-opendaylight-repo
113         - jacoco-nojava-workaround
114         - provide-maven-settings:
115             global-settings-file: '{odl-global-settings}'
116             settings-file: '{ovsdb-settings}'
117         - maven-target:
118             maven-version: '{mvn33}'
119             pom: 'pom.xml'
120             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dstream={stream}'
121             java-opts:
122                 - '-Xmx1024m -XX:MaxPermSize=256m'
123             settings: '{ovsdb-settings}'
124             global-settings: '{odl-global-settings}'
125
126     publishers:
127         - findbugs
128         - email-notification:
129             email-prefix: '[ovsdb]'
130         - jacoco-report
131
132 - job-template:
133     name: 'ovsdb-merge-{stream}'
134
135     # Job template for ODL merge jobs
136     #
137     # The purpose of this job template is to setup a ODL merge job
138     # and deploy artifacts to Nexus.
139     #
140     # Required Variables:
141     #     stream:    release stream (eg. stable-lithium or beryllium)
142     #     branch:    git branch (eg. stable/lithium or master)
143
144     project-type: maven
145     node: dynamic_merge
146     jdk: '{jdk}'
147
148     logrotate:
149         daysToKeep: '{build-days-to-keep}'
150         numToKeep: '{build-num-to-keep}'
151         artifactDaysToKeep: '{build-artifact-days-to-keep}'
152         artifactNumToKeep: '{build-artifact-num-to-keep}'
153
154     parameters:
155         - project-parameter:
156             project: '{project}'
157         - gerrit-parameter:
158             branch: '{branch}'
159         - gerrit-refspec-parameter:
160             refspec: 'refs/heads/{branch}'
161
162     scm:
163         - gerrit-trigger-scm:
164             credentials-id: '{ssh-credentials}'
165             refspec: ''
166             choosing-strategy: 'default'
167
168     wrappers:
169         - build-timeout
170         - ssh-agent-credentials:
171             users:
172                 - '{ssh-credentials}'
173
174     triggers:
175         - timed: 'H H * * 0'
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     # Temporarily disable this job until Rackspace networking issues are
367     # resolved.
368     #disabled: DISABLED
369     disabled: true
370
371     # Job template for ODL integration verify jobs
372     #
373     # This is similar to a normal verify job, but it runs
374     # when a project that's a dependency of your project
375     # is successfully built.
376     #
377     # Required Variables:
378     #     stream:    release stream (eg. stable-lithium or beryllium)
379     #     branch:    git branch (eg. stable/lithium or master)
380
381     project-type: maven
382     node: dynamic_merge
383     jdk: '{jdk}'
384
385     logrotate:
386         daysToKeep: '{build-days-to-keep}'
387         numToKeep: '{build-num-to-keep}'
388         artifactDaysToKeep: '{build-artifact-days-to-keep}'
389         artifactNumToKeep: '{build-artifact-num-to-keep}'
390
391     parameters:
392         - project-parameter:
393             project: '{project}'
394
395     scm:
396         - git-scm:
397             credentials-id: '{ssh-credentials}'
398             refspec: ''
399             branch: '{branch}'
400
401     wrappers:
402         - build-timeout
403         - ssh-agent-credentials:
404             users:
405                 - '{ssh-credentials}'
406
407     triggers:
408         - reverse:
409             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream}'
410             result: 'success'
411
412     prebuilders:
413         - wipe-org-opendaylight-repo
414         - jacoco-nojava-workaround
415         - provide-maven-settings:
416             global-settings-file: '{odl-global-settings}'
417             settings-file: '{ovsdb-settings}'
418
419     maven:
420         maven-name: '{mvn33}'
421         root-pom: 'pom.xml'
422         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
423         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
424         settings: '{ovsdb-settings}'
425         global-settings: '{odl-global-settings}'
426
427     reporters:
428         - findbugs
429
430     publishers:
431         - email-notification:
432             email-prefix: '[ovsdb] [odlparent] [controller] [yangtools] [openflowplugin] [neutron]'
433         - jacoco-report
434
435 - job-template:
436     name: 'ovsdb-clm-{stream}'
437
438     project-type: maven
439     node: dynamic_verify
440     jdk: '{jdk}'
441
442     logrotate:
443         daysToKeep: '{build-days-to-keep}'
444         numToKeep: '{build-num-to-keep}'
445         artifactDaysToKeep: '{build-artifact-days-to-keep}'
446         artifactNumToKeep: '{build-artifact-num-to-keep}'
447
448     parameters:
449         - project-parameter:
450             project: '{project}'
451
452     scm:
453         - git-scm:
454             credentials-id: '{ssh-credentials}'
455             refspec: ''
456             branch: '{branch}'
457
458     wrappers:
459         - build-timeout
460         - ssh-agent-credentials:
461             users:
462                 - '{ssh-credentials}'
463
464     triggers:
465         - timed: '@weekly'
466
467     prebuilders:
468         - wipe-org-opendaylight-repo
469         - provide-maven-settings:
470             global-settings-file: '{odl-global-settings}'
471             settings-file: '{ovsdb-settings}'
472
473     maven:
474         maven-name: '{mvn33}'
475         root-pom: 'pom.xml'
476         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'
477         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
478         settings: '{ovsdb-settings}'
479         global-settings: '{odl-global-settings}'
480
481     postbuilders:
482         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
483         - check-clm:
484             application-name: ovsdb
485
486     publishers:
487         - email-notification:
488             email-prefix: '[ovsdb]'
489
490 - job-template:
491     name: 'ovsdb-validate-autorelease-{stream}'
492     disabled: '{obj:disable_autorelease}'
493
494     project-type: maven
495     node: dynamic_verify
496     concurrent: true
497     jdk: '{jdk}'
498
499     logrotate:
500         daysToKeep: '{build-days-to-keep}'
501         numToKeep: '{build-num-to-keep}'
502         artifactDaysToKeep: '{build-artifact-days-to-keep}'
503         artifactNumToKeep: '{build-artifact-num-to-keep}'
504
505     parameters:
506         - project-parameter:
507             project: '{project}'
508         - gerrit-parameter:
509             branch: '{branch}'
510         - autorelease-release-tag:
511             release-tag: 'validate'
512         - autorelease-release-branch:
513             release-branch: '{branch}'
514         - autorelease-release-datestamp:
515             datestamp: true
516
517     scm:
518         - git:
519             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
520             refspec: ''
521             branches:
522                 - 'origin/{branch}'
523             skip-tag: true
524             submodule:
525                 recursive: true
526
527     wrappers:
528         - autorelease-build-timeout
529         - ssh-agent-credentials:
530             users:
531                 - '{ssh-credentials}'
532
533     triggers:
534         - gerrit:
535             server-name: 'OpenDaylight'
536             trigger-on:
537                 - patchset-created-event:
538                     exclude-drafts: 'false'
539                     exclude-trivial-rebase: 'false'
540                     exclude-no-code-change: 'false'
541                 - draft-published-event
542                 - comment-added-contains-event:
543                     comment-contains-value: 'recheck'
544                 - comment-added-contains-event:
545                     comment-contains-value: 'reverify'
546                 - comment-added-contains-event:
547                     comment-contains-value: 'revalidate'
548             projects:
549               - project-compare-type: 'ANT'
550                 project-pattern: 'ovsdb'
551                 branches:
552                   - branch-compare-type: 'ANT'
553                     branch-pattern: '**/{branch}'
554
555     prebuilders:
556         - wipe-org-opendaylight-repo
557         - jacoco-nojava-workaround
558         - autorelease-checkout-gerrit-patch
559         - autorelease-generate-taglist
560         - autorelease-generate-release-patches
561         - maven-target:
562             maven-version: '{mvn33}'
563             pom: validate-pom.xml
564             goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
565             java-opts:
566             - '-Xmx8g'
567             settings: '{autorelease-settings}'
568             global-settings: '{odl-global-settings}'
569
570     maven:
571         maven-name: '{mvn33}'
572         root-pom: 'pom.xml'
573         goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
574         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
575         settings: '{autorelease-settings}'
576         global-settings: '{odl-global-settings}'
577         automatic-archiving: false
578         post-step-run-condition: UNSTABLE
579
580     postbuilders:
581         - shell: "./scripts/list-project-dependencies.sh"
582         - autorelease-sys-stats
583
584     publishers:
585         - archive-artifacts:
586             artifacts: '*.log'
587         - email-notification:
588             email-prefix: '[autorelease] [ovsdb]'
589