Merge "Add new Ubuntu mininet VM with latest OVS and mininet"
[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         - 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                 - openjdk8
42             disable_autorelease: True
43         - stable-helium:
44             branch: 'stable/helium'
45             jdk: openjdk7
46             jdks:
47                 - openjdk7
48             disable_autorelease: True
49
50     project: 'openflowplugin'
51
52 # For the Job templates below replace instances of:
53 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
54 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
55 # MAVEN_GOALS with your maven goals to build
56 # MAVEN_OPTS with your maven options to build
57
58 - job-template:
59     name: 'openflowplugin-verify-{stream}'
60
61     # Job template for ODL verify jobs
62     #
63     # The purpose of this job template is to setup a ODL verify job
64     #
65     # Required Variables:
66     #     stream:    release stream (eg. stable-lithium or beryllium)
67     #     branch:    git branch (eg. stable/lithium or master)
68
69     project-type: matrix
70     node: matrix_master
71     concurrent: true
72
73     axes:
74         - axis:
75             type: slave
76             name: nodes
77             values:
78                 - dynamic_verify
79         - axis:
80             type: jdk
81             values: '{obj:jdks}'
82
83     logrotate:
84         daysToKeep: '{build-days-to-keep}'
85         numToKeep: '{build-num-to-keep}'
86         artifactDaysToKeep: '{build-artifact-days-to-keep}'
87         artifactNumToKeep: '{build-artifact-num-to-keep}'
88
89     parameters:
90         - project-parameter:
91             project: '{project}'
92         - gerrit-parameter:
93             branch: '{branch}'
94         - gerrit-refspec-parameter:
95             refspec: 'refs/heads/{branch}'
96
97     scm:
98         - gerrit-trigger-scm:
99             credentials-id: '{ssh-credentials}'
100             refspec: '$GERRIT_REFSPEC'
101             choosing-strategy: 'gerrit'
102
103     wrappers:
104         - build-timeout
105         - ssh-agent-credentials:
106             users:
107                 - '{ssh-credentials}'
108
109     triggers:
110         - gerrit-trigger-patch-submitted:
111             name: 'openflowplugin'
112             branch: '{branch}'
113
114     builders:
115         - wipe-org-opendaylight-repo
116         - jacoco-nojava-workaround
117         - provide-maven-settings:
118             global-settings-file: '{odl-global-settings}'
119             settings-file: '{openflowplugin-settings}'
120         - maven-target:
121             maven-version: '{mvn33}'
122             pom: 'pom.xml'
123             goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -Dstream={stream}'
124             java-opts:
125                 - '-Xmx1024m -XX:MaxPermSize=256m'
126             settings: '{openflowplugin-settings}'
127             global-settings: '{odl-global-settings}'
128
129     publishers:
130         - findbugs
131         - email-notification:
132             email-prefix: '[openflowplugin]'
133         - jacoco-report
134
135 - job-template:
136     name: 'openflowplugin-merge-{stream}'
137
138     # Job template for ODL merge jobs
139     #
140     # The purpose of this job template is to setup a ODL merge job
141     # and deploy artifacts to Nexus.
142     #
143     # Required Variables:
144     #     stream:    release stream (eg. stable-lithium or beryllium)
145     #     branch:    git branch (eg. stable/lithium or master)
146
147     project-type: maven
148     node: dynamic_merge
149     jdk: '{jdk}'
150
151     logrotate:
152         daysToKeep: '{build-days-to-keep}'
153         numToKeep: '{build-num-to-keep}'
154         artifactDaysToKeep: '{build-artifact-days-to-keep}'
155         artifactNumToKeep: '{build-artifact-num-to-keep}'
156
157     parameters:
158         - project-parameter:
159             project: '{project}'
160         - gerrit-parameter:
161             branch: '{branch}'
162         - gerrit-refspec-parameter:
163             refspec: 'refs/heads/{branch}'
164
165     scm:
166         - gerrit-trigger-scm:
167             credentials-id: '{ssh-credentials}'
168             refspec: ''
169             choosing-strategy: 'default'
170
171     wrappers:
172         - build-timeout
173         - ssh-agent-credentials:
174             users:
175                 - '{ssh-credentials}'
176
177     triggers:
178         - gerrit-trigger-patch-merged:
179             name: 'openflowplugin'
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: '{openflowplugin-settings}'
188
189     maven:
190         maven-name: '{mvn33}'
191         root-pom: 'pom.xml'
192         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -Dmerge -Dstream={stream}'
193         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
194         settings: '{openflowplugin-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: '{openflowplugin-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: '{openflowplugin-settings}'
226                 global-settings: '{odl-global-settings}'
227
228     reporters:
229         - findbugs
230
231     publishers:
232         - archive-artifacts:
233             artifacts: 'model/*/target/site/**'
234         - email-notification:
235             email-prefix: '[openflowplugin]'
236         - maven-deploy:
237             id: ''
238             unique-version: true
239             deploy-unstable: false
240         - jacoco-report
241
242 - job-template:
243     name: 'openflowplugin-daily-{stream}'
244
245     # Job template for daily builders
246     #
247     # The purpose of this job template is to setup a daily/nightly
248     # builder and pushes to Sonar analysis.
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: 'H H * * 7'
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: '{openflowplugin-settings}'
289
290     maven:
291         maven-name: '{mvn33}'
292         root-pom: 'pom.xml'
293         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate'
294         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
295         settings: '{openflowplugin-settings}'
296         global-settings: '{odl-global-settings}'
297
298     reporters:
299         - findbugs
300
301     publishers:
302         - email-notification:
303             email-prefix: '[openflowplugin]'
304         - jacoco-report
305
306 - job-template:
307     name: 'openflowplugin-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: '{openflowplugin-settings}'
349
350     maven:
351         maven-name: '{mvn33}'
352         root-pom: 'pom.xml'
353         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
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: 'openflowplugin-integration-{stream}'
368     disabled: false
369
370     # Job template for ODL integration verify jobs
371     #
372     # This is similar to a normal verify job, but it runs
373     # when a project that's a dependency of your project
374     # is successfully built.
375     #
376     # Required Variables:
377     #     stream:    release stream (eg. stable-lithium or beryllium)
378     #     branch:    git branch (eg. stable/lithium or master)
379
380     project-type: maven
381     node: dynamic_merge
382     jdk: '{jdk}'
383
384     logrotate:
385         daysToKeep: '{build-days-to-keep}'
386         numToKeep: '{build-num-to-keep}'
387         artifactDaysToKeep: '{build-artifact-days-to-keep}'
388         artifactNumToKeep: '{build-artifact-num-to-keep}'
389
390     parameters:
391         - project-parameter:
392             project: '{project}'
393
394     scm:
395         - git-scm:
396             credentials-id: '{ssh-credentials}'
397             refspec: ''
398             branch: '{branch}'
399
400     wrappers:
401         - build-timeout
402         - ssh-agent-credentials:
403             users:
404                 - '{ssh-credentials}'
405
406     triggers:
407         - reverse:
408             jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream}'
409             result: 'success'
410
411     prebuilders:
412         - wipe-org-opendaylight-repo
413         - jacoco-nojava-workaround
414         - provide-maven-settings:
415             global-settings-file: '{odl-global-settings}'
416             settings-file: '{openflowplugin-settings}'
417
418     maven:
419         maven-name: '{mvn33}'
420         root-pom: 'pom.xml'
421         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate'
422         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
423         settings: '{openflowplugin-settings}'
424         global-settings: '{odl-global-settings}'
425
426     reporters:
427         - findbugs
428
429     publishers:
430         - email-notification:
431             email-prefix: '[openflowplugin] [odlparent] [yangtools] [controller] [openflowjava]'
432         - jacoco-report
433
434 - job-template:
435     name: 'openflowplugin-sonar'
436
437     project-type: maven
438     node: dynamic_verify
439     jdk: 'openjdk7'
440
441     logrotate:
442         daysToKeep: '7'
443         numToKeep: '10'
444         artifactDaysToKeep: '1'
445         artifactNumToKeep: '1'
446
447     parameters:
448         - project-parameter:
449             project: '{project}'
450
451     scm:
452         - git-scm:
453             credentials-id: '{ssh-credentials}'
454             refspec: ''
455             branch: 'pre-boron'
456
457     wrappers:
458         - build-timeout
459         - ssh-agent-credentials:
460             users:
461                 - '{ssh-credentials}'
462
463     triggers:
464         - timed: '@weekly'
465         - gerrit-trigger-patch-sonar:
466             name: 'openflowplugin'
467
468     prebuilders:
469         - wipe-org-opendaylight-repo
470         - jacoco-nojava-workaround
471         - provide-maven-settings:
472             global-settings-file: '{odl-global-settings}'
473             settings-file: '{openflowplugin-settings}'
474
475     maven:
476         maven-name: '{mvn33}'
477         root-pom: 'pom.xml'
478         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -Dsonar'
479         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
480         settings: '{openflowplugin-settings}'
481         global-settings: '{odl-global-settings}'
482
483     reporters:
484         - findbugs
485
486     publishers:
487         - sonar:
488             language: 'java'
489             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
490         - email-notification:
491             email-prefix: '[openflowplugin]'
492         - jacoco-report
493
494 - job-template:
495     name: 'openflowplugin-clm-{stream}'
496
497     project-type: maven
498     node: dynamic_verify
499     jdk: '{jdk}'
500
501     logrotate:
502         daysToKeep: '{build-days-to-keep}'
503         numToKeep: '{build-num-to-keep}'
504         artifactDaysToKeep: '{build-artifact-days-to-keep}'
505         artifactNumToKeep: '{build-artifact-num-to-keep}'
506
507     parameters:
508         - project-parameter:
509             project: '{project}'
510
511     scm:
512         - git-scm:
513             credentials-id: '{ssh-credentials}'
514             refspec: ''
515             branch: '{branch}'
516
517     wrappers:
518         - build-timeout
519         - ssh-agent-credentials:
520             users:
521                 - '{ssh-credentials}'
522
523     triggers:
524         - timed: '@weekly'
525
526     prebuilders:
527         - wipe-org-opendaylight-repo
528         - provide-maven-settings:
529             global-settings-file: '{odl-global-settings}'
530             settings-file: '{openflowplugin-settings}'
531
532     maven:
533         maven-name: '{mvn33}'
534         root-pom: 'pom.xml'
535         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'
536         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
537         settings: '{openflowplugin-settings}'
538         global-settings: '{odl-global-settings}'
539
540     postbuilders:
541         - check-clm:
542             application-name: openflowplugin
543
544     publishers:
545         - email-notification:
546             email-prefix: '[openflowplugin]'
547
548 - job-template:
549     name: 'openflowplugin-validate-autorelease-{stream}'
550     disabled: '{obj:disable_autorelease}'
551
552     project-type: maven
553     node: dynamic_verify
554     concurrent: true
555     jdk: '{jdk}'
556
557     logrotate:
558         daysToKeep: '{build-days-to-keep}'
559         numToKeep: '{build-num-to-keep}'
560         artifactDaysToKeep: '{build-artifact-days-to-keep}'
561         artifactNumToKeep: '{build-artifact-num-to-keep}'
562
563     parameters:
564         - project-parameter:
565             project: '{project}'
566         - gerrit-parameter:
567             branch: '{branch}'
568         - autorelease-release-tag:
569             release-tag: 'validate'
570         - autorelease-release-branch:
571             release-branch: '{branch}'
572         - autorelease-release-datestamp:
573             datestamp: true
574
575     scm:
576         - git:
577             url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
578             refspec: ''
579             branches:
580                 - 'origin/{branch}'
581             skip-tag: true
582             submodule:
583                 recursive: true
584
585     wrappers:
586         - autorelease-build-timeout
587         - ssh-agent-credentials:
588             users:
589                 - '{ssh-credentials}'
590
591     triggers:
592         - gerrit:
593             server-name: 'OpenDaylight'
594             trigger-on:
595                 - patchset-created-event:
596                     exclude-drafts: 'false'
597                     exclude-trivial-rebase: 'false'
598                     exclude-no-code-change: 'false'
599                 - draft-published-event
600                 - comment-added-contains-event:
601                     comment-contains-value: 'recheck'
602                 - comment-added-contains-event:
603                     comment-contains-value: 'reverify'
604                 - comment-added-contains-event:
605                     comment-contains-value: 'revalidate'
606             projects:
607               - project-compare-type: 'ANT'
608                 project-pattern: 'openflowplugin'
609                 branches:
610                   - branch-compare-type: 'ANT'
611                     branch-pattern: '**/{branch}'
612
613     prebuilders:
614         - wipe-org-opendaylight-repo
615         - jacoco-nojava-workaround
616         - autorelease-checkout-gerrit-patch
617         - autorelease-generate-taglist
618         - autorelease-generate-release-patches
619         - maven-target:
620             maven-version: '{mvn33}'
621             pom: validate-pom.xml
622             goals: 'clean install -T1.5C -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
623             java-opts:
624             - '-Xmx8g'
625             settings: '{autorelease-settings}'
626             global-settings: '{odl-global-settings}'
627
628     maven:
629         maven-name: '{mvn33}'
630         root-pom: 'pom.xml'
631         goals: 'clean validate -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
632         maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
633         settings: '{autorelease-settings}'
634         global-settings: '{odl-global-settings}'
635         automatic-archiving: false
636         post-step-run-condition: UNSTABLE
637
638     postbuilders:
639         - shell: "./scripts/list-project-dependencies.sh"
640         - autorelease-sys-stats
641
642     publishers:
643         - archive-artifacts:
644             artifacts: '*.log'
645         - email-notification:
646             email-prefix: '[autorelease] [openflowplugin]'
647