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