Update automated project templates
[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
27     project: 'iotdm'
28
29 # For the Job templates below replace instances of:
30 # PROJECT with your project name (eg. controller)
31 # MAVEN_GOALS with your maven goals to build
32 # MAVEN_OPTS with your maven options to build
33
34 - job-template:
35     name: 'iotdm-verify-{stream}'
36
37     # Job template for ODL verify jobs
38     #
39     # The purpose of this job template is to setup a ODL verify job
40     #
41     # Required Variables:
42     #     stream:    branch with - in place of / (eg. stable-helium)
43     #     branch:    branch (eg. stable/helium)
44
45     project-type: matrix
46     node: matrix_master
47     concurrent: true
48
49     axes:
50         - axis:
51             type: slave
52             name: nodes
53             values:
54                 - dynamic_verify
55         - axis:
56             type: jdk
57             values: '{obj:jdks}'
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             users:
81                 - '{ssh-credentials}'
82
83     triggers:
84         - gerrit-trigger-patch-submitted:
85             name: 'iotdm'
86             branch: '{branch}'
87
88     builders:
89         - wipe-org-opendaylight-repo
90         - maven-target:
91             maven-version: '{mvn32}'
92             pom: 'pom.xml'
93             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
94             java-opts:
95                 - '-Xmx1024m -XX:MaxPermSize=256m'
96             settings: '{iotdm-settings}'
97             global-settings: '{odl-global-settings}'
98         - jacoco-nojava-workaround
99
100     publishers:
101         - findbugs
102         - email-notification:
103             email-prefix: '[iotdm]'
104         - jacoco-report
105
106 - job-template:
107     name: 'iotdm-merge-{stream}'
108
109     # Job template for ODL merge jobs
110     #
111     # The purpose of this job template is to setup a ODL merge job
112     # and deploy artifacts to Nexus.
113     #
114     # Required Variables:
115     #     stream:    branch with - in place of / (eg. stable-helium)
116     #     branch:    branch (eg. stable/helium)
117
118     project-type: maven
119     node: dynamic_merge
120     jdk: '{jdk}'
121
122     logrotate:
123         daysToKeep: '{build-days-to-keep}'
124         numToKeep: '{build-num-to-keep}'
125         artifactDaysToKeep: '{build-artifact-days-to-keep}'
126         artifactNumToKeep: '{build-artifact-num-to-keep}'
127
128     parameters:
129         - project-parameter:
130             project: '{project}'
131
132     scm:
133         - gerrit-trigger-scm:
134             credentials-id: '{ssh-credentials}'
135             refspec: ''
136             choosing-strategy: 'default'
137
138     wrappers:
139         - build-timeout
140         - ssh-agent-credentials:
141             users:
142                 - '{ssh-credentials}'
143
144     triggers:
145         - gerrit-trigger-patch-merged:
146             name: 'iotdm'
147             branch: '{branch}'
148
149     prebuilders:
150         - wipe-org-opendaylight-repo
151
152     maven:
153         maven-name: '{mvn32}'
154         root-pom: 'pom.xml'
155         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
156         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
157         settings: '{iotdm-settings}'
158         global-settings: '{odl-global-settings}'
159
160     postbuilders:
161         - jacoco-nojava-workaround
162
163     reporters:
164         - findbugs
165
166     publishers:
167         
168         - email-notification:
169             email-prefix: '[iotdm]'
170         - maven-deploy:
171             id: ''
172             unique-version: true
173             deploy-unstable: false
174         - jacoco-report
175
176 - job-template:
177     name: 'iotdm-daily-{stream}'
178
179     # Job template for daily builders
180     #
181     # The purpose of this job template is to setup a daily/nightly
182     # builder and pushes to Sonar analysis.
183     #
184     # Required Variables:
185     #     stream:    branch with - in place of / (eg. stable-helium)
186     #     branch:    branch (eg. stable/helium)
187
188     project-type: maven
189     node: dynamic_verify
190     jdk: '{jdk}'
191
192     logrotate:
193         daysToKeep: '{build-days-to-keep}'
194         numToKeep: '{build-num-to-keep}'
195         artifactDaysToKeep: '{build-artifact-days-to-keep}'
196         artifactNumToKeep: '{build-artifact-num-to-keep}'
197
198     parameters:
199         - project-parameter:
200             project: '{project}'
201
202     scm:
203         - git-scm:
204             credentials-id: '{ssh-credentials}'
205             refspec: ''
206             branch: '{branch}'
207
208     wrappers:
209         - build-timeout
210         - ssh-agent-credentials:
211             users:
212                 - '{ssh-credentials}'
213
214     triggers:
215         - timed: 'H H * * *'
216
217     prebuilders:
218         - wipe-org-opendaylight-repo
219
220     maven:
221         maven-name: '{mvn32}'
222         root-pom: 'pom.xml'
223         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
224         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
225         settings: '{iotdm-settings}'
226         global-settings: '{odl-global-settings}'
227
228     postbuilders:
229         - jacoco-nojava-workaround
230
231     reporters:
232         - findbugs
233
234     publishers:
235         - email-notification:
236             email-prefix: '[iotdm]'
237         - jacoco-report
238
239 - job-template:
240     name: 'iotdm-integration-{stream}'
241     disabled: false
242
243     # Job template for ODL merge jobs
244     #
245     # The purpose of this job template is to setup a ODL merge job
246     # and deploy artifacts to Nexus.
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: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},aaa-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: '{iotdm-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: '[iotdm] [controller] [yangtools] [odlparent] [aaa]'
303         - jacoco-report
304
305 - job-template:
306     name: 'iotdm-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: '{iotdm-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: '[iotdm]'
357         - jacoco-report
358
359 - job-template:
360     name: 'iotdm-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: '{iotdm-settings}'
400         global-settings: '{odl-global-settings}'
401
402     postbuilders:
403         - check-clm:
404             application-name: iotdm
405
406     publishers:
407         - email-notification:
408             email-prefix: '[iotdm]'
409