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
44     project: 'ovsdb'
45
46 # For the Job templates below replace instances of:
47 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
48 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
49 # MAVEN_GOALS with your maven goals to build
50 # MAVEN_OPTS with your maven options to build
51
52 - job-template:
53     name: 'ovsdb-verify-{stream}'
54
55     # Job template for ODL verify jobs
56     #
57     # The purpose of this job template is to setup a ODL verify job
58     #
59     # Required Variables:
60     #     stream:    release stream (eg. stable-lithium or beryllium)
61     #     branch:    git branch (eg. stable/lithium or master)
62
63     project-type: matrix
64     node: matrix_master
65     concurrent: true
66
67     axes:
68         - axis:
69             type: slave
70             name: nodes
71             values:
72                 - dynamic_verify
73         - axis:
74             type: jdk
75             values: '{obj:jdks}'
76
77     logrotate:
78         daysToKeep: '{build-days-to-keep}'
79         numToKeep: '{build-num-to-keep}'
80         artifactDaysToKeep: '{build-artifact-days-to-keep}'
81         artifactNumToKeep: '{build-artifact-num-to-keep}'
82
83     parameters:
84         - project-parameter:
85             project: '{project}'
86         - gerrit-parameter:
87             branch: '{branch}'
88         - gerrit-refspec-parameter:
89             refspec: 'refs/heads/{branch}'
90
91     scm:
92         - gerrit-trigger-scm:
93             credentials-id: '{ssh-credentials}'
94             refspec: '$GERRIT_REFSPEC'
95             choosing-strategy: 'gerrit'
96
97     wrappers:
98         - build-timeout
99         - ssh-agent-credentials:
100             users:
101                 - '{ssh-credentials}'
102
103     triggers:
104         - gerrit-trigger-patch-submitted:
105             name: 'ovsdb'
106             branch: '{branch}'
107
108     builders:
109         - wipe-org-opendaylight-repo
110         - jacoco-nojava-workaround
111         - provide-maven-settings:
112             global-settings-file: '{odl-global-settings}'
113             settings-file: '{ovsdb-settings}'
114         - maven-target:
115             maven-version: '{mvn33}'
116             pom: 'pom.xml'
117             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dstream={stream}'
118             java-opts:
119                 - '-Xmx1024m -XX:MaxPermSize=256m'
120             settings: '{ovsdb-settings}'
121             global-settings: '{odl-global-settings}'
122
123     publishers:
124         - archive-artifacts:
125             artifacts: '**/target/surefire-reports/*-output.txt, '
126         - findbugs
127         - email-notification:
128             email-prefix: '[ovsdb]'
129         - jacoco-report
130
131 - job-template:
132     name: 'ovsdb-merge-{stream}'
133
134     # Job template for ODL merge jobs
135     #
136     # The purpose of this job template is to setup a ODL merge job
137     # and deploy artifacts to Nexus.
138     #
139     # Required Variables:
140     #     stream:    release stream (eg. stable-lithium or beryllium)
141     #     branch:    git branch (eg. stable/lithium or master)
142
143     project-type: maven
144     node: dynamic_merge
145     jdk: '{jdk}'
146
147     logrotate:
148         daysToKeep: '14'
149         numToKeep: '10'
150         artifactDaysToKeep: '{build-artifact-days-to-keep}'
151         artifactNumToKeep: '{build-artifact-num-to-keep}'
152
153     parameters:
154         - project-parameter:
155             project: '{project}'
156         - gerrit-parameter:
157             branch: '{branch}'
158         - gerrit-refspec-parameter:
159             refspec: 'refs/heads/{branch}'
160
161     scm:
162         - gerrit-trigger-scm:
163             credentials-id: '{ssh-credentials}'
164             refspec: ''
165             choosing-strategy: 'default'
166
167     wrappers:
168         - build-timeout
169         - ssh-agent-credentials:
170             users:
171                 - '{ssh-credentials}'
172
173     triggers:
174         - timed: 'H H * * 0'
175         - gerrit-trigger-patch-merged:
176             name: 'ovsdb'
177             branch: '{branch}'
178
179     prebuilders:
180         - wipe-org-opendaylight-repo
181         - jacoco-nojava-workaround
182         - provide-maven-settings:
183             global-settings-file: '{odl-global-settings}'
184             settings-file: '{ovsdb-settings}'
185
186     maven:
187         maven-name: '{mvn33}'
188         root-pom: 'pom.xml'
189         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dmerge -Dstream={stream}'
190         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
191         settings: '{ovsdb-settings}'
192         global-settings: '{odl-global-settings}'
193         post-step-run-condition: UNSTABLE
194
195     postbuilders:
196         - conditional-step:
197             condition-kind: file-exists
198             condition-filename: deploy-site.xml
199             condition-basedir: workspace
200
201             # The strategy here is intentional to run Maven site:deploy twice
202             # once using regular pom.xml to produce a staged-site which is
203             # then used by deploy-site.xml to push to Nexus. This is a
204             # workaround to Maven Site's default linking code which creates
205             # incorrect URLs for sites due to auto-detection assuming your
206             # project is configured in a certain way which ODL is not.
207             steps:
208             - maven-target:
209                 maven-version: '{mvn33}'
210                 pom: pom.xml
211                 goals: 'site:deploy -Dstream={stream}'
212                 java-opts:
213                     - '-Xmx2g'
214                 settings: '{ovsdb-settings}'
215                 global-settings: '{odl-global-settings}'
216             - maven-target:
217                 maven-version: '{mvn33}'
218                 pom: deploy-site.xml
219                 goals: 'site:deploy -Dstream={stream}'
220                 java-opts:
221                     - '-Xmx2g'
222                 settings: '{ovsdb-settings}'
223                 global-settings: '{odl-global-settings}'
224
225     reporters:
226         - findbugs
227
228     publishers:
229         - archive-artifacts:
230             artifacts: '**/target/surefire-reports/*-output.txt, '
231         - email-notification:
232             email-prefix: '[ovsdb]'
233         - maven-deploy:
234             id: ''
235             unique-version: true
236             deploy-unstable: false
237         - jacoco-report
238
239 - job-template:
240     name: 'ovsdb-periodic-{stream}'
241     disabled: false
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: '14'
258         numToKeep: '10'
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     disabled: false
435
436     project-type: maven
437     node: dynamic_verify
438     jdk: '{jdk}'
439
440     logrotate:
441         daysToKeep: '{build-days-to-keep}'
442         numToKeep: '{build-num-to-keep}'
443         artifactDaysToKeep: '{build-artifact-days-to-keep}'
444         artifactNumToKeep: '{build-artifact-num-to-keep}'
445
446     parameters:
447         - project-parameter:
448             project: '{project}'
449
450     scm:
451         - git-scm:
452             credentials-id: '{ssh-credentials}'
453             refspec: ''
454             branch: '{branch}'
455
456     wrappers:
457         - build-timeout
458         - ssh-agent-credentials:
459             users:
460                 - '{ssh-credentials}'
461
462     triggers:
463         - timed: 'H H * * 6'
464
465     prebuilders:
466         - wipe-org-opendaylight-repo
467         - provide-maven-settings:
468             global-settings-file: '{odl-global-settings}'
469             settings-file: '{ovsdb-settings}'
470
471     maven:
472         maven-name: '{mvn33}'
473         root-pom: 'pom.xml'
474         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'
475         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
476         settings: '{ovsdb-settings}'
477         global-settings: '{odl-global-settings}'
478
479     postbuilders:
480         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
481         - check-clm:
482             application-name: ovsdb
483
484     publishers:
485         - email-notification:
486             email-prefix: '[ovsdb]'
487
488 - job-template:
489     name: 'ovsdb-validate-autorelease-{stream}'
490     disabled: '{obj:disable_autorelease}'
491
492     project-type: maven
493     node: dynamic_verify
494     concurrent: true
495     jdk: '{jdk}'
496
497     logrotate:
498         daysToKeep: '{build-days-to-keep}'
499         numToKeep: '{build-num-to-keep}'
500         artifactDaysToKeep: '{build-artifact-days-to-keep}'
501         artifactNumToKeep: '{build-artifact-num-to-keep}'
502
503     parameters:
504         - project-parameter:
505             project: '{project}'
506         - gerrit-parameter:
507             branch: '{branch}'
508         - autorelease-release-tag:
509             release-tag: 'validate'
510         - autorelease-release-branch:
511             release-branch: '{branch}'
512         - autorelease-release-datestamp:
513             datestamp: true
514
515     scm:
516         - git:
517             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
518             refspec: ''
519             branches:
520                 - 'origin/{branch}'
521             skip-tag: true
522             shallow-clone: 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                 file-paths:
554                     - compare-type: ANT
555                       pattern: '**/*.xml'
556
557     prebuilders:
558         - wipe-org-opendaylight-repo
559         - jacoco-nojava-workaround
560         - autorelease-checkout-gerrit-patch
561         - autorelease-generate-release-patches
562         - maven-target:
563             maven-version: '{mvn33}'
564             pom: validate-pom.xml
565             goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
566             java-opts:
567             - '-Xmx8g'
568             settings: '{autorelease-settings}'
569             global-settings: '{odl-global-settings}'
570
571     maven:
572         maven-name: '{mvn33}'
573         root-pom: 'pom.xml'
574         goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
575         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
576         settings: '{autorelease-settings}'
577         global-settings: '{odl-global-settings}'
578         automatic-archiving: false
579         post-step-run-condition: UNSTABLE
580
581     postbuilders:
582         - autorelease-sys-stats
583
584     publishers:
585         - email-notification:
586             email-prefix: '[autorelease] [ovsdb]'
587