b696a8117b78aa57c3f2a0eab94ddd91b3722ae7
[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     disabled: false
243
244     # Job template for periodic builders
245     #
246     # The purpose of this job template is to setup a periodic
247     # builder.
248     #
249     # Required Variables:
250     #     stream:    release stream (eg. stable-lithium or beryllium)
251     #     branch:    git branch (eg. stable/lithium or master)
252
253     project-type: maven
254     node: dynamic_verify
255     jdk: '{jdk}'
256
257     logrotate:
258         daysToKeep: '{build-days-to-keep}'
259         numToKeep: '{build-num-to-keep}'
260         artifactDaysToKeep: '{build-artifact-days-to-keep}'
261         artifactNumToKeep: '{build-artifact-num-to-keep}'
262
263     parameters:
264         - project-parameter:
265             project: '{project}'
266
267     scm:
268         - git-scm:
269             credentials-id: '{ssh-credentials}'
270             refspec: ''
271             branch: '{branch}'
272
273     wrappers:
274         - build-timeout
275         - ssh-agent-credentials:
276             users:
277                 - '{ssh-credentials}'
278
279     triggers:
280         - timed: '@daily'
281
282     prebuilders:
283         - wipe-org-opendaylight-repo
284         - jacoco-nojava-workaround
285         - provide-maven-settings:
286             global-settings-file: '{odl-global-settings}'
287             settings-file: '{ovsdb-settings}'
288
289     maven:
290         maven-name: '{mvn33}'
291         root-pom: 'pom.xml'
292         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
293         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
294         settings: '{ovsdb-settings}'
295         global-settings: '{odl-global-settings}'
296
297     reporters:
298         - findbugs
299
300     publishers:
301         - email-notification:
302             email-prefix: '[ovsdb]'
303         - jacoco-report
304
305 - job-template:
306     name: 'ovsdb-distribution-{stream}'
307
308     # Required variables:
309     #     stream:    release stream (eg. stable-lithium or beryllium)
310     #     branch:    git branch (eg. stable/lithium or master)
311
312     project-type: maven
313     node: dynamic_merge
314     jdk: '{jdk}'
315
316     logrotate:
317         daysToKeep: '{build-days-to-keep}'
318         numToKeep: '{build-num-to-keep}'
319         artifactDaysToKeep: '{build-artifact-days-to-keep}'
320         artifactNumToKeep: '{build-artifact-num-to-keep}'
321
322     parameters:
323         - project-parameter:
324             project: 'integration/distribution'
325
326     scm:
327         - git-scm:
328             credentials-id: '{ssh-credentials}'
329             refspec: ''
330             branch: '{branch}'
331
332     wrappers:
333         - build-timeout
334         - ssh-agent-credentials:
335             users:
336                 - '{ssh-credentials}'
337
338     triggers:
339         - reverse:
340             jobs: '{project}-merge-{stream}'
341             result: 'success'
342
343     prebuilders:
344         - wipe-org-opendaylight-repo
345         - provide-maven-settings:
346             global-settings-file: '{odl-global-settings}'
347             settings-file: '{ovsdb-settings}'
348
349     maven:
350         maven-name: '{mvn33}'
351         root-pom: 'pom.xml'
352         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
353         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
354         settings: '{integration-settings}'
355         global-settings: '{odl-global-settings}'
356
357     publishers:
358         - email-notification:
359             email-prefix: '[{project}]'
360         - maven-deploy:
361             id: ''
362             unique-version: true
363             deploy-unstable: false
364
365 - job-template:
366     name: 'ovsdb-integration-{stream}'
367     disabled: false
368
369     # Job template for ODL integration verify jobs
370     #
371     # This is similar to a normal verify job, but it runs
372     # when a project that's a dependency of your project
373     # is successfully built.
374     #
375     # Required Variables:
376     #     stream:    release stream (eg. stable-lithium or beryllium)
377     #     branch:    git branch (eg. stable/lithium or master)
378
379     project-type: maven
380     node: dynamic_merge
381     jdk: '{jdk}'
382
383     logrotate:
384         daysToKeep: '{build-days-to-keep}'
385         numToKeep: '{build-num-to-keep}'
386         artifactDaysToKeep: '{build-artifact-days-to-keep}'
387         artifactNumToKeep: '{build-artifact-num-to-keep}'
388
389     parameters:
390         - project-parameter:
391             project: '{project}'
392
393     scm:
394         - git-scm:
395             credentials-id: '{ssh-credentials}'
396             refspec: ''
397             branch: '{branch}'
398
399     wrappers:
400         - build-timeout
401         - ssh-agent-credentials:
402             users:
403                 - '{ssh-credentials}'
404
405     triggers:
406         - reverse:
407             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream}'
408             result: 'success'
409
410     prebuilders:
411         - wipe-org-opendaylight-repo
412         - jacoco-nojava-workaround
413         - provide-maven-settings:
414             global-settings-file: '{odl-global-settings}'
415             settings-file: '{ovsdb-settings}'
416
417     maven:
418         maven-name: '{mvn33}'
419         root-pom: 'pom.xml'
420         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
421         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
422         settings: '{ovsdb-settings}'
423         global-settings: '{odl-global-settings}'
424
425     reporters:
426         - findbugs
427
428     publishers:
429         - email-notification:
430             email-prefix: '[ovsdb] [odlparent] [controller] [yangtools] [openflowplugin] [neutron]'
431         - jacoco-report
432
433 - job-template:
434     name: 'ovsdb-clm-{stream}'
435     disabled: false
436
437     project-type: maven
438     node: dynamic_verify
439     jdk: '{jdk}'
440
441     logrotate:
442         daysToKeep: '{build-days-to-keep}'
443         numToKeep: '{build-num-to-keep}'
444         artifactDaysToKeep: '{build-artifact-days-to-keep}'
445         artifactNumToKeep: '{build-artifact-num-to-keep}'
446
447     parameters:
448         - project-parameter:
449             project: '{project}'
450
451     scm:
452         - git-scm:
453             credentials-id: '{ssh-credentials}'
454             refspec: ''
455             branch: '{branch}'
456
457     wrappers:
458         - build-timeout
459         - ssh-agent-credentials:
460             users:
461                 - '{ssh-credentials}'
462
463     triggers:
464         - timed: '@weekly'
465
466     prebuilders:
467         - wipe-org-opendaylight-repo
468         - provide-maven-settings:
469             global-settings-file: '{odl-global-settings}'
470             settings-file: '{ovsdb-settings}'
471
472     maven:
473         maven-name: '{mvn33}'
474         root-pom: 'pom.xml'
475         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'
476         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
477         settings: '{ovsdb-settings}'
478         global-settings: '{odl-global-settings}'
479
480     postbuilders:
481         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
482         - check-clm:
483             application-name: ovsdb
484
485     publishers:
486         - email-notification:
487             email-prefix: '[ovsdb]'
488
489 - job-template:
490     name: 'ovsdb-validate-autorelease-{stream}'
491     disabled: '{obj:disable_autorelease}'
492
493     project-type: maven
494     node: dynamic_verify
495     concurrent: true
496     jdk: '{jdk}'
497
498     logrotate:
499         daysToKeep: '{build-days-to-keep}'
500         numToKeep: '{build-num-to-keep}'
501         artifactDaysToKeep: '{build-artifact-days-to-keep}'
502         artifactNumToKeep: '{build-artifact-num-to-keep}'
503
504     parameters:
505         - project-parameter:
506             project: '{project}'
507         - gerrit-parameter:
508             branch: '{branch}'
509         - autorelease-release-tag:
510             release-tag: 'validate'
511         - autorelease-release-branch:
512             release-branch: '{branch}'
513         - autorelease-release-datestamp:
514             datestamp: true
515
516     scm:
517         - git:
518             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
519             refspec: ''
520             branches:
521                 - 'origin/{branch}'
522             skip-tag: true
523             submodule:
524                 recursive: true
525
526     wrappers:
527         - autorelease-build-timeout
528         - ssh-agent-credentials:
529             users:
530                 - '{ssh-credentials}'
531
532     triggers:
533         - gerrit:
534             server-name: 'OpenDaylight'
535             trigger-on:
536                 - patchset-created-event:
537                     exclude-drafts: 'false'
538                     exclude-trivial-rebase: 'false'
539                     exclude-no-code-change: 'false'
540                 - draft-published-event
541                 - comment-added-contains-event:
542                     comment-contains-value: 'recheck'
543                 - comment-added-contains-event:
544                     comment-contains-value: 'reverify'
545                 - comment-added-contains-event:
546                     comment-contains-value: 'revalidate'
547             projects:
548               - project-compare-type: 'ANT'
549                 project-pattern: 'ovsdb'
550                 branches:
551                   - branch-compare-type: 'ANT'
552                     branch-pattern: '**/{branch}'
553
554     prebuilders:
555         - wipe-org-opendaylight-repo
556         - jacoco-nojava-workaround
557         - autorelease-checkout-gerrit-patch
558         - autorelease-generate-taglist
559         - autorelease-generate-release-patches
560         - maven-target:
561             maven-version: '{mvn33}'
562             pom: validate-pom.xml
563             goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
564             java-opts:
565             - '-Xmx8g'
566             settings: '{autorelease-settings}'
567             global-settings: '{odl-global-settings}'
568
569     maven:
570         maven-name: '{mvn33}'
571         root-pom: 'pom.xml'
572         goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
573         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
574         settings: '{autorelease-settings}'
575         global-settings: '{odl-global-settings}'
576         automatic-archiving: false
577         post-step-run-condition: UNSTABLE
578
579     postbuilders:
580         - shell: "./scripts/list-project-dependencies.sh"
581         - autorelease-sys-stats
582
583     publishers:
584         - archive-artifacts:
585             artifacts: '*.log'
586         - email-notification:
587             email-prefix: '[autorelease] [ovsdb]'
588