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