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