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