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