Merge "Adding upstream dependencies into GBP clustering"
[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-daily-{stream}'
12         - 'neutron-distribution-{stream}'
13         - 'neutron-integration-{stream}'
14         - 'neutron-sonar'
15         - 'neutron-clm-{stream}'
16
17
18     # stream:    release stream (eg. stable-lithium or beryllium)
19     # branch:    git branch (eg. stable/lithium or master)
20     stream:
21         - beryllium:
22             branch: 'master'
23             jdk: openjdk7
24             jdks:
25                 - openjdk7
26                 - openjdk8
27         - stable-lithium:
28             branch: 'stable/lithium'
29             jdk: openjdk7
30             jdks:
31                 - openjdk7
32                 - openjdk8
33
34     project: 'neutron'
35
36 # For the Job templates below replace instances of:
37 # PROJECT with your project name (eg. controller)
38 # MAVEN_GOALS with your maven goals to build
39 # MAVEN_OPTS with your maven options to build
40
41 - job-template:
42     name: 'neutron-verify-{stream}'
43
44     # Job template for ODL verify jobs
45     #
46     # The purpose of this job template is to setup a ODL verify job
47     #
48     # Required Variables:
49     #     stream:    release stream (eg. stable-lithium or beryllium)
50     #     branch:    git branch (eg. stable/lithium or master)
51
52     project-type: matrix
53     node: matrix_master
54     concurrent: true
55
56     axes:
57         - axis:
58             type: slave
59             name: nodes
60             values:
61                 - dynamic_verify
62         - axis:
63             type: jdk
64             values: '{obj:jdks}'
65
66     logrotate:
67         daysToKeep: '{build-days-to-keep}'
68         numToKeep: '{build-num-to-keep}'
69         artifactDaysToKeep: '{build-artifact-days-to-keep}'
70         artifactNumToKeep: '{build-artifact-num-to-keep}'
71
72     parameters:
73         - project-parameter:
74             project: '{project}'
75         - gerrit-parameter:
76             branch: '{branch}'
77
78     scm:
79         - gerrit-trigger-scm:
80             credentials-id: '{ssh-credentials}'
81             refspec: '$GERRIT_REFSPEC'
82             choosing-strategy: 'gerrit'
83
84     wrappers:
85         - build-timeout
86         - ssh-agent-credentials:
87             users:
88                 - '{ssh-credentials}'
89
90     triggers:
91         - gerrit-trigger-patch-submitted:
92             name: 'neutron'
93             branch: '{branch}'
94
95     builders:
96         - wipe-org-opendaylight-repo
97         - jacoco-nojava-workaround
98         - maven-target:
99             maven-version: '{mvn33}'
100             pom: 'pom.xml'
101             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
102             java-opts:
103                 - '-Xmx1024m -XX:MaxPermSize=256m'
104             settings: '{neutron-settings}'
105             global-settings: '{odl-global-settings}'
106
107     publishers:
108         - findbugs
109         - email-notification:
110             email-prefix: '[neutron]'
111         - jacoco-report
112
113 - job-template:
114     name: 'neutron-merge-{stream}'
115
116     # Job template for ODL merge jobs
117     #
118     # The purpose of this job template is to setup a ODL merge job
119     # and deploy artifacts to Nexus.
120     #
121     # Required Variables:
122     #     stream:    release stream (eg. stable-lithium or beryllium)
123     #     branch:    git branch (eg. stable/lithium or master)
124
125     project-type: maven
126     node: dynamic_merge
127     jdk: '{jdk}'
128
129     logrotate:
130         daysToKeep: '{build-days-to-keep}'
131         numToKeep: '{build-num-to-keep}'
132         artifactDaysToKeep: '{build-artifact-days-to-keep}'
133         artifactNumToKeep: '{build-artifact-num-to-keep}'
134
135     parameters:
136         - project-parameter:
137             project: '{project}'
138
139     scm:
140         - gerrit-trigger-scm:
141             credentials-id: '{ssh-credentials}'
142             refspec: ''
143             choosing-strategy: 'default'
144
145     wrappers:
146         - build-timeout
147         - ssh-agent-credentials:
148             users:
149                 - '{ssh-credentials}'
150
151     triggers:
152         - gerrit-trigger-patch-merged:
153             name: 'neutron'
154             branch: '{branch}'
155
156     prebuilders:
157         - wipe-org-opendaylight-repo
158         - jacoco-nojava-workaround
159
160     maven:
161         maven-name: '{mvn33}'
162         root-pom: 'pom.xml'
163         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge'
164         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
165         settings: '{neutron-settings}'
166         global-settings: '{odl-global-settings}'
167
168     reporters:
169         - findbugs
170
171     publishers:
172         - email-notification:
173             email-prefix: '[neutron]'
174         - maven-deploy:
175             id: ''
176             unique-version: true
177             deploy-unstable: false
178         - jacoco-report
179
180 - job-template:
181     name: 'neutron-daily-{stream}'
182
183     # Job template for daily builders
184     #
185     # The purpose of this job template is to setup a daily/nightly
186     # builder and pushes to Sonar analysis.
187     #
188     # Required Variables:
189     #     stream:    release stream (eg. stable-lithium or beryllium)
190     #     branch:    git branch (eg. stable/lithium or master)
191
192     project-type: maven
193     node: dynamic_verify
194     jdk: '{jdk}'
195
196     logrotate:
197         daysToKeep: '{build-days-to-keep}'
198         numToKeep: '{build-num-to-keep}'
199         artifactDaysToKeep: '{build-artifact-days-to-keep}'
200         artifactNumToKeep: '{build-artifact-num-to-keep}'
201
202     parameters:
203         - project-parameter:
204             project: '{project}'
205
206     scm:
207         - git-scm:
208             credentials-id: '{ssh-credentials}'
209             refspec: ''
210             branch: '{branch}'
211
212     wrappers:
213         - build-timeout
214         - ssh-agent-credentials:
215             users:
216                 - '{ssh-credentials}'
217
218     triggers:
219         - timed: 'H H * * *'
220
221     prebuilders:
222         - wipe-org-opendaylight-repo
223         - jacoco-nojava-workaround
224
225     maven:
226         maven-name: '{mvn33}'
227         root-pom: 'pom.xml'
228         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
229         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
230         settings: '{neutron-settings}'
231         global-settings: '{odl-global-settings}'
232
233     reporters:
234         - findbugs
235
236     publishers:
237         - email-notification:
238             email-prefix: '[neutron]'
239         - jacoco-report
240
241 - job-template:
242     name: 'neutron-distribution-{stream}'
243
244     # Required variables:
245     #     stream:    release stream (eg. stable-lithium or beryllium)
246     #     branch:    git branch (eg. stable/lithium or master)
247
248     project-type: maven
249     node: dynamic_merge
250     jdk: '{jdk}'
251
252     logrotate:
253         daysToKeep: '{build-days-to-keep}'
254         numToKeep: '{build-num-to-keep}'
255         artifactDaysToKeep: '{build-artifact-days-to-keep}'
256         artifactNumToKeep: '{build-artifact-num-to-keep}'
257
258     parameters:
259         - project-parameter:
260             project: 'integration'
261
262     scm:
263         - git-scm:
264             credentials-id: '{ssh-credentials}'
265             refspec: ''
266             branch: '{branch}'
267
268     wrappers:
269         - build-timeout
270         - ssh-agent-credentials:
271             users:
272                 - '{ssh-credentials}'
273
274     triggers:
275         - reverse:
276             jobs: '{project}-merge-{stream}'
277             result: 'success'
278
279     prebuilders:
280         - wipe-org-opendaylight-repo
281
282     maven:
283         maven-name: '{mvn33}'
284         root-pom: 'pom.xml'
285         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
286         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
287         settings: '{integration-settings}'
288         global-settings: '{odl-global-settings}'
289
290     publishers:
291         - email-notification:
292             email-prefix: '[{project}]'
293         - maven-deploy:
294             id: ''
295             unique-version: true
296             deploy-unstable: false
297
298 - job-template:
299     name: 'neutron-integration-{stream}'
300     disabled: false
301
302     # Job template for ODL integration verify jobs
303     #
304     # This is similar to a normal verify job, but it runs
305     # when a project that's a dependency of your project
306     # is successfully built.
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: '{project}'
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: 'odlparent-merge-{stream},aaa-merge-{stream}'
341             result: 'success'
342
343     prebuilders:
344         - wipe-org-opendaylight-repo
345         - jacoco-nojava-workaround
346
347     maven:
348         maven-name: '{mvn33}'
349         root-pom: 'pom.xml'
350         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
351         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
352         settings: '{neutron-settings}'
353         global-settings: '{odl-global-settings}'
354
355     reporters:
356         - findbugs
357
358     publishers:
359         - email-notification:
360             email-prefix: '[neutron] [odlparent] [aaa]'
361         - jacoco-report
362
363 - job-template:
364     name: 'neutron-sonar'
365
366     project-type: maven
367     node: dynamic_verify
368     jdk: 'openjdk7'
369
370     logrotate:
371         daysToKeep: '7'
372         numToKeep: '10'
373         artifactDaysToKeep: '1'
374         artifactNumToKeep: '1'
375
376     parameters:
377         - project-parameter:
378             project: '{project}'
379
380     scm:
381         - git-scm:
382             credentials-id: '{ssh-credentials}'
383             refspec: ''
384             branch: 'master'
385
386     wrappers:
387         - build-timeout
388         - ssh-agent-credentials:
389             users:
390                 - '{ssh-credentials}'
391
392     triggers:
393         - timed: 'H H * * *'
394         - gerrit-trigger-patch-sonar:
395             name: 'neutron'
396
397     prebuilders:
398         - wipe-org-opendaylight-repo
399         - jacoco-nojava-workaround
400
401     maven:
402         maven-name: '{mvn33}'
403         root-pom: 'pom.xml'
404         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
405         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
406         settings: '{neutron-settings}'
407         global-settings: '{odl-global-settings}'
408
409     reporters:
410         - findbugs
411
412     publishers:
413         - sonar:
414             language: 'java'
415             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
416         - email-notification:
417             email-prefix: '[neutron]'
418         - jacoco-report
419
420 - job-template:
421     name: 'neutron-clm-{stream}'
422
423     project-type: maven
424     node: dynamic_verify
425     jdk: '{jdk}'
426
427     logrotate:
428         daysToKeep: '{build-days-to-keep}'
429         numToKeep: '{build-num-to-keep}'
430         artifactDaysToKeep: '{build-artifact-days-to-keep}'
431         artifactNumToKeep: '{build-artifact-num-to-keep}'
432
433     parameters:
434         - project-parameter:
435             project: '{project}'
436
437     scm:
438         - git-scm:
439             credentials-id: '{ssh-credentials}'
440             refspec: ''
441             branch: '{branch}'
442
443     wrappers:
444         - build-timeout
445         - ssh-agent-credentials:
446             users:
447                 - '{ssh-credentials}'
448
449     triggers:
450         - timed: '@weekly'
451
452     prebuilders:
453         - wipe-org-opendaylight-repo
454
455     maven:
456         maven-name: '{mvn33}'
457         root-pom: 'pom.xml'
458         goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
459         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
460         settings: '{neutron-settings}'
461         global-settings: '{odl-global-settings}'
462
463     postbuilders:
464         - check-clm:
465             application-name: neutron
466
467     publishers:
468         - email-notification:
469             email-prefix: '[neutron]'
470