Revert "Updated MVN_GOALS for VTN project."
[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-daily-{stream}'
12         - 'persistence-distribution-{stream}'
13         - 'persistence-integration-{stream}'
14         - 'persistence-sonar'
15         - 'persistence-clm-{stream}'
16         - 'persistence-validate-autorelease-{stream}'
17
18
19     # stream:    release stream (eg. stable-lithium or beryllium)
20     # branch:    git branch (eg. stable/lithium or master)
21     stream:
22         - beryllium:
23             branch: 'master'
24             jdk: openjdk7
25             jdks:
26                 - openjdk7
27                 - openjdk8
28             disable_autorelease: True
29         - stable-lithium:
30             branch: 'stable/lithium'
31             jdk: openjdk7
32             jdks:
33                 - openjdk7
34                 - openjdk8
35             disable_autorelease: True
36
37     project: 'persistence'
38
39 # For the Job templates below replace instances of:
40 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
41 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
42 # MAVEN_GOALS with your maven goals to build
43 # MAVEN_OPTS with your maven options to build
44
45 - job-template:
46     name: 'persistence-verify-{stream}'
47
48     # Job template for ODL verify jobs
49     #
50     # The purpose of this job template is to setup a ODL verify job
51     #
52     # Required Variables:
53     #     stream:    release stream (eg. stable-lithium or beryllium)
54     #     branch:    git branch (eg. stable/lithium or master)
55
56     project-type: matrix
57     node: matrix_master
58     concurrent: true
59
60     axes:
61         - axis:
62             type: slave
63             name: nodes
64             values:
65                 - dynamic_verify
66         - axis:
67             type: jdk
68             values: '{obj:jdks}'
69
70     logrotate:
71         daysToKeep: '{build-days-to-keep}'
72         numToKeep: '{build-num-to-keep}'
73         artifactDaysToKeep: '{build-artifact-days-to-keep}'
74         artifactNumToKeep: '{build-artifact-num-to-keep}'
75
76     parameters:
77         - project-parameter:
78             project: '{project}'
79         - gerrit-parameter:
80             branch: '{branch}'
81         - gerrit-refspec-parameter:
82             refspec: 'refs/heads/{branch}'
83
84     scm:
85         - gerrit-trigger-scm:
86             credentials-id: '{ssh-credentials}'
87             refspec: '$GERRIT_REFSPEC'
88             choosing-strategy: 'gerrit'
89
90     wrappers:
91         - build-timeout
92         - ssh-agent-credentials:
93             users:
94                 - '{ssh-credentials}'
95
96     triggers:
97         - gerrit-trigger-patch-submitted:
98             name: 'persistence'
99             branch: '{branch}'
100
101     builders:
102         - wipe-org-opendaylight-repo
103         - jacoco-nojava-workaround
104         - provide-maven-settings:
105             global-settings-file: '{odl-global-settings}'
106             settings-file: '{persistence-settings}'
107         - maven-target:
108             maven-version: '{mvn33}'
109             pom: 'pom.xml'
110             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dstream={stream}'
111             java-opts:
112                 - '-Xmx1024m -XX:MaxPermSize=256m'
113             settings: '{persistence-settings}'
114             global-settings: '{odl-global-settings}'
115
116     publishers:
117         - findbugs
118         - email-notification:
119             email-prefix: '[persistence]'
120         - jacoco-report
121
122 - job-template:
123     name: 'persistence-merge-{stream}'
124
125     # Job template for ODL merge jobs
126     #
127     # The purpose of this job template is to setup a ODL merge job
128     # and deploy artifacts to Nexus.
129     #
130     # Required Variables:
131     #     stream:    release stream (eg. stable-lithium or beryllium)
132     #     branch:    git branch (eg. stable/lithium or master)
133
134     project-type: maven
135     node: dynamic_merge
136     jdk: '{jdk}'
137
138     logrotate:
139         daysToKeep: '{build-days-to-keep}'
140         numToKeep: '{build-num-to-keep}'
141         artifactDaysToKeep: '{build-artifact-days-to-keep}'
142         artifactNumToKeep: '{build-artifact-num-to-keep}'
143
144     parameters:
145         - project-parameter:
146             project: '{project}'
147         - gerrit-parameter:
148             branch: '{branch}'
149         - gerrit-refspec-parameter:
150             refspec: 'refs/heads/{branch}'
151
152     scm:
153         - gerrit-trigger-scm:
154             credentials-id: '{ssh-credentials}'
155             refspec: ''
156             choosing-strategy: 'default'
157
158     wrappers:
159         - build-timeout
160         - ssh-agent-credentials:
161             users:
162                 - '{ssh-credentials}'
163
164     triggers:
165         - gerrit-trigger-patch-merged:
166             name: 'persistence'
167             branch: '{branch}'
168
169     prebuilders:
170         - wipe-org-opendaylight-repo
171         - jacoco-nojava-workaround
172         - provide-maven-settings:
173             global-settings-file: '{odl-global-settings}'
174             settings-file: '{persistence-settings}'
175
176     maven:
177         maven-name: '{mvn33}'
178         root-pom: 'pom.xml'
179         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dstream={stream}'
180         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
181         settings: '{persistence-settings}'
182         global-settings: '{odl-global-settings}'
183         post-step-run-condition: UNSTABLE
184
185     postbuilders:
186         - conditional-step:
187             condition-kind: file-exists
188             condition-filename: deploy-site.xml
189             condition-basedir: workspace
190
191             # The strategy here is intentional to run Maven site:deploy twice
192             # once using regular pom.xml to produce a staged-site which is
193             # then used by deploy-site.xml to push to Nexus. This is a
194             # workaround to Maven Site's default linking code which creates
195             # incorrect URLs for sites due to auto-detection assuming your
196             # project is configured in a certain way which ODL is not.
197             steps:
198             - maven-target:
199                 maven-version: '{mvn33}'
200                 pom: pom.xml
201                 goals: 'site:deploy -Dstream={stream}'
202                 java-opts:
203                     - '-Xmx2g'
204                 settings: '{persistence-settings}'
205                 global-settings: '{odl-global-settings}'
206             - maven-target:
207                 maven-version: '{mvn33}'
208                 pom: deploy-site.xml
209                 goals: 'site:deploy -Dstream={stream}'
210                 java-opts:
211                     - '-Xmx2g'
212                 settings: '{persistence-settings}'
213                 global-settings: '{odl-global-settings}'
214
215     reporters:
216         - findbugs
217
218     publishers:
219         - email-notification:
220             email-prefix: '[persistence]'
221         - maven-deploy:
222             id: ''
223             unique-version: true
224             deploy-unstable: false
225         - jacoco-report
226
227 - job-template:
228     name: 'persistence-daily-{stream}'
229
230     # Job template for daily builders
231     #
232     # The purpose of this job template is to setup a daily/nightly
233     # builder and pushes to Sonar analysis.
234     #
235     # Required Variables:
236     #     stream:    release stream (eg. stable-lithium or beryllium)
237     #     branch:    git branch (eg. stable/lithium or master)
238
239     project-type: maven
240     node: dynamic_verify
241     jdk: '{jdk}'
242
243     logrotate:
244         daysToKeep: '{build-days-to-keep}'
245         numToKeep: '{build-num-to-keep}'
246         artifactDaysToKeep: '{build-artifact-days-to-keep}'
247         artifactNumToKeep: '{build-artifact-num-to-keep}'
248
249     parameters:
250         - project-parameter:
251             project: '{project}'
252
253     scm:
254         - git-scm:
255             credentials-id: '{ssh-credentials}'
256             refspec: ''
257             branch: '{branch}'
258
259     wrappers:
260         - build-timeout
261         - ssh-agent-credentials:
262             users:
263                 - '{ssh-credentials}'
264
265     triggers:
266         - timed: 'H H * * 7'
267
268     prebuilders:
269         - wipe-org-opendaylight-repo
270         - jacoco-nojava-workaround
271         - provide-maven-settings:
272             global-settings-file: '{odl-global-settings}'
273             settings-file: '{persistence-settings}'
274
275     maven:
276         maven-name: '{mvn33}'
277         root-pom: 'pom.xml'
278         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
279         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
280         settings: '{persistence-settings}'
281         global-settings: '{odl-global-settings}'
282
283     reporters:
284         - findbugs
285
286     publishers:
287         - email-notification:
288             email-prefix: '[persistence]'
289         - jacoco-report
290
291 - job-template:
292     name: 'persistence-distribution-{stream}'
293
294     # Required variables:
295     #     stream:    release stream (eg. stable-lithium or beryllium)
296     #     branch:    git branch (eg. stable/lithium or master)
297
298     project-type: maven
299     node: dynamic_merge
300     jdk: '{jdk}'
301
302     logrotate:
303         daysToKeep: '{build-days-to-keep}'
304         numToKeep: '{build-num-to-keep}'
305         artifactDaysToKeep: '{build-artifact-days-to-keep}'
306         artifactNumToKeep: '{build-artifact-num-to-keep}'
307
308     parameters:
309         - project-parameter:
310             project: 'integration/distribution'
311
312     scm:
313         - git-scm:
314             credentials-id: '{ssh-credentials}'
315             refspec: ''
316             branch: '{branch}'
317
318     wrappers:
319         - build-timeout
320         - ssh-agent-credentials:
321             users:
322                 - '{ssh-credentials}'
323
324     triggers:
325         - reverse:
326             jobs: '{project}-merge-{stream}'
327             result: 'success'
328
329     prebuilders:
330         - wipe-org-opendaylight-repo
331         - provide-maven-settings:
332             global-settings-file: '{odl-global-settings}'
333             settings-file: '{persistence-settings}'
334
335     maven:
336         maven-name: '{mvn33}'
337         root-pom: 'pom.xml'
338         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
339         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
340         settings: '{integration-settings}'
341         global-settings: '{odl-global-settings}'
342
343     publishers:
344         - email-notification:
345             email-prefix: '[{project}]'
346         - maven-deploy:
347             id: ''
348             unique-version: true
349             deploy-unstable: false
350
351 - job-template:
352     name: 'persistence-integration-{stream}'
353     disabled: false
354
355     # Job template for ODL integration verify jobs
356     #
357     # This is similar to a normal verify job, but it runs
358     # when a project that's a dependency of your project
359     # is successfully built.
360     #
361     # Required Variables:
362     #     stream:    release stream (eg. stable-lithium or beryllium)
363     #     branch:    git branch (eg. stable/lithium or master)
364
365     project-type: maven
366     node: dynamic_merge
367     jdk: '{jdk}'
368
369     logrotate:
370         daysToKeep: '{build-days-to-keep}'
371         numToKeep: '{build-num-to-keep}'
372         artifactDaysToKeep: '{build-artifact-days-to-keep}'
373         artifactNumToKeep: '{build-artifact-num-to-keep}'
374
375     parameters:
376         - project-parameter:
377             project: '{project}'
378
379     scm:
380         - git-scm:
381             credentials-id: '{ssh-credentials}'
382             refspec: ''
383             branch: '{branch}'
384
385     wrappers:
386         - build-timeout
387         - ssh-agent-credentials:
388             users:
389                 - '{ssh-credentials}'
390
391     triggers:
392         - reverse:
393             jobs: 'odlparent-merge-{stream}'
394             result: 'success'
395
396     prebuilders:
397         - wipe-org-opendaylight-repo
398         - jacoco-nojava-workaround
399         - provide-maven-settings:
400             global-settings-file: '{odl-global-settings}'
401             settings-file: '{persistence-settings}'
402
403     maven:
404         maven-name: '{mvn33}'
405         root-pom: 'pom.xml'
406         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
407         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
408         settings: '{persistence-settings}'
409         global-settings: '{odl-global-settings}'
410
411     reporters:
412         - findbugs
413
414     publishers:
415         - email-notification:
416             email-prefix: '[persistence] [odlparent]'
417         - jacoco-report
418
419 - job-template:
420     name: 'persistence-sonar'
421
422     project-type: maven
423     node: dynamic_verify
424     jdk: 'openjdk7'
425
426     logrotate:
427         daysToKeep: '7'
428         numToKeep: '10'
429         artifactDaysToKeep: '1'
430         artifactNumToKeep: '1'
431
432     parameters:
433         - project-parameter:
434             project: '{project}'
435
436     scm:
437         - git-scm:
438             credentials-id: '{ssh-credentials}'
439             refspec: ''
440             branch: 'master'
441
442     wrappers:
443         - build-timeout
444         - ssh-agent-credentials:
445             users:
446                 - '{ssh-credentials}'
447
448     triggers:
449         - timed: '@weekly'
450         - gerrit-trigger-patch-sonar:
451             name: 'persistence'
452
453     prebuilders:
454         - wipe-org-opendaylight-repo
455         - jacoco-nojava-workaround
456         - provide-maven-settings:
457             global-settings-file: '{odl-global-settings}'
458             settings-file: '{persistence-settings}'
459
460     maven:
461         maven-name: '{mvn33}'
462         root-pom: 'pom.xml'
463         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
464         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
465         settings: '{persistence-settings}'
466         global-settings: '{odl-global-settings}'
467
468     reporters:
469         - findbugs
470
471     publishers:
472         - sonar:
473             language: 'java'
474             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
475         - email-notification:
476             email-prefix: '[persistence]'
477         - jacoco-report
478
479 - job-template:
480     name: 'persistence-clm-{stream}'
481
482     project-type: maven
483     node: dynamic_verify
484     jdk: '{jdk}'
485
486     logrotate:
487         daysToKeep: '{build-days-to-keep}'
488         numToKeep: '{build-num-to-keep}'
489         artifactDaysToKeep: '{build-artifact-days-to-keep}'
490         artifactNumToKeep: '{build-artifact-num-to-keep}'
491
492     parameters:
493         - project-parameter:
494             project: '{project}'
495
496     scm:
497         - git-scm:
498             credentials-id: '{ssh-credentials}'
499             refspec: ''
500             branch: '{branch}'
501
502     wrappers:
503         - build-timeout
504         - ssh-agent-credentials:
505             users:
506                 - '{ssh-credentials}'
507
508     triggers:
509         - timed: '@weekly'
510
511     prebuilders:
512         - wipe-org-opendaylight-repo
513         - provide-maven-settings:
514             global-settings-file: '{odl-global-settings}'
515             settings-file: '{persistence-settings}'
516
517     maven:
518         maven-name: '{mvn33}'
519         root-pom: 'pom.xml'
520         goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
521         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
522         settings: '{persistence-settings}'
523         global-settings: '{odl-global-settings}'
524
525     postbuilders:
526         - check-clm:
527             application-name: persistence
528
529     publishers:
530         - email-notification:
531             email-prefix: '[persistence]'
532
533 - job-template:
534     name: 'persistence-validate-autorelease-{stream}'
535     disabled: '{obj:disable_autorelease}'
536
537     project-type: maven
538     node: dynamic_verify
539     concurrent: true
540     jdk: '{jdk}'
541
542     logrotate:
543         daysToKeep: '{build-days-to-keep}'
544         numToKeep: '{build-num-to-keep}'
545         artifactDaysToKeep: '{build-artifact-days-to-keep}'
546         artifactNumToKeep: '{build-artifact-num-to-keep}'
547
548     parameters:
549         - project-parameter:
550             project: '{project}'
551         - gerrit-parameter:
552             branch: '{branch}'
553         - autorelease-release-tag:
554             release-tag: 'validate'
555         - autorelease-release-branch:
556             release-branch: '{branch}'
557         - autorelease-release-datestamp:
558             datestamp: true
559
560     scm:
561         - git:
562             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
563             refspec: ''
564             branches:
565                 - 'origin/{branch}'
566             skip-tag: true
567             submodule:
568                 recursive: true
569
570     wrappers:
571         - autorelease-build-timeout
572         - ssh-agent-credentials:
573             users:
574                 - '{ssh-credentials}'
575
576     triggers:
577         - gerrit:
578             server-name: 'OpenDaylight'
579             trigger-on:
580                 - patchset-created-event:
581                     exclude-drafts: 'false'
582                     exclude-trivial-rebase: 'false'
583                     exclude-no-code-change: 'false'
584                 - draft-published-event
585                 - comment-added-contains-event:
586                     comment-contains-value: 'recheck'
587                 - comment-added-contains-event:
588                     comment-contains-value: 'reverify'
589                 - comment-added-contains-event:
590                     comment-contains-value: 'revalidate'
591             projects:
592               - project-compare-type: 'ANT'
593                 project-pattern: 'persistence'
594                 branches:
595                   - branch-compare-type: 'ANT'
596                     branch-pattern: '**/{branch}'
597
598     prebuilders:
599         - wipe-org-opendaylight-repo
600         - jacoco-nojava-workaround
601         - autorelease-checkout-gerrit-patch
602         - autorelease-generate-taglist
603         - autorelease-generate-release-patches
604         - maven-target:
605             maven-version: '{mvn33}'
606             pom: validate-pom.xml
607             goals: 'clean install -T1.5C -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
608             java-opts:
609             - '-Xmx8g'
610             settings: '{autorelease-settings}'
611             global-settings: '{odl-global-settings}'
612
613     maven:
614         maven-name: '{mvn33}'
615         root-pom: 'pom.xml'
616         goals: 'clean validate -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
617         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
618         settings: '{autorelease-settings}'
619         global-settings: '{odl-global-settings}'
620         automatic-archiving: false
621         post-step-run-condition: UNSTABLE
622
623     postbuilders:
624         - shell: "./scripts/list-project-dependencies.sh"
625         - autorelease-sys-stats
626
627     publishers:
628         - archive-artifacts:
629             artifacts: '*.log'
630         - email-notification:
631             email-prefix: '[autorelease] [persistence]'
632