60c19d536598de36be7c9c13d7ba63030c352f6a
[releng/builder.git] / jjb / persistence / persistence.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: persistence
8     jobs:
9         - 'persistence-verify-{stream}'
10         - 'persistence-merge-{stream}'
11         - 'persistence-periodic-{stream}'
12         - 'persistence-distribution-{stream}'
13         - 'persistence-distribution-check-{stream}'
14         - 'persistence-integration-{stream}'
15         - 'persistence-sonar'
16         - 'persistence-clm-{stream}'
17         - 'persistence-validate-autorelease-{stream}'
18
19
20     # stream:    release stream (eg. stable-lithium or beryllium)
21     # branch:    git branch (eg. stable/lithium or master)
22     stream:
23         - boron:
24             branch: 'master'
25             jdk: openjdk7
26             jdks:
27                 - openjdk7
28                 - openjdk8
29             disable_autorelease: True
30             disable_distribution_check: False
31         - beryllium:
32             branch: 'stable/beryllium'
33             jdk: openjdk7
34             jdks:
35                 - openjdk7
36                 - openjdk8
37             disable_autorelease: True
38             disable_distribution_check: False
39         - stable-lithium:
40             branch: 'stable/lithium'
41             jdk: openjdk7
42             jdks:
43                 - openjdk7
44                 - openjdk8
45             disable_autorelease: True
46             disable_distribution_check: True
47
48     project: 'persistence'
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: 'persistence-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: 'persistence'
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: '{persistence-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: '{persistence-settings}'
125             global-settings: '{odl-global-settings}'
126
127     publishers:
128         - archive-artifacts:
129             artifacts: '**/target/surefire-reports/*-output.txt, '
130         - findbugs
131         - email-notification:
132             email-prefix: '[persistence]'
133         - jacoco-report
134
135 - job-template:
136     name: 'persistence-merge-{stream}'
137
138     # Job template for ODL merge jobs
139     #
140     # The purpose of this job template is to setup a ODL merge job
141     # and deploy artifacts to Nexus.
142     #
143     # Required Variables:
144     #     stream:    release stream (eg. stable-lithium or beryllium)
145     #     branch:    git branch (eg. stable/lithium or master)
146
147     project-type: maven
148     node: dynamic_merge
149     jdk: '{jdk}'
150
151     logrotate:
152         daysToKeep: '14'
153         numToKeep: '10'
154         artifactDaysToKeep: '{build-artifact-days-to-keep}'
155         artifactNumToKeep: '{build-artifact-num-to-keep}'
156
157     parameters:
158         - project-parameter:
159             project: '{project}'
160         - gerrit-parameter:
161             branch: '{branch}'
162         - gerrit-refspec-parameter:
163             refspec: 'refs/heads/{branch}'
164
165     scm:
166         - gerrit-trigger-scm:
167             credentials-id: '{ssh-credentials}'
168             refspec: ''
169             choosing-strategy: 'default'
170
171     wrappers:
172         - build-timeout
173         - ssh-agent-credentials:
174             users:
175                 - '{ssh-credentials}'
176
177     triggers:
178         - timed: 'H H * * 0'
179         - gerrit-trigger-patch-merged:
180             name: 'persistence'
181             branch: '{branch}'
182
183     prebuilders:
184         - wipe-org-opendaylight-repo
185         - jacoco-nojava-workaround
186         - provide-maven-settings:
187             global-settings-file: '{odl-global-settings}'
188             settings-file: '{persistence-settings}'
189
190     maven:
191         maven-name: '{mvn33}'
192         root-pom: 'pom.xml'
193         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dmerge -Dstream={stream}'
194         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
195         settings: '{persistence-settings}'
196         global-settings: '{odl-global-settings}'
197         post-step-run-condition: UNSTABLE
198
199     postbuilders:
200         - conditional-step:
201             condition-kind: file-exists
202             condition-filename: deploy-site.xml
203             condition-basedir: workspace
204
205             # The strategy here is intentional to run Maven site:deploy twice
206             # once using regular pom.xml to produce a staged-site which is
207             # then used by deploy-site.xml to push to Nexus. This is a
208             # workaround to Maven Site's default linking code which creates
209             # incorrect URLs for sites due to auto-detection assuming your
210             # project is configured in a certain way which ODL is not.
211             steps:
212             - maven-target:
213                 maven-version: '{mvn33}'
214                 pom: pom.xml
215                 goals: 'site:deploy -Dstream={stream}'
216                 java-opts:
217                     - '-Xmx2g'
218                 settings: '{persistence-settings}'
219                 global-settings: '{odl-global-settings}'
220             - maven-target:
221                 maven-version: '{mvn33}'
222                 pom: deploy-site.xml
223                 goals: 'site:deploy -Dstream={stream}'
224                 java-opts:
225                     - '-Xmx2g'
226                 settings: '{persistence-settings}'
227                 global-settings: '{odl-global-settings}'
228
229     reporters:
230         - findbugs
231
232     publishers:
233         - archive-artifacts:
234             artifacts: '**/target/surefire-reports/*-output.txt, '
235         - email-notification:
236             email-prefix: '[persistence]'
237         - maven-deploy:
238             id: ''
239             unique-version: true
240             deploy-unstable: false
241         - jacoco-report
242
243 - job-template:
244     name: 'persistence-periodic-{stream}'
245     disabled: false
246
247     # Job template for periodic builders
248     #
249     # The purpose of this job template is to setup a periodic
250     # builder.
251     #
252     # Required Variables:
253     #     stream:    release stream (eg. stable-lithium or beryllium)
254     #     branch:    git branch (eg. stable/lithium or master)
255
256     project-type: maven
257     node: dynamic_verify
258     jdk: '{jdk}'
259
260     logrotate:
261         daysToKeep: '14'
262         numToKeep: '10'
263         artifactDaysToKeep: '{build-artifact-days-to-keep}'
264         artifactNumToKeep: '{build-artifact-num-to-keep}'
265
266     parameters:
267         - project-parameter:
268             project: '{project}'
269
270     scm:
271         - git-scm:
272             credentials-id: '{ssh-credentials}'
273             refspec: ''
274             branch: '{branch}'
275
276     wrappers:
277         - build-timeout
278         - ssh-agent-credentials:
279             users:
280                 - '{ssh-credentials}'
281
282     triggers:
283         - timed: '@daily'
284
285     prebuilders:
286         - wipe-org-opendaylight-repo
287         - jacoco-nojava-workaround
288         - provide-maven-settings:
289             global-settings-file: '{odl-global-settings}'
290             settings-file: '{persistence-settings}'
291
292     maven:
293         maven-name: '{mvn33}'
294         root-pom: 'pom.xml'
295         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
296         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
297         settings: '{persistence-settings}'
298         global-settings: '{odl-global-settings}'
299
300     reporters:
301         - findbugs
302
303     publishers:
304         - email-notification:
305             email-prefix: '[persistence]'
306         - jacoco-report
307
308 - job-template:
309     name: 'persistence-distribution-{stream}'
310
311     # Required variables:
312     #     stream:    release stream (eg. stable-lithium or beryllium)
313     #     branch:    git branch (eg. stable/lithium or master)
314
315     project-type: maven
316     node: dynamic_merge
317     jdk: '{jdk}'
318
319     logrotate:
320         daysToKeep: '{build-days-to-keep}'
321         numToKeep: '{build-num-to-keep}'
322         artifactDaysToKeep: '{build-artifact-days-to-keep}'
323         artifactNumToKeep: '{build-artifact-num-to-keep}'
324
325     parameters:
326         - project-parameter:
327             project: 'integration/distribution'
328
329     scm:
330         - git-scm:
331             credentials-id: '{ssh-credentials}'
332             refspec: ''
333             branch: '{branch}'
334
335     wrappers:
336         - build-timeout
337         - ssh-agent-credentials:
338             users:
339                 - '{ssh-credentials}'
340
341     triggers:
342         - reverse:
343             jobs: '{project}-merge-{stream}'
344             result: 'success'
345
346     prebuilders:
347         - wipe-org-opendaylight-repo
348         - provide-maven-settings:
349             global-settings-file: '{odl-global-settings}'
350             settings-file: '{persistence-settings}'
351
352     maven:
353         maven-name: '{mvn33}'
354         root-pom: 'pom.xml'
355         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
356         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
357         settings: '{integration-settings}'
358         global-settings: '{odl-global-settings}'
359
360     publishers:
361         - email-notification:
362             email-prefix: '[{project}]'
363         - maven-deploy:
364             id: ''
365             unique-version: true
366             deploy-unstable: false
367
368 # Template: integration-patch-distribution-{stream}
369 # Goal: Build a patch and make sure the distribution can deploy with this change
370 # Operation: This job template builds a patch, creates a distribution containing
371 #            the patch, and triggers the distribution deploy test
372
373 - job-template:
374     name: 'persistence-distribution-check-{stream}'
375     disabled: '{obj:disable_distribution_check}'
376
377     project-type: maven
378     node: dynamic_verify
379     concurrent: true
380     jdk: '{jdk}'
381
382     logrotate:
383         daysToKeep: '14'
384         numToKeep: '10'
385         artifactDaysToKeep: '{build-artifact-days-to-keep}'
386         artifactNumToKeep: '{build-artifact-num-to-keep}'
387
388     parameters:
389         - gerrit-project-parameter:
390             project: '{project}'
391         - gerrit-refspec-parameter:
392             refspec: '{branch}'
393         - project-parameter:
394             project: '{project}'
395         - integration-distribution-git-url
396
397     scm:
398         - integration-gerrit-scm:
399             credentials-id: '{ssh-credentials}'
400             basedir: '$GERRIT_PROJECT'
401             refspec: '$GERRIT_REFSPEC'
402             branch: '{branch}'
403         - integration-distribution-scm:
404             credentials-id: '{ssh-credentials}'
405             branch: '{branch}'
406
407     wrappers:
408         - build-timeout
409         - ssh-agent-credentials:
410             users:
411                 - '{ssh-credentials}'
412
413     triggers:
414         - gerrit:
415             server-name: 'OpenDaylight'
416             trigger-on:
417                 - patchset-created-event:
418                     exclude-drafts: 'true'
419                     exclude-trivial-rebase: 'false'
420                     exclude-no-code-change: 'true'
421                 - draft-published-event
422                 - comment-added-contains-event:
423                     comment-contains-value: 'test-distribution'
424                 - comment-added-contains-event:
425                     comment-contains-value: 'reverify'
426                 - comment-added-contains-event:
427                     comment-contains-value: 'recheck'
428             projects:
429               - project-compare-type: 'ANT'
430                 project-pattern: '{name}'
431                 branches:
432                   - branch-compare-type: 'ANT'
433                     branch-pattern: '**/{branch}'
434             skip-vote:
435                 successful: false
436                 failed: false
437                 unstable: false
438                 notbuilt: false
439
440     prebuilders:
441         - wipe-org-opendaylight-repo
442         - maven-target:
443             maven-version: '{mvn33}'
444             pom: '$GERRIT_PROJECT/pom.xml'
445             goals: 'clean install -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
446             java-opts:
447                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
448             settings: '{persistence-settings}'
449             global-settings: '{odl-global-settings}'
450
451     maven:
452         maven-name: '{mvn33}'
453         root-pom: 'distribution/pom.xml'
454         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
455         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
456         settings: '{persistence-settings}'
457         global-settings: '{odl-global-settings}'
458         ignore-upstream-changes: true
459         post-step-run-condition: 'SUCCESS'
460
461     postbuilders:
462         - integration-distribution-check
463
464     publishers:
465         - archive:
466             artifacts: 'karaf.log'
467         - archive:
468             artifacts: 'karaf_console.log'
469         - email-notification:
470             email-prefix: '[persistence]'
471
472 - job-template:
473     name: 'persistence-integration-{stream}'
474     disabled: false
475
476     # Job template for ODL integration verify jobs
477     #
478     # This is similar to a normal verify job, but it runs
479     # when a project that's a dependency of your project
480     # is successfully built.
481     #
482     # Required Variables:
483     #     stream:    release stream (eg. stable-lithium or beryllium)
484     #     branch:    git branch (eg. stable/lithium or master)
485
486     project-type: maven
487     node: dynamic_merge
488     jdk: '{jdk}'
489
490     logrotate:
491         daysToKeep: '{build-days-to-keep}'
492         numToKeep: '{build-num-to-keep}'
493         artifactDaysToKeep: '{build-artifact-days-to-keep}'
494         artifactNumToKeep: '{build-artifact-num-to-keep}'
495
496     parameters:
497         - project-parameter:
498             project: '{project}'
499
500     scm:
501         - git-scm:
502             credentials-id: '{ssh-credentials}'
503             refspec: ''
504             branch: '{branch}'
505
506     wrappers:
507         - build-timeout
508         - ssh-agent-credentials:
509             users:
510                 - '{ssh-credentials}'
511
512     triggers:
513         - reverse:
514             jobs: 'odlparent-merge-{stream}'
515             result: 'success'
516
517     prebuilders:
518         - wipe-org-opendaylight-repo
519         - jacoco-nojava-workaround
520         - provide-maven-settings:
521             global-settings-file: '{odl-global-settings}'
522             settings-file: '{persistence-settings}'
523
524     maven:
525         maven-name: '{mvn33}'
526         root-pom: 'pom.xml'
527         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
528         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
529         settings: '{persistence-settings}'
530         global-settings: '{odl-global-settings}'
531
532     reporters:
533         - findbugs
534
535     publishers:
536         - email-notification:
537             email-prefix: '[persistence] [odlparent]'
538         - jacoco-report
539
540 - job-template:
541     name: 'persistence-sonar'
542     disabled: false
543
544     project-type: maven
545     node: dynamic_verify
546     jdk: 'openjdk8'
547
548     logrotate:
549         daysToKeep: '7'
550         numToKeep: '10'
551         artifactDaysToKeep: '1'
552         artifactNumToKeep: '1'
553
554     parameters:
555         - project-parameter:
556             project: '{project}'
557
558     scm:
559         - git-scm:
560             credentials-id: '{ssh-credentials}'
561             refspec: ''
562             branch: 'master'
563
564     wrappers:
565         - build-timeout
566         - ssh-agent-credentials:
567             users:
568                 - '{ssh-credentials}'
569
570     triggers:
571         - timed: 'H H * * 6'
572         - gerrit-trigger-patch-sonar:
573             name: 'persistence'
574
575     prebuilders:
576         - wipe-org-opendaylight-repo
577         - jacoco-nojava-workaround
578         - provide-maven-settings:
579             global-settings-file: '{odl-global-settings}'
580             settings-file: '{persistence-settings}'
581
582     maven:
583         maven-name: '{mvn33}'
584         root-pom: 'pom.xml'
585         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dsonar'
586         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
587         settings: '{persistence-settings}'
588         global-settings: '{odl-global-settings}'
589
590     reporters:
591         - findbugs
592
593     publishers:
594         - sonar:
595             language: 'java'
596             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
597         - email-notification:
598             email-prefix: '[persistence]'
599         - jacoco-report
600
601 - job-template:
602     name: 'persistence-clm-{stream}'
603     disabled: false
604
605     project-type: maven
606     node: dynamic_verify
607     jdk: '{jdk}'
608
609     logrotate:
610         daysToKeep: '{build-days-to-keep}'
611         numToKeep: '{build-num-to-keep}'
612         artifactDaysToKeep: '{build-artifact-days-to-keep}'
613         artifactNumToKeep: '{build-artifact-num-to-keep}'
614
615     parameters:
616         - project-parameter:
617             project: '{project}'
618
619     scm:
620         - git-scm:
621             credentials-id: '{ssh-credentials}'
622             refspec: ''
623             branch: '{branch}'
624
625     wrappers:
626         - build-timeout
627         - ssh-agent-credentials:
628             users:
629                 - '{ssh-credentials}'
630
631     triggers:
632         - timed: 'H H * * 6'
633
634     prebuilders:
635         - wipe-org-opendaylight-repo
636         - provide-maven-settings:
637             global-settings-file: '{odl-global-settings}'
638             settings-file: '{persistence-settings}'
639
640     maven:
641         maven-name: '{mvn33}'
642         root-pom: 'pom.xml'
643         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'
644         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
645         settings: '{persistence-settings}'
646         global-settings: '{odl-global-settings}'
647
648     postbuilders:
649         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
650         - check-clm:
651             application-name: persistence
652
653     publishers:
654         - email-notification:
655             email-prefix: '[persistence]'
656
657 - job-template:
658     name: 'persistence-validate-autorelease-{stream}'
659     disabled: '{obj:disable_autorelease}'
660
661     project-type: maven
662     node: dynamic_verify
663     concurrent: true
664     jdk: '{jdk}'
665
666     logrotate:
667         daysToKeep: '{build-days-to-keep}'
668         numToKeep: '{build-num-to-keep}'
669         artifactDaysToKeep: '{build-artifact-days-to-keep}'
670         artifactNumToKeep: '{build-artifact-num-to-keep}'
671
672     parameters:
673         - project-parameter:
674             project: '{project}'
675         - gerrit-parameter:
676             branch: '{branch}'
677         - autorelease-release-tag:
678             release-tag: 'validate'
679         - autorelease-release-branch:
680             release-branch: '{branch}'
681         - autorelease-release-datestamp:
682             datestamp: true
683
684     scm:
685         - git:
686             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
687             refspec: ''
688             branches:
689                 - 'origin/{branch}'
690             skip-tag: true
691             submodule:
692                 recursive: true
693
694     wrappers:
695         - autorelease-build-timeout
696         - ssh-agent-credentials:
697             users:
698                 - '{ssh-credentials}'
699
700     triggers:
701         - gerrit:
702             server-name: 'OpenDaylight'
703             trigger-on:
704                 - patchset-created-event:
705                     exclude-drafts: 'false'
706                     exclude-trivial-rebase: 'false'
707                     exclude-no-code-change: 'false'
708                 - draft-published-event
709                 - comment-added-contains-event:
710                     comment-contains-value: 'recheck'
711                 - comment-added-contains-event:
712                     comment-contains-value: 'reverify'
713                 - comment-added-contains-event:
714                     comment-contains-value: 'revalidate'
715             projects:
716               - project-compare-type: 'ANT'
717                 project-pattern: 'persistence'
718                 branches:
719                   - branch-compare-type: 'ANT'
720                     branch-pattern: '**/{branch}'
721                 file-paths:
722                     - compare-type: ANT
723                       pattern: '**/*.xml'
724
725     prebuilders:
726         - wipe-org-opendaylight-repo
727         - jacoco-nojava-workaround
728         - autorelease-checkout-gerrit-patch
729         - autorelease-generate-release-patches
730         - maven-target:
731             maven-version: '{mvn33}'
732             pom: validate-pom.xml
733             goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
734             java-opts:
735             - '-Xmx8g'
736             settings: '{autorelease-settings}'
737             global-settings: '{odl-global-settings}'
738
739     maven:
740         maven-name: '{mvn33}'
741         root-pom: 'pom.xml'
742         goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
743         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
744         settings: '{autorelease-settings}'
745         global-settings: '{odl-global-settings}'
746         automatic-archiving: false
747         post-step-run-condition: UNSTABLE
748
749     postbuilders:
750         - autorelease-sys-stats
751
752     publishers:
753         - email-notification:
754             email-prefix: '[autorelease] [persistence]'
755