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