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