Merge "Update automated project templates"
[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
245     # Job template for periodic builders
246     #
247     # The purpose of this job template is to setup a periodic
248     # builder.
249     #
250     # Required Variables:
251     #     stream:    release stream (eg. stable-lithium or beryllium)
252     #     branch:    git branch (eg. stable/lithium or master)
253
254     project-type: maven
255     node: dynamic_verify
256     jdk: '{jdk}'
257
258     logrotate:
259         daysToKeep: '{build-days-to-keep}'
260         numToKeep: '{build-num-to-keep}'
261         artifactDaysToKeep: '{build-artifact-days-to-keep}'
262         artifactNumToKeep: '{build-artifact-num-to-keep}'
263
264     parameters:
265         - project-parameter:
266             project: '{project}'
267
268     scm:
269         - git-scm:
270             credentials-id: '{ssh-credentials}'
271             refspec: ''
272             branch: '{branch}'
273
274     wrappers:
275         - build-timeout
276         - ssh-agent-credentials:
277             users:
278                 - '{ssh-credentials}'
279
280     triggers:
281         - timed: '@daily'
282
283     prebuilders:
284         - wipe-org-opendaylight-repo
285         - jacoco-nojava-workaround
286         - provide-maven-settings:
287             global-settings-file: '{odl-global-settings}'
288             settings-file: '{dlux-settings}'
289
290     maven:
291         maven-name: '{mvn33}'
292         root-pom: 'pom.xml'
293         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
294         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
295         settings: '{dlux-settings}'
296         global-settings: '{odl-global-settings}'
297
298     reporters:
299         - findbugs
300
301     publishers:
302         - email-notification:
303             email-prefix: '[dlux]'
304         - jacoco-report
305
306 - job-template:
307     name: 'dlux-distribution-{stream}'
308
309     # Required variables:
310     #     stream:    release stream (eg. stable-lithium or beryllium)
311     #     branch:    git branch (eg. stable/lithium or master)
312
313     project-type: maven
314     node: dynamic_merge
315     jdk: '{jdk}'
316
317     logrotate:
318         daysToKeep: '{build-days-to-keep}'
319         numToKeep: '{build-num-to-keep}'
320         artifactDaysToKeep: '{build-artifact-days-to-keep}'
321         artifactNumToKeep: '{build-artifact-num-to-keep}'
322
323     parameters:
324         - project-parameter:
325             project: 'integration/distribution'
326
327     scm:
328         - git-scm:
329             credentials-id: '{ssh-credentials}'
330             refspec: ''
331             branch: '{branch}'
332
333     wrappers:
334         - build-timeout
335         - ssh-agent-credentials:
336             users:
337                 - '{ssh-credentials}'
338
339     triggers:
340         - reverse:
341             jobs: '{project}-merge-{stream}'
342             result: 'success'
343
344     prebuilders:
345         - wipe-org-opendaylight-repo
346         - provide-maven-settings:
347             global-settings-file: '{odl-global-settings}'
348             settings-file: '{dlux-settings}'
349
350     maven:
351         maven-name: '{mvn33}'
352         root-pom: 'pom.xml'
353         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
354         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
355         settings: '{integration-settings}'
356         global-settings: '{odl-global-settings}'
357
358     publishers:
359         - email-notification:
360             email-prefix: '[{project}]'
361         - maven-deploy:
362             id: ''
363             unique-version: true
364             deploy-unstable: false
365
366 - job-template:
367     name: 'dlux-integration-{stream}'
368     # Temporarily disable this job until Rackspace networking issues are
369     # resolved.
370     #disabled: DISABLED
371     disabled: true
372
373     # Job template for ODL integration verify jobs
374     #
375     # This is similar to a normal verify job, but it runs
376     # when a project that's a dependency of your project
377     # is successfully built.
378     #
379     # Required Variables:
380     #     stream:    release stream (eg. stable-lithium or beryllium)
381     #     branch:    git branch (eg. stable/lithium or master)
382
383     project-type: maven
384     node: dynamic_merge
385     jdk: '{jdk}'
386
387     logrotate:
388         daysToKeep: '{build-days-to-keep}'
389         numToKeep: '{build-num-to-keep}'
390         artifactDaysToKeep: '{build-artifact-days-to-keep}'
391         artifactNumToKeep: '{build-artifact-num-to-keep}'
392
393     parameters:
394         - project-parameter:
395             project: '{project}'
396
397     scm:
398         - git-scm:
399             credentials-id: '{ssh-credentials}'
400             refspec: ''
401             branch: '{branch}'
402
403     wrappers:
404         - build-timeout
405         - ssh-agent-credentials:
406             users:
407                 - '{ssh-credentials}'
408
409     triggers:
410         - reverse:
411             jobs: 'odlparent-merge-{stream}'
412             result: 'success'
413
414     prebuilders:
415         - wipe-org-opendaylight-repo
416         - jacoco-nojava-workaround
417         - provide-maven-settings:
418             global-settings-file: '{odl-global-settings}'
419             settings-file: '{dlux-settings}'
420
421     maven:
422         maven-name: '{mvn33}'
423         root-pom: 'pom.xml'
424         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
425         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
426         settings: '{dlux-settings}'
427         global-settings: '{odl-global-settings}'
428
429     reporters:
430         - findbugs
431
432     publishers:
433         - email-notification:
434             email-prefix: '[dlux] [odlparent]'
435         - jacoco-report
436
437 - job-template:
438     name: 'dlux-sonar'
439
440     project-type: maven
441     node: dynamic_verify
442     jdk: 'openjdk7'
443
444     logrotate:
445         daysToKeep: '7'
446         numToKeep: '10'
447         artifactDaysToKeep: '1'
448         artifactNumToKeep: '1'
449
450     parameters:
451         - project-parameter:
452             project: '{project}'
453
454     scm:
455         - git-scm:
456             credentials-id: '{ssh-credentials}'
457             refspec: ''
458             branch: 'master'
459
460     wrappers:
461         - build-timeout
462         - ssh-agent-credentials:
463             users:
464                 - '{ssh-credentials}'
465
466     triggers:
467         - timed: '@weekly'
468         - gerrit-trigger-patch-sonar:
469             name: 'dlux'
470
471     prebuilders:
472         - wipe-org-opendaylight-repo
473         - jacoco-nojava-workaround
474         - provide-maven-settings:
475             global-settings-file: '{odl-global-settings}'
476             settings-file: '{dlux-settings}'
477
478     maven:
479         maven-name: '{mvn33}'
480         root-pom: 'pom.xml'
481         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dsonar'
482         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
483         settings: '{dlux-settings}'
484         global-settings: '{odl-global-settings}'
485
486     reporters:
487         - findbugs
488
489     publishers:
490         - sonar:
491             language: 'java'
492             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
493         - email-notification:
494             email-prefix: '[dlux]'
495         - jacoco-report
496
497 - job-template:
498     name: 'dlux-clm-{stream}'
499
500     project-type: maven
501     node: dynamic_verify
502     jdk: '{jdk}'
503
504     logrotate:
505         daysToKeep: '{build-days-to-keep}'
506         numToKeep: '{build-num-to-keep}'
507         artifactDaysToKeep: '{build-artifact-days-to-keep}'
508         artifactNumToKeep: '{build-artifact-num-to-keep}'
509
510     parameters:
511         - project-parameter:
512             project: '{project}'
513
514     scm:
515         - git-scm:
516             credentials-id: '{ssh-credentials}'
517             refspec: ''
518             branch: '{branch}'
519
520     wrappers:
521         - build-timeout
522         - ssh-agent-credentials:
523             users:
524                 - '{ssh-credentials}'
525
526     triggers:
527         - timed: '@weekly'
528
529     prebuilders:
530         - wipe-org-opendaylight-repo
531         - provide-maven-settings:
532             global-settings-file: '{odl-global-settings}'
533             settings-file: '{dlux-settings}'
534
535     maven:
536         maven-name: '{mvn33}'
537         root-pom: 'pom.xml'
538         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'
539         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
540         settings: '{dlux-settings}'
541         global-settings: '{odl-global-settings}'
542
543     postbuilders:
544         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
545         - check-clm:
546             application-name: dlux
547
548     publishers:
549         - email-notification:
550             email-prefix: '[dlux]'
551
552 - job-template:
553     name: 'dlux-validate-autorelease-{stream}'
554     disabled: '{obj:disable_autorelease}'
555
556     project-type: maven
557     node: dynamic_verify
558     concurrent: true
559     jdk: '{jdk}'
560
561     logrotate:
562         daysToKeep: '{build-days-to-keep}'
563         numToKeep: '{build-num-to-keep}'
564         artifactDaysToKeep: '{build-artifact-days-to-keep}'
565         artifactNumToKeep: '{build-artifact-num-to-keep}'
566
567     parameters:
568         - project-parameter:
569             project: '{project}'
570         - gerrit-parameter:
571             branch: '{branch}'
572         - autorelease-release-tag:
573             release-tag: 'validate'
574         - autorelease-release-branch:
575             release-branch: '{branch}'
576         - autorelease-release-datestamp:
577             datestamp: true
578
579     scm:
580         - git:
581             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
582             refspec: ''
583             branches:
584                 - 'origin/{branch}'
585             skip-tag: true
586             submodule:
587                 recursive: true
588
589     wrappers:
590         - autorelease-build-timeout
591         - ssh-agent-credentials:
592             users:
593                 - '{ssh-credentials}'
594
595     triggers:
596         - gerrit:
597             server-name: 'OpenDaylight'
598             trigger-on:
599                 - patchset-created-event:
600                     exclude-drafts: 'false'
601                     exclude-trivial-rebase: 'false'
602                     exclude-no-code-change: 'false'
603                 - draft-published-event
604                 - comment-added-contains-event:
605                     comment-contains-value: 'recheck'
606                 - comment-added-contains-event:
607                     comment-contains-value: 'reverify'
608                 - comment-added-contains-event:
609                     comment-contains-value: 'revalidate'
610             projects:
611               - project-compare-type: 'ANT'
612                 project-pattern: 'dlux'
613                 branches:
614                   - branch-compare-type: 'ANT'
615                     branch-pattern: '**/{branch}'
616
617     prebuilders:
618         - wipe-org-opendaylight-repo
619         - jacoco-nojava-workaround
620         - autorelease-checkout-gerrit-patch
621         - autorelease-generate-taglist
622         - autorelease-generate-release-patches
623         - maven-target:
624             maven-version: '{mvn33}'
625             pom: validate-pom.xml
626             goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
627             java-opts:
628             - '-Xmx8g'
629             settings: '{autorelease-settings}'
630             global-settings: '{odl-global-settings}'
631
632     maven:
633         maven-name: '{mvn33}'
634         root-pom: 'pom.xml'
635         goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
636         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
637         settings: '{autorelease-settings}'
638         global-settings: '{odl-global-settings}'
639         automatic-archiving: false
640         post-step-run-condition: UNSTABLE
641
642     postbuilders:
643         - shell: "./scripts/list-project-dependencies.sh"
644         - autorelease-sys-stats
645
646     publishers:
647         - archive-artifacts:
648             artifacts: '*.log'
649         - email-notification:
650             email-prefix: '[autorelease] [dlux]'
651