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