Update automated project templates
[releng/builder.git] / jjb / netvirt / netvirt.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: netvirt
8     jobs:
9         - 'netvirt-verify-{stream}'
10         - 'netvirt-merge-{stream}'
11         - 'netvirt-periodic-{stream}'
12         - 'netvirt-distribution-{stream}'
13         - 'netvirt-distribution-check-{stream}'
14         - 'netvirt-integration-{stream}'
15         - 'netvirt-clm-{stream}'
16         - 'netvirt-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: openjdk8
25             jdks:
26                 - openjdk8
27             disable_autorelease: False
28             disable_distribution_check: False
29         - beryllium:
30             branch: 'stable/beryllium'
31             jdk: openjdk7
32             jdks:
33                 - openjdk7
34                 - openjdk8
35             disable_autorelease: False
36             disable_distribution_check: False
37         - stable-lithium:
38             branch: 'stable/lithium'
39             jdk: openjdk7
40             jdks:
41                 - openjdk7
42             disable_autorelease: True
43             disable_distribution_check: True
44
45     project: 'netvirt'
46
47 # For the Job templates below replace instances of:
48 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
49 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
50 # MAVEN_GOALS with your maven goals to build
51 # MAVEN_OPTS with your maven options to build
52
53 - job-template:
54     name: 'netvirt-verify-{stream}'
55
56     # Job template for ODL verify jobs
57     #
58     # The purpose of this job template is to setup a ODL verify job
59     #
60     # Required Variables:
61     #     stream:    release stream (eg. stable-lithium or beryllium)
62     #     branch:    git branch (eg. stable/lithium or master)
63
64     project-type: matrix
65     node: matrix_master
66     concurrent: true
67
68     axes:
69         - axis:
70             type: slave
71             name: nodes
72             values:
73                 - dynamic_verify
74         - axis:
75             type: jdk
76             values: '{obj:jdks}'
77
78     logrotate:
79         daysToKeep: '{build-days-to-keep}'
80         numToKeep: '{build-num-to-keep}'
81         artifactDaysToKeep: '{build-artifact-days-to-keep}'
82         artifactNumToKeep: '{build-artifact-num-to-keep}'
83
84     parameters:
85         - project-parameter:
86             project: '{project}'
87         - gerrit-parameter:
88             branch: '{branch}'
89         - gerrit-refspec-parameter:
90             refspec: 'refs/heads/{branch}'
91
92     scm:
93         - gerrit-trigger-scm:
94             credentials-id: '{ssh-credentials}'
95             refspec: '$GERRIT_REFSPEC'
96             choosing-strategy: 'gerrit'
97
98     wrappers:
99         - build-timeout
100         - ssh-agent-credentials:
101             users:
102                 - '{ssh-credentials}'
103
104     triggers:
105         - gerrit-trigger-patch-submitted:
106             name: 'netvirt'
107             branch: '{branch}'
108
109     builders:
110         - wipe-org-opendaylight-repo
111         - jacoco-nojava-workaround
112         - provide-maven-settings:
113             global-settings-file: '{odl-global-settings}'
114             settings-file: '{netvirt-settings}'
115         - maven-target:
116             maven-version: '{mvn33}'
117             pom: 'pom.xml'
118             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins -Dstream={stream}'
119             java-opts:
120                 - '-Xmx1024m -XX:MaxPermSize=256m'
121             settings: '{netvirt-settings}'
122             global-settings: '{odl-global-settings}'
123
124     publishers:
125         - archive-artifacts:
126             artifacts: '**/target/surefire-reports/*-output.txt, '
127         - findbugs
128         - email-notification:
129             email-prefix: '[netvirt]'
130         - jacoco-report
131
132 - job-template:
133     name: 'netvirt-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: '14'
150         numToKeep: '10'
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: 'netvirt'
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: '{netvirt-settings}'
186
187     maven:
188         maven-name: '{mvn33}'
189         root-pom: '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: '{netvirt-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: '{netvirt-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: '{netvirt-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: '[netvirt]'
234         - maven-deploy:
235             id: ''
236             unique-version: true
237             deploy-unstable: false
238         - jacoco-report
239
240 - job-template:
241     name: 'netvirt-periodic-{stream}'
242     disabled: false
243
244     # Job template for periodic builders
245     #
246     # The purpose of this job template is to setup a periodic
247     # builder.
248     #
249     # Required Variables:
250     #     stream:    release stream (eg. stable-lithium or beryllium)
251     #     branch:    git branch (eg. stable/lithium or master)
252
253     project-type: maven
254     node: dynamic_verify
255     jdk: '{jdk}'
256
257     logrotate:
258         daysToKeep: '14'
259         numToKeep: '10'
260         artifactDaysToKeep: '{build-artifact-days-to-keep}'
261         artifactNumToKeep: '{build-artifact-num-to-keep}'
262
263     parameters:
264         - project-parameter:
265             project: '{project}'
266
267     scm:
268         - git-scm:
269             credentials-id: '{ssh-credentials}'
270             refspec: ''
271             branch: '{branch}'
272
273     wrappers:
274         - build-timeout
275         - ssh-agent-credentials:
276             users:
277                 - '{ssh-credentials}'
278
279     triggers:
280         - timed: '@daily'
281
282     prebuilders:
283         - wipe-org-opendaylight-repo
284         - jacoco-nojava-workaround
285         - provide-maven-settings:
286             global-settings-file: '{odl-global-settings}'
287             settings-file: '{netvirt-settings}'
288
289     maven:
290         maven-name: '{mvn33}'
291         root-pom: 'pom.xml'
292         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
293         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
294         settings: '{netvirt-settings}'
295         global-settings: '{odl-global-settings}'
296
297     reporters:
298         - findbugs
299
300     publishers:
301         - email-notification:
302             email-prefix: '[netvirt]'
303         - jacoco-report
304
305 - job-template:
306     name: 'netvirt-distribution-{stream}'
307
308     # Required variables:
309     #     stream:    release stream (eg. stable-lithium or beryllium)
310     #     branch:    git branch (eg. stable/lithium or master)
311
312     project-type: maven
313     node: dynamic_merge
314     jdk: '{jdk}'
315
316     logrotate:
317         daysToKeep: '{build-days-to-keep}'
318         numToKeep: '{build-num-to-keep}'
319         artifactDaysToKeep: '{build-artifact-days-to-keep}'
320         artifactNumToKeep: '{build-artifact-num-to-keep}'
321
322     parameters:
323         - project-parameter:
324             project: 'integration/distribution'
325
326     scm:
327         - git-scm:
328             credentials-id: '{ssh-credentials}'
329             refspec: ''
330             branch: '{branch}'
331
332     wrappers:
333         - build-timeout
334         - ssh-agent-credentials:
335             users:
336                 - '{ssh-credentials}'
337
338     triggers:
339         - reverse:
340             jobs: '{project}-merge-{stream}'
341             result: 'success'
342
343     prebuilders:
344         - wipe-org-opendaylight-repo
345         - provide-maven-settings:
346             global-settings-file: '{odl-global-settings}'
347             settings-file: '{netvirt-settings}'
348
349     maven:
350         maven-name: '{mvn33}'
351         root-pom: 'pom.xml'
352         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
353         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
354         settings: '{integration-settings}'
355         global-settings: '{odl-global-settings}'
356
357     publishers:
358         - email-notification:
359             email-prefix: '[{project}]'
360         - maven-deploy:
361             id: ''
362             unique-version: true
363             deploy-unstable: false
364
365 # Template: integration-patch-distribution-{stream}
366 # Goal: Build a patch and make sure the distribution can deploy with this change
367 # Operation: This job template builds a patch, creates a distribution containing
368 #            the patch, and triggers the distribution deploy test
369
370 - job-template:
371     name: 'netvirt-distribution-check-{stream}'
372     disabled: '{obj:disable_distribution_check}'
373
374     project-type: maven
375     node: dynamic_verify
376     concurrent: true
377     jdk: '{jdk}'
378
379     logrotate:
380         daysToKeep: '14'
381         numToKeep: '10'
382         artifactDaysToKeep: '{build-artifact-days-to-keep}'
383         artifactNumToKeep: '{build-artifact-num-to-keep}'
384
385     parameters:
386         - gerrit-project-parameter:
387             project: '{project}'
388         - gerrit-refspec-parameter:
389             refspec: '{branch}'
390         - project-parameter:
391             project: '{project}'
392         - integration-distribution-git-url
393
394     scm:
395         - integration-gerrit-scm:
396             credentials-id: '{ssh-credentials}'
397             basedir: '$GERRIT_PROJECT'
398             refspec: '$GERRIT_REFSPEC'
399             branch: '{branch}'
400         - integration-distribution-scm:
401             credentials-id: '{ssh-credentials}'
402             branch: '{branch}'
403
404     wrappers:
405         - build-timeout
406         - ssh-agent-credentials:
407             users:
408                 - '{ssh-credentials}'
409
410     triggers:
411         - gerrit:
412             server-name: 'OpenDaylight'
413             trigger-on:
414                 - patchset-created-event:
415                     exclude-drafts: 'true'
416                     exclude-trivial-rebase: 'false'
417                     exclude-no-code-change: 'true'
418                 - draft-published-event
419                 - comment-added-contains-event:
420                     comment-contains-value: 'test-distribution'
421                 - comment-added-contains-event:
422                     comment-contains-value: 'reverify'
423                 - comment-added-contains-event:
424                     comment-contains-value: 'recheck'
425             projects:
426               - project-compare-type: 'ANT'
427                 project-pattern: '{name}'
428                 branches:
429                   - branch-compare-type: 'ANT'
430                     branch-pattern: '**/{branch}'
431             skip-vote:
432                 successful: false
433                 failed: false
434                 unstable: false
435                 notbuilt: false
436
437     prebuilders:
438         - wipe-org-opendaylight-repo
439         - maven-target:
440             maven-version: '{mvn33}'
441             pom: '$GERRIT_PROJECT/pom.xml'
442             goals: 'clean install -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
443             java-opts:
444                 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
445             settings: '{netvirt-settings}'
446             global-settings: '{odl-global-settings}'
447
448     maven:
449         maven-name: '{mvn33}'
450         root-pom: 'distribution/pom.xml'
451         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
452         maven-opts: '-B -Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
453         settings: '{netvirt-settings}'
454         global-settings: '{odl-global-settings}'
455         ignore-upstream-changes: true
456         post-step-run-condition: 'SUCCESS'
457
458     postbuilders:
459         - integration-distribution-check
460
461     publishers:
462         - archive:
463             artifacts: 'karaf.log'
464         - archive:
465             artifacts: 'karaf_console.log'
466         - email-notification:
467             email-prefix: '[netvirt]'
468
469 - job-template:
470     name: 'netvirt-integration-{stream}'
471     disabled: false
472
473     # Job template for ODL integration verify jobs
474     #
475     # This is similar to a normal verify job, but it runs
476     # when a project that's a dependency of your project
477     # is successfully built.
478     #
479     # Required Variables:
480     #     stream:    release stream (eg. stable-lithium or beryllium)
481     #     branch:    git branch (eg. stable/lithium or master)
482
483     project-type: maven
484     node: dynamic_merge
485     jdk: '{jdk}'
486
487     logrotate:
488         daysToKeep: '{build-days-to-keep}'
489         numToKeep: '{build-num-to-keep}'
490         artifactDaysToKeep: '{build-artifact-days-to-keep}'
491         artifactNumToKeep: '{build-artifact-num-to-keep}'
492
493     parameters:
494         - project-parameter:
495             project: '{project}'
496
497     scm:
498         - git-scm:
499             credentials-id: '{ssh-credentials}'
500             refspec: ''
501             branch: '{branch}'
502
503     wrappers:
504         - build-timeout
505         - ssh-agent-credentials:
506             users:
507                 - '{ssh-credentials}'
508
509     triggers:
510         - reverse:
511             jobs: 'controller-merge-{stream},neutron-merge-{stream},odlparent-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},sfc-merge-{stream},yangtools-merge-{stream}'
512             result: 'success'
513
514     prebuilders:
515         - wipe-org-opendaylight-repo
516         - jacoco-nojava-workaround
517         - provide-maven-settings:
518             global-settings-file: '{odl-global-settings}'
519             settings-file: '{netvirt-settings}'
520
521     maven:
522         maven-name: '{mvn33}'
523         root-pom: 'pom.xml'
524         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Djenkins'
525         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
526         settings: '{netvirt-settings}'
527         global-settings: '{odl-global-settings}'
528
529     reporters:
530         - findbugs
531
532     publishers:
533         - email-notification:
534             email-prefix: '[netvirt] [controller] [neutron] [odlparent] [openflowjava] [openflowplugin] [ovsdb] [sfc] [yangtools]'
535         - jacoco-report
536
537 - job-template:
538     name: 'netvirt-clm-{stream}'
539     disabled: false
540
541     project-type: maven
542     node: dynamic_verify
543     jdk: '{jdk}'
544
545     logrotate:
546         daysToKeep: '{build-days-to-keep}'
547         numToKeep: '{build-num-to-keep}'
548         artifactDaysToKeep: '{build-artifact-days-to-keep}'
549         artifactNumToKeep: '{build-artifact-num-to-keep}'
550
551     parameters:
552         - project-parameter:
553             project: '{project}'
554
555     scm:
556         - git-scm:
557             credentials-id: '{ssh-credentials}'
558             refspec: ''
559             branch: '{branch}'
560
561     wrappers:
562         - build-timeout
563         - ssh-agent-credentials:
564             users:
565                 - '{ssh-credentials}'
566
567     triggers:
568         - timed: 'H H * * 6'
569
570     prebuilders:
571         - wipe-org-opendaylight-repo
572         - provide-maven-settings:
573             global-settings-file: '{odl-global-settings}'
574             settings-file: '{netvirt-settings}'
575
576     maven:
577         maven-name: '{mvn33}'
578         root-pom: 'pom.xml'
579         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'
580         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
581         settings: '{netvirt-settings}'
582         global-settings: '{odl-global-settings}'
583
584     postbuilders:
585         - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
586         - check-clm:
587             application-name: netvirt
588
589     publishers:
590         - email-notification:
591             email-prefix: '[netvirt]'
592
593 - job-template:
594     name: 'netvirt-validate-autorelease-{stream}'
595     disabled: '{obj:disable_autorelease}'
596
597     project-type: maven
598     node: dynamic_verify
599     concurrent: true
600     jdk: '{jdk}'
601
602     logrotate:
603         daysToKeep: '{build-days-to-keep}'
604         numToKeep: '{build-num-to-keep}'
605         artifactDaysToKeep: '{build-artifact-days-to-keep}'
606         artifactNumToKeep: '{build-artifact-num-to-keep}'
607
608     parameters:
609         - project-parameter:
610             project: '{project}'
611         - gerrit-parameter:
612             branch: '{branch}'
613         - autorelease-release-tag:
614             release-tag: 'validate'
615         - autorelease-release-branch:
616             release-branch: '{branch}'
617         - autorelease-release-datestamp:
618             datestamp: true
619         - string:
620             name: CLONE_URL
621             default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
622             description: "Autorelease clone URL"
623
624     scm:
625         - git:
626             url: '$CLONE_URL'
627             refspec: ''
628             branches:
629                 - 'origin/{branch}'
630             skip-tag: true
631             shallow-clone: true
632             submodule:
633                 recursive: true
634                 timeout: 15
635
636     wrappers:
637         - autorelease-build-timeout
638         - ssh-agent-credentials:
639             users:
640                 - '{ssh-credentials}'
641
642     triggers:
643         - gerrit:
644             server-name: 'OpenDaylight'
645             trigger-on:
646                 - patchset-created-event:
647                     exclude-drafts: 'false'
648                     exclude-trivial-rebase: 'false'
649                     exclude-no-code-change: 'false'
650                 - draft-published-event
651                 - comment-added-contains-event:
652                     comment-contains-value: 'recheck'
653                 - comment-added-contains-event:
654                     comment-contains-value: 'reverify'
655                 - comment-added-contains-event:
656                     comment-contains-value: 'revalidate'
657             projects:
658               - project-compare-type: 'ANT'
659                 project-pattern: 'netvirt'
660                 branches:
661                   - branch-compare-type: 'ANT'
662                     branch-pattern: '**/{branch}'
663                 file-paths:
664                     - compare-type: ANT
665                       pattern: '**/*.xml'
666
667     prebuilders:
668         - wipe-org-opendaylight-repo
669         - jacoco-nojava-workaround
670         - autorelease-checkout-gerrit-patch
671         - autorelease-generate-release-patches
672         - maven-target:
673             maven-version: '{mvn33}'
674             pom: validate-pom.xml
675             goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
676             java-opts:
677             - '-Xmx8g'
678             settings: '{autorelease-settings}'
679             global-settings: '{odl-global-settings}'
680
681     maven:
682         maven-name: '{mvn33}'
683         root-pom: 'pom.xml'
684         goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
685         maven-opts: '-B -Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
686         settings: '{autorelease-settings}'
687         global-settings: '{odl-global-settings}'
688         automatic-archiving: false
689         post-step-run-condition: UNSTABLE
690
691     postbuilders:
692         - autorelease-sys-stats
693
694     publishers:
695         - email-notification:
696             email-prefix: '[autorelease] [netvirt]'
697