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