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