Merge "Restoring bin/client in the scripts"
[releng/builder.git] / jjb / snbi / snbi.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: snbi
8     jobs:
9         - 'snbi-verify-{stream}'
10         - 'snbi-merge-{stream}'
11         - 'snbi-daily-{stream}'
12         - 'snbi-integration-{stream}'
13         - 'snbi-sonar'
14
15
16     # stream:    branch with - in place of / (eg. stable-helium)
17     # branch:    branch (eg. stable/helium)
18     stream:
19         - master:
20             branch: 'master'
21         - stable-helium:
22             branch: 'stable/helium'
23
24     project: 'snbi'
25     jdk: 'openjdk7'
26
27 # For the Job templates below replace instances of:
28 # PROJECT with your project name (eg. controller)
29 # MAVEN_GOALS with your maven goals to build
30 # MAVEN_OPTS with your maven options to build
31
32 - job-template:
33     name: 'snbi-verify-{stream}'
34
35     # Job template for ODL verify jobs
36     #
37     # The purpose of this job template is to setup a ODL verify job
38     #
39     # Required Variables:
40     #     stream:    branch with - in place of / (eg. stable-helium)
41     #     branch:    branch (eg. stable/helium)
42
43     project-type: matrix
44     node: matrix_master
45     concurrent: true
46
47     axes:
48         - axis:
49             type: slave
50             name: nodes
51             values:
52                 - dynamic_verify
53         - axis:
54             type: jdk
55             values:
56                 - openjdk7
57
58
59     logrotate:
60         daysToKeep: '{build-days-to-keep}'
61         numToKeep: '{build-num-to-keep}'
62         artifactDaysToKeep: '{build-artifact-days-to-keep}'
63         artifactNumToKeep: '{build-artifact-num-to-keep}'
64
65     parameters:
66         - project-parameter:
67             project: '{project}'
68         - gerrit-parameter:
69             branch: '{branch}'
70
71     scm:
72         - gerrit-trigger-scm:
73             credentials-id: '{ssh-credentials}'
74             refspec: '$GERRIT_REFSPEC'
75             choosing-strategy: 'gerrit'
76
77     wrappers:
78         - build-timeout
79         - ssh-agent-credentials:
80             user: '{ssh-credentials}'
81
82     triggers:
83         - gerrit-trigger-patch-submitted:
84             name: 'snbi'
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: '{snbi-settings}'
96             global-settings: '{odl-global-settings}'
97         - jacoco-nojava-workaround
98
99     publishers:
100         - findbugs
101         - email-notification:
102             email-prefix: '[snbi]'
103         - jacoco-report
104
105 - job-template:
106     name: 'snbi-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             user: '{ssh-credentials}'
141
142     triggers:
143         - gerrit-trigger-patch-merged:
144             name: 'snbi'
145             branch: '{branch}'
146
147     prebuilders:
148         - wipe-org-opendaylight-repo
149
150     maven:
151         maven-name: '{mvn32}'
152         root-pom: 'pom.xml'
153         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
154         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
155         settings: '{snbi-settings}'
156         global-settings: '{odl-global-settings}'
157
158     postbuilders:
159         - jacoco-nojava-workaround
160
161     reporters:
162         - findbugs
163
164     publishers:
165         
166         - email-notification:
167             email-prefix: '[snbi]'
168         - maven-deploy:
169             id: ''
170             unique-version: true
171             deploy-unstable: false
172         - jacoco-report
173
174 - job-template:
175     name: 'snbi-daily-{stream}'
176
177     # Job template for daily builders
178     #
179     # The purpose of this job template is to setup a daily/nightly
180     # builder and pushes to Sonar analysis.
181     #
182     # Required Variables:
183     #     stream:    branch with - in place of / (eg. stable-helium)
184     #     branch:    branch (eg. stable/helium)
185
186     project-type: maven
187     node: dynamic_verify
188     jdk: '{jdk}'
189
190     logrotate:
191         daysToKeep: '{build-days-to-keep}'
192         numToKeep: '{build-num-to-keep}'
193         artifactDaysToKeep: '{build-artifact-days-to-keep}'
194         artifactNumToKeep: '{build-artifact-num-to-keep}'
195
196     parameters:
197         - project-parameter:
198             project: '{project}'
199
200     scm:
201         - git-scm:
202             credentials-id: '{ssh-credentials}'
203             refspec: ''
204             branch: '{branch}'
205
206     wrappers:
207         - build-timeout
208         - ssh-agent-credentials:
209             user: '{ssh-credentials}'
210
211     triggers:
212         - timed: 'H H * * *'
213
214     prebuilders:
215         - wipe-org-opendaylight-repo
216
217     maven:
218         maven-name: '{mvn32}'
219         root-pom: 'pom.xml'
220         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
221         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
222         settings: '{snbi-settings}'
223         global-settings: '{odl-global-settings}'
224
225     postbuilders:
226         - jacoco-nojava-workaround
227
228     reporters:
229         - findbugs
230
231     publishers:
232         - email-notification:
233             email-prefix: '[snbi]'
234         - jacoco-report
235
236 - job-template:
237     name: 'snbi-integration-{stream}'
238     disabled: false
239
240     # Job template for ODL merge jobs
241     #
242     # The purpose of this job template is to setup a ODL merge job
243     # and deploy artifacts to Nexus.
244     #
245     # Required Variables:
246     #     stream:    branch with - in place of / (eg. stable-helium)
247     #     branch:    branch (eg. stable/helium)
248
249     project-type: maven
250     node: dynamic_merge
251     jdk: '{jdk}'
252
253     logrotate:
254         daysToKeep: '{build-days-to-keep}'
255         numToKeep: '{build-num-to-keep}'
256         artifactDaysToKeep: '{build-artifact-days-to-keep}'
257         artifactNumToKeep: '{build-artifact-num-to-keep}'
258
259     parameters:
260         - project-parameter:
261             project: '{project}'
262
263     scm:
264         - git-scm:
265             credentials-id: '{ssh-credentials}'
266             refspec: ''
267             branch: '{branch}'
268
269     wrappers:
270         - build-timeout
271         - ssh-agent-credentials:
272             user: '{ssh-credentials}'
273
274     triggers:
275         - reverse:
276             jobs: 'odlparent-merge-{stream}'
277             result: 'success'
278
279     prebuilders:
280         - wipe-org-opendaylight-repo
281
282     maven:
283         maven-name: '{mvn32}'
284         root-pom: 'pom.xml'
285         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
286         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
287         settings: '{snbi-settings}'
288         global-settings: '{odl-global-settings}'
289
290     postbuilders:
291         - jacoco-nojava-workaround
292
293     reporters:
294         - findbugs
295
296     publishers:
297         - email-notification:
298             email-prefix: '[snbi] [odlparent]'
299         - jacoco-report
300
301 - job-template:
302     name: 'snbi-sonar'
303
304     project-type: maven
305     node: dynamic_verify
306     jdk: '{jdk}'
307
308     logrotate:
309         daysToKeep: '7'
310         numToKeep: '10'
311         artifactDaysToKeep: '1'
312         artifactNumToKeep: '1'
313
314     parameters:
315         - project-parameter:
316             project: '{project}'
317
318     scm:
319         - git-scm:
320             credentials-id: '{ssh-credentials}'
321             refspec: ''
322             branch: 'master'
323
324     wrappers:
325         - build-timeout
326         - ssh-agent-credentials:
327             user: '{ssh-credentials}'
328
329     triggers:
330         - timed: 'H H * * *'
331
332     maven:
333         maven-name: '{mvn32}'
334         root-pom: 'pom.xml'
335         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
336         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
337         settings: '{snbi-settings}'
338         global-settings: '{odl-global-settings}'
339
340     postbuilders:
341         - jacoco-nojava-workaround
342
343     reporters:
344         - findbugs
345
346     publishers:
347         - sonar:
348             language: 'java'
349             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
350         - email-notification:
351             email-prefix: '[snbi]'
352         - jacoco-report
353