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