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