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