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