Merge "Add dependencies to bgpcep.cfg, create tcpmd5.cfg"
[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-integration-{stream}'
13         - 'vtn-sonar'
14
15     # stream:    branch with - in place of / (eg. stable-helium)
16     # branch:    branch (eg. stable/helium)
17     stream:
18         - master:
19             branch: 'master'
20         - stable-helium:
21             branch: 'stable/helium'
22
23     project: 'vtn'
24     jdk: 'openjdk7'
25
26 # For the Job templates below replace instances of:
27 # PROJECT with your project name (eg. controller)
28 # MAVEN_GOALS with your maven goals to build
29 # MAVEN_OPTS with your maven options to build
30
31 - job-template:
32     name: 'vtn-verify-{stream}'
33
34     # Job template for ODL verify jobs
35     #
36     # The purpose of this job template is to setup a ODL verify job
37     #
38     # Required Variables:
39     #     stream:    branch with - in place of / (eg. stable-helium)
40     #     branch:    branch (eg. stable/helium)
41
42     project-type: maven
43     node: dynamic_verify
44     concurrent: true
45     jdk: '{jdk}'
46
47     logrotate:
48         daysToKeep: '{build-days-to-keep}'
49         numToKeep: '{build-num-to-keep}'
50         artifactDaysToKeep: '{build-artifact-days-to-keep}'
51         artifactNumToKeep: '{build-artifact-num-to-keep}'
52
53     parameters:
54         - project-parameter:
55             project: '{project}'
56         - gerrit-parameter:
57             branch: '{branch}'
58
59     scm:
60         - gerrit-trigger-scm:
61             credentials-id: '{ssh-credentials}'
62             refspec: '$GERRIT_REFSPEC'
63             choosing-strategy: 'gerrit'
64
65     wrappers:
66         - build-timeout
67         - ssh-agent-credentials:
68             user: '{ssh-credentials}'
69
70     triggers:
71         - gerrit-trigger-patch-submitted:
72             name: 'vtn'
73             branch: '{branch}'
74
75     prebuilders:
76         - wipe-org-opendaylight-repo
77
78     maven:
79         maven-name: '{mvn32}'
80         root-pom: 'pom.xml'
81         goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
82         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
83         settings: '{vtn-settings}'
84         global-settings: '{odl-global-settings}'
85         ignore-upstream-changes: true
86
87     postbuilders:
88         - jacoco-nojava-workaround
89
90     publishers:
91         - email-notification:
92             email-prefix: '[vtn]'
93         - jacoco-report
94
95 - job-template:
96     name: 'vtn-merge-{stream}'
97
98     # Job template for ODL merge jobs
99     #
100     # The purpose of this job template is to setup a ODL merge job
101     # and deploy artifacts to Nexus.
102     #
103     # Required Variables:
104     #     stream:    branch with - in place of / (eg. stable-helium)
105     #     branch:    branch (eg. stable/helium)
106
107     project-type: maven
108     node: dynamic_merge
109     jdk: '{jdk}'
110
111     logrotate:
112         daysToKeep: '{build-days-to-keep}'
113         numToKeep: '{build-num-to-keep}'
114         artifactDaysToKeep: '{build-artifact-days-to-keep}'
115         artifactNumToKeep: '{build-artifact-num-to-keep}'
116
117     parameters:
118         - project-parameter:
119             project: '{project}'
120
121     scm:
122         - gerrit-trigger-scm:
123             credentials-id: '{ssh-credentials}'
124             refspec: ''
125             choosing-strategy: 'default'
126
127     wrappers:
128         - build-timeout
129         - ssh-agent-credentials:
130             user: '{ssh-credentials}'
131
132     triggers:
133         - gerrit-trigger-patch-merged:
134             name: 'vtn'
135             branch: '{branch}'
136
137     prebuilders:
138         - wipe-org-opendaylight-repo
139
140     maven:
141         maven-name: '{mvn32}'
142         root-pom: 'pom.xml'
143         goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
144         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
145         settings: '{vtn-settings}'
146         global-settings: '{odl-global-settings}'
147
148     postbuilders:
149         - jacoco-nojava-workaround
150
151     publishers:
152         - archive-artifacts:
153             artifacts: 'manager/dist/*/target/*.zip, coordinator/dist/target/*.bz2, manager/northbound/target/site/wsdocs/**, manager/api/target/*-javadoc.jar, manager/api/target/apidocs/**'
154         - email-notification:
155             email-prefix: '[vtn]'
156         - maven-deploy:
157             id: ''
158             unique-version: true
159             deploy-unstable: false
160         - jacoco-report
161
162 - job-template:
163     name: 'vtn-daily-{stream}'
164
165     # Job template for daily builders
166     #
167     # The purpose of this job template is to setup a daily/nightly
168     # builder and pushes to Sonar analysis.
169     #
170     # Required Variables:
171     #     stream:    branch with - in place of / (eg. stable-helium)
172     #     branch:    branch (eg. stable/helium)
173
174     project-type: maven
175     node: dynamic_verify
176     jdk: '{jdk}'
177
178     logrotate:
179         daysToKeep: '{build-days-to-keep}'
180         numToKeep: '{build-num-to-keep}'
181         artifactDaysToKeep: '{build-artifact-days-to-keep}'
182         artifactNumToKeep: '{build-artifact-num-to-keep}'
183
184     parameters:
185         - project-parameter:
186             project: '{project}'
187
188     scm:
189         - git-scm:
190             credentials-id: '{ssh-credentials}'
191             refspec: ''
192             branch: '{branch}'
193
194     wrappers:
195         - build-timeout
196         - ssh-agent-credentials:
197             user: '{ssh-credentials}'
198
199     triggers:
200         - timed: 'H H * * *'
201
202     prebuilders:
203         - wipe-org-opendaylight-repo
204
205     maven:
206         maven-name: '{mvn32}'
207         root-pom: 'pom.xml'
208         goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
209         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
210         settings: '{vtn-settings}'
211         global-settings: '{odl-global-settings}'
212
213     postbuilders:
214         - jacoco-nojava-workaround
215
216     publishers:
217         - email-notification:
218             email-prefix: '[vtn]'
219         - jacoco-report
220
221 - job-template:
222     name: 'vtn-integration-{stream}'
223     disabled: false
224
225     # Job template for ODL merge jobs
226     #
227     # The purpose of this job template is to setup a ODL merge job
228     # and deploy artifacts to Nexus.
229     #
230     # Required Variables:
231     #     stream:    branch with - in place of / (eg. stable-helium)
232     #     branch:    branch (eg. stable/helium)
233
234     project-type: maven
235     node: dynamic_merge
236     jdk: '{jdk}'
237
238     logrotate:
239         daysToKeep: '{build-days-to-keep}'
240         numToKeep: '{build-num-to-keep}'
241         artifactDaysToKeep: '{build-artifact-days-to-keep}'
242         artifactNumToKeep: '{build-artifact-num-to-keep}'
243
244     parameters:
245         - project-parameter:
246             project: '{project}'
247
248     scm:
249         - git-scm:
250             credentials-id: '{ssh-credentials}'
251             refspec: ''
252             branch: '{branch}'
253
254     wrappers:
255         - build-timeout
256         - ssh-agent-credentials:
257             user: '{ssh-credentials}'
258
259     triggers:
260         - reverse:
261             jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},openflowplugin-merge-{stream}'
262             result: 'success'
263
264     prebuilders:
265         - wipe-org-opendaylight-repo
266
267     maven:
268         maven-name: '{mvn32}'
269         root-pom: 'pom.xml'
270         goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
271         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
272         settings: '{vtn-settings}'
273         global-settings: '{odl-global-settings}'
274
275     postbuilders:
276         - jacoco-nojava-workaround
277
278     publishers:
279         - email-notification:
280             email-prefix: '[vtn] [odlparent] [controller] [yangtools] [openflowplugin]'
281         - maven-deploy:
282             id: ''
283             unique-version: true
284             deploy-unstable: false
285         - jacoco-report
286
287 - job-template:
288     name: 'vtn-sonar'
289
290     project-type: maven
291     node: dynamic_verify
292     jdk: '{jdk}'
293
294     logrotate:
295         daysToKeep: '7'
296         numToKeep: '10'
297         artifactDaysToKeep: '1'
298         artifactNumToKeep: '1'
299
300     parameters:
301         - project-parameter:
302             project: '{project}'
303
304     scm:
305         - git-scm:
306             credentials-id: '{ssh-credentials}'
307             refspec: ''
308             branch: 'master'
309
310     wrappers:
311         - build-timeout
312         - ssh-agent-credentials:
313             user: '{ssh-credentials}'
314
315     triggers:
316         - timed: 'H H * * *'
317
318     maven:
319         maven-name: '{mvn32}'
320         root-pom: 'pom.xml'
321         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'
322         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
323         settings: '{vtn-settings}'
324         global-settings: '{odl-global-settings}'
325
326     postbuilders:
327         - jacoco-nojava-workaround
328
329     publishers:
330         - sonar:
331             language: 'java'
332             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
333         - email-notification:
334             email-prefix: '[vtn]'
335         - jacoco-report