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