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