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