Update automated project templates
[releng/builder.git] / jjb / vtn / vtn.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: vtn
8     jobs:
9         - 'vtn-verify-{stream}'
10         - 'vtn-merge-{stream}'
11         - 'vtn-daily-{stream}'
12         - 'vtn-distribution-{stream}'
13         - 'vtn-integration-{stream}'
14         - 'vtn-sonar'
15         - 'vtn-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         - stable-helium:
33             branch: 'stable/helium'
34             jdk: openjdk7
35             jdks:
36                 - openjdk7
37
38     project: 'vtn'
39
40 # For the Job templates below replace instances of:
41 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
42 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
43 # MAVEN_GOALS with your maven goals to build
44 # MAVEN_OPTS with your maven options to build
45
46 - job-template:
47     name: 'vtn-verify-{stream}'
48
49     # Job template for ODL verify jobs
50     #
51     # The purpose of this job template is to setup a ODL verify job
52     #
53     # Required Variables:
54     #     stream:    release stream (eg. stable-lithium or beryllium)
55     #     branch:    git branch (eg. stable/lithium or master)
56
57     project-type: matrix
58     node: matrix_master
59     concurrent: true
60
61     axes:
62         - axis:
63             type: slave
64             name: nodes
65             values:
66                 - dynamic_verify
67         - axis:
68             type: jdk
69             values: '{obj:jdks}'
70
71     logrotate:
72         daysToKeep: '{build-days-to-keep}'
73         numToKeep: '{build-num-to-keep}'
74         artifactDaysToKeep: '{build-artifact-days-to-keep}'
75         artifactNumToKeep: '{build-artifact-num-to-keep}'
76
77     parameters:
78         - project-parameter:
79             project: '{project}'
80         - gerrit-parameter:
81             branch: '{branch}'
82
83     scm:
84         - gerrit-trigger-scm:
85             credentials-id: '{ssh-credentials}'
86             refspec: '$GERRIT_REFSPEC'
87             choosing-strategy: 'gerrit'
88
89     wrappers:
90         - build-timeout
91         - ssh-agent-credentials:
92             users:
93                 - '{ssh-credentials}'
94
95     triggers:
96         - gerrit-trigger-patch-submitted:
97             name: 'vtn'
98             branch: '{branch}'
99
100     builders:
101         - wipe-org-opendaylight-repo
102         - jacoco-nojava-workaround
103         - provide-maven-settings:
104             global-settings-file: '{odl-global-settings}'
105             settings-file: '{vtn-settings}'
106         - maven-target:
107             maven-version: '{mvn33}'
108             pom: 'pom.xml'
109             goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
110             java-opts:
111                 - '-Xmx1024m -XX:MaxPermSize=256m'
112             settings: '{vtn-settings}'
113             global-settings: '{odl-global-settings}'
114
115     publishers:
116         - findbugs
117         - email-notification:
118             email-prefix: '[vtn]'
119         - jacoco-report
120
121 - job-template:
122     name: 'vtn-merge-{stream}'
123
124     # Job template for ODL merge jobs
125     #
126     # The purpose of this job template is to setup a ODL merge job
127     # and deploy artifacts to Nexus.
128     #
129     # Required Variables:
130     #     stream:    release stream (eg. stable-lithium or beryllium)
131     #     branch:    git branch (eg. stable/lithium or master)
132
133     project-type: maven
134     node: dynamic_merge
135     jdk: '{jdk}'
136
137     logrotate:
138         daysToKeep: '{build-days-to-keep}'
139         numToKeep: '{build-num-to-keep}'
140         artifactDaysToKeep: '{build-artifact-days-to-keep}'
141         artifactNumToKeep: '{build-artifact-num-to-keep}'
142
143     parameters:
144         - project-parameter:
145             project: '{project}'
146
147     scm:
148         - gerrit-trigger-scm:
149             credentials-id: '{ssh-credentials}'
150             refspec: ''
151             choosing-strategy: 'default'
152
153     wrappers:
154         - build-timeout
155         - ssh-agent-credentials:
156             users:
157                 - '{ssh-credentials}'
158
159     triggers:
160         - gerrit-trigger-patch-merged:
161             name: 'vtn'
162             branch: '{branch}'
163
164     prebuilders:
165         - wipe-org-opendaylight-repo
166         - jacoco-nojava-workaround
167         - provide-maven-settings:
168             global-settings-file: '{odl-global-settings}'
169             settings-file: '{vtn-settings}'
170
171     maven:
172         maven-name: '{mvn33}'
173         root-pom: 'pom.xml'
174         goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmerge -Dstream={stream}'
175         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
176         settings: '{vtn-settings}'
177         global-settings: '{odl-global-settings}'
178         post-step-run-condition: UNSTABLE
179
180     postbuilders:
181         - conditional-step:
182             condition-kind: file-exists
183             condition-filename: deploy-site.xml
184             condition-basedir: workspace
185
186             # The strategy here is intentional to run Maven site:deploy twice
187             # once using regular pom.xml to produce a staged-site which is
188             # then used by deploy-site.xml to push to Nexus. This is a
189             # workaround to Maven Site's default linking code which creates
190             # incorrect URLs for sites due to auto-detection assuming your
191             # project is configured in a certain way which ODL is not.
192             steps:
193             - maven-target:
194                 maven-version: '{mvn33}'
195                 pom: pom.xml
196                 goals: 'site:deploy -Dstream={stream}'
197                 java-opts:
198                     - '-Xmx2g'
199                 settings: '{vtn-settings}'
200                 global-settings: '{odl-global-settings}'
201             - maven-target:
202                 maven-version: '{mvn33}'
203                 pom: deploy-site.xml
204                 goals: 'site:deploy -Dstream={stream}'
205                 java-opts:
206                     - '-Xmx2g'
207                 settings: '{vtn-settings}'
208                 global-settings: '{odl-global-settings}'
209
210     reporters:
211         - findbugs
212
213     publishers:
214         - archive-artifacts:
215             artifacts: 'manager/dist/*/target/*.zip, coordinator/dist/target/*.bz2, manager/northbound/target/site/wsdocs/**, manager/api/target/*-javadoc.jar, manager/api/target/apidocs/**'
216         - email-notification:
217             email-prefix: '[vtn]'
218         - maven-deploy:
219             id: ''
220             unique-version: true
221             deploy-unstable: false
222         - jacoco-report
223
224 - job-template:
225     name: 'vtn-daily-{stream}'
226
227     # Job template for daily builders
228     #
229     # The purpose of this job template is to setup a daily/nightly
230     # builder and pushes to Sonar analysis.
231     #
232     # Required Variables:
233     #     stream:    release stream (eg. stable-lithium or beryllium)
234     #     branch:    git branch (eg. stable/lithium or master)
235
236     project-type: maven
237     node: dynamic_verify
238     jdk: '{jdk}'
239
240     logrotate:
241         daysToKeep: '{build-days-to-keep}'
242         numToKeep: '{build-num-to-keep}'
243         artifactDaysToKeep: '{build-artifact-days-to-keep}'
244         artifactNumToKeep: '{build-artifact-num-to-keep}'
245
246     parameters:
247         - project-parameter:
248             project: '{project}'
249
250     scm:
251         - git-scm:
252             credentials-id: '{ssh-credentials}'
253             refspec: ''
254             branch: '{branch}'
255
256     wrappers:
257         - build-timeout
258         - ssh-agent-credentials:
259             users:
260                 - '{ssh-credentials}'
261
262     triggers:
263         - timed: 'H H * * *'
264
265     prebuilders:
266         - wipe-org-opendaylight-repo
267         - jacoco-nojava-workaround
268         - provide-maven-settings:
269             global-settings-file: '{odl-global-settings}'
270             settings-file: '{vtn-settings}'
271
272     maven:
273         maven-name: '{mvn33}'
274         root-pom: 'pom.xml'
275         goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
276         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
277         settings: '{vtn-settings}'
278         global-settings: '{odl-global-settings}'
279
280     reporters:
281         - findbugs
282
283     publishers:
284         - email-notification:
285             email-prefix: '[vtn]'
286         - jacoco-report
287
288 - job-template:
289     name: 'vtn-distribution-{stream}'
290
291     # Required variables:
292     #     stream:    release stream (eg. stable-lithium or beryllium)
293     #     branch:    git branch (eg. stable/lithium or master)
294
295     project-type: maven
296     node: dynamic_merge
297     jdk: '{jdk}'
298
299     logrotate:
300         daysToKeep: '{build-days-to-keep}'
301         numToKeep: '{build-num-to-keep}'
302         artifactDaysToKeep: '{build-artifact-days-to-keep}'
303         artifactNumToKeep: '{build-artifact-num-to-keep}'
304
305     parameters:
306         - project-parameter:
307             project: 'integration/distribution'
308
309     scm:
310         - git-scm:
311             credentials-id: '{ssh-credentials}'
312             refspec: ''
313             branch: '{branch}'
314
315     wrappers:
316         - build-timeout
317         - ssh-agent-credentials:
318             users:
319                 - '{ssh-credentials}'
320
321     triggers:
322         - reverse:
323             jobs: '{project}-merge-{stream}'
324             result: 'success'
325
326     prebuilders:
327         - wipe-org-opendaylight-repo
328         - provide-maven-settings:
329             global-settings-file: '{odl-global-settings}'
330             settings-file: '{vtn-settings}'
331
332     maven:
333         maven-name: '{mvn33}'
334         root-pom: 'pom.xml'
335         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
336         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
337         settings: '{integration-settings}'
338         global-settings: '{odl-global-settings}'
339
340     publishers:
341         - email-notification:
342             email-prefix: '[{project}]'
343         - maven-deploy:
344             id: ''
345             unique-version: true
346             deploy-unstable: false
347
348 - job-template:
349     name: 'vtn-integration-{stream}'
350     disabled: false
351
352     # Job template for ODL integration verify jobs
353     #
354     # This is similar to a normal verify job, but it runs
355     # when a project that's a dependency of your project
356     # is successfully built.
357     #
358     # Required Variables:
359     #     stream:    release stream (eg. stable-lithium or beryllium)
360     #     branch:    git branch (eg. stable/lithium or master)
361
362     project-type: maven
363     node: dynamic_merge
364     jdk: '{jdk}'
365
366     logrotate:
367         daysToKeep: '{build-days-to-keep}'
368         numToKeep: '{build-num-to-keep}'
369         artifactDaysToKeep: '{build-artifact-days-to-keep}'
370         artifactNumToKeep: '{build-artifact-num-to-keep}'
371
372     parameters:
373         - project-parameter:
374             project: '{project}'
375
376     scm:
377         - git-scm:
378             credentials-id: '{ssh-credentials}'
379             refspec: ''
380             branch: '{branch}'
381
382     wrappers:
383         - build-timeout
384         - ssh-agent-credentials:
385             users:
386                 - '{ssh-credentials}'
387
388     triggers:
389         - reverse:
390             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},neutron-merge-{stream}'
391             result: 'success'
392
393     prebuilders:
394         - wipe-org-opendaylight-repo
395         - jacoco-nojava-workaround
396         - provide-maven-settings:
397             global-settings-file: '{odl-global-settings}'
398             settings-file: '{vtn-settings}'
399
400     maven:
401         maven-name: '{mvn33}'
402         root-pom: 'pom.xml'
403         goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
404         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
405         settings: '{vtn-settings}'
406         global-settings: '{odl-global-settings}'
407
408     reporters:
409         - findbugs
410
411     publishers:
412         - email-notification:
413             email-prefix: '[vtn] [odlparent] [controller] [yangtools] [openflowplugin] [ovsdb] [neutron]'
414         - jacoco-report
415
416 - job-template:
417     name: 'vtn-sonar'
418
419     project-type: maven
420     node: dynamic_verify
421     jdk: 'openjdk7'
422
423     logrotate:
424         daysToKeep: '7'
425         numToKeep: '10'
426         artifactDaysToKeep: '1'
427         artifactNumToKeep: '1'
428
429     parameters:
430         - project-parameter:
431             project: '{project}'
432
433     scm:
434         - git-scm:
435             credentials-id: '{ssh-credentials}'
436             refspec: ''
437             branch: 'master'
438
439     wrappers:
440         - build-timeout
441         - ssh-agent-credentials:
442             users:
443                 - '{ssh-credentials}'
444
445     triggers:
446         - timed: 'H H * * *'
447         - gerrit-trigger-patch-sonar:
448             name: 'vtn'
449
450     prebuilders:
451         - wipe-org-opendaylight-repo
452         - jacoco-nojava-workaround
453         - provide-maven-settings:
454             global-settings-file: '{odl-global-settings}'
455             settings-file: '{vtn-settings}'
456
457     maven:
458         maven-name: '{mvn33}'
459         root-pom: 'pom.xml'
460         goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dsonar'
461         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
462         settings: '{vtn-settings}'
463         global-settings: '{odl-global-settings}'
464
465     reporters:
466         - findbugs
467
468     publishers:
469         - sonar:
470             language: 'java'
471             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
472         - email-notification:
473             email-prefix: '[vtn]'
474         - jacoco-report
475
476 - job-template:
477     name: 'vtn-clm-{stream}'
478
479     project-type: maven
480     node: dynamic_verify
481     jdk: '{jdk}'
482
483     logrotate:
484         daysToKeep: '{build-days-to-keep}'
485         numToKeep: '{build-num-to-keep}'
486         artifactDaysToKeep: '{build-artifact-days-to-keep}'
487         artifactNumToKeep: '{build-artifact-num-to-keep}'
488
489     parameters:
490         - project-parameter:
491             project: '{project}'
492
493     scm:
494         - git-scm:
495             credentials-id: '{ssh-credentials}'
496             refspec: ''
497             branch: '{branch}'
498
499     wrappers:
500         - build-timeout
501         - ssh-agent-credentials:
502             users:
503                 - '{ssh-credentials}'
504
505     triggers:
506         - timed: '@weekly'
507
508     prebuilders:
509         - wipe-org-opendaylight-repo
510         - provide-maven-settings:
511             global-settings-file: '{odl-global-settings}'
512             settings-file: '{vtn-settings}'
513
514     maven:
515         maven-name: '{mvn33}'
516         root-pom: 'pom.xml'
517         goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
518         maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
519         settings: '{vtn-settings}'
520         global-settings: '{odl-global-settings}'
521
522     postbuilders:
523         - check-clm:
524             application-name: vtn
525
526     publishers:
527         - email-notification:
528             email-prefix: '[vtn]'
529