Update automated project templates
[releng/builder.git] / jjb / persistence / persistence.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: persistence
8     jobs:
9         - 'persistence-verify-{stream}'
10         - 'persistence-merge-{stream}'
11         - 'persistence-daily-{stream}'
12         - 'persistence-integration-{stream}'
13         - 'persistence-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
22     project: 'persistence'
23     jdk: 'openjdk7'
24
25 # For the Job templates below replace instances of:
26 # PROJECT with your project name (eg. controller)
27 # MAVEN_GOALS with your maven goals to build
28 # MAVEN_OPTS with your maven options to build
29
30 - job-template:
31     name: 'persistence-verify-{stream}'
32
33     # Job template for ODL verify jobs
34     #
35     # The purpose of this job template is to setup a ODL verify job
36     #
37     # Required Variables:
38     #     stream:    branch with - in place of / (eg. stable-helium)
39     #     branch:    branch (eg. stable/helium)
40
41     project-type: matrix
42     node: matrix_master
43     concurrent: true
44
45     axes:
46         - axis:
47             type: slave
48             name: nodes
49             values:
50                 - dynamic_verify
51         - axis:
52             type: jdk
53             values:
54                 - openjdk7
55
56
57     logrotate:
58         daysToKeep: '{build-days-to-keep}'
59         numToKeep: '{build-num-to-keep}'
60         artifactDaysToKeep: '{build-artifact-days-to-keep}'
61         artifactNumToKeep: '{build-artifact-num-to-keep}'
62
63     parameters:
64         - project-parameter:
65             project: '{project}'
66         - gerrit-parameter:
67             branch: '{branch}'
68
69     scm:
70         - gerrit-trigger-scm:
71             credentials-id: '{ssh-credentials}'
72             refspec: '$GERRIT_REFSPEC'
73             choosing-strategy: 'gerrit'
74
75     wrappers:
76         - build-timeout
77         - ssh-agent-credentials:
78             user: '{ssh-credentials}'
79
80     triggers:
81         - gerrit-trigger-patch-submitted:
82             name: 'persistence'
83             branch: '{branch}'
84
85     builders:
86         - wipe-org-opendaylight-repo
87         - maven-target:
88             maven-version: '{mvn32}'
89             pom: 'pom.xml'
90             goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
91             java-opts:
92                 - '-Xmx1024m -XX:MaxPermSize=256m'
93             settings: '{persistence-settings}'
94             global-settings: '{odl-global-settings}'
95         - jacoco-nojava-workaround
96
97     publishers:
98         - email-notification:
99             email-prefix: '[persistence]'
100         - jacoco-report
101
102 - job-template:
103     name: 'persistence-merge-{stream}'
104
105     # Job template for ODL merge jobs
106     #
107     # The purpose of this job template is to setup a ODL merge job
108     # and deploy artifacts to Nexus.
109     #
110     # Required Variables:
111     #     stream:    branch with - in place of / (eg. stable-helium)
112     #     branch:    branch (eg. stable/helium)
113
114     project-type: maven
115     node: dynamic_merge
116     jdk: '{jdk}'
117
118     logrotate:
119         daysToKeep: '{build-days-to-keep}'
120         numToKeep: '{build-num-to-keep}'
121         artifactDaysToKeep: '{build-artifact-days-to-keep}'
122         artifactNumToKeep: '{build-artifact-num-to-keep}'
123
124     parameters:
125         - project-parameter:
126             project: '{project}'
127
128     scm:
129         - gerrit-trigger-scm:
130             credentials-id: '{ssh-credentials}'
131             refspec: ''
132             choosing-strategy: 'default'
133
134     wrappers:
135         - build-timeout
136         - ssh-agent-credentials:
137             user: '{ssh-credentials}'
138
139     triggers:
140         - gerrit-trigger-patch-merged:
141             name: 'persistence'
142             branch: '{branch}'
143
144     prebuilders:
145         - wipe-org-opendaylight-repo
146
147     maven:
148         maven-name: '{mvn32}'
149         root-pom: 'pom.xml'
150         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
151         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
152         settings: '{persistence-settings}'
153         global-settings: '{odl-global-settings}'
154
155     postbuilders:
156         - jacoco-nojava-workaround
157
158     publishers:
159         
160         - email-notification:
161             email-prefix: '[persistence]'
162         - maven-deploy:
163             id: ''
164             unique-version: true
165             deploy-unstable: false
166         - jacoco-report
167
168 - job-template:
169     name: 'persistence-daily-{stream}'
170
171     # Job template for daily builders
172     #
173     # The purpose of this job template is to setup a daily/nightly
174     # builder and pushes to Sonar analysis.
175     #
176     # Required Variables:
177     #     stream:    branch with - in place of / (eg. stable-helium)
178     #     branch:    branch (eg. stable/helium)
179
180     project-type: maven
181     node: dynamic_verify
182     jdk: '{jdk}'
183
184     logrotate:
185         daysToKeep: '{build-days-to-keep}'
186         numToKeep: '{build-num-to-keep}'
187         artifactDaysToKeep: '{build-artifact-days-to-keep}'
188         artifactNumToKeep: '{build-artifact-num-to-keep}'
189
190     parameters:
191         - project-parameter:
192             project: '{project}'
193
194     scm:
195         - git-scm:
196             credentials-id: '{ssh-credentials}'
197             refspec: ''
198             branch: '{branch}'
199
200     wrappers:
201         - build-timeout
202         - ssh-agent-credentials:
203             user: '{ssh-credentials}'
204
205     triggers:
206         - timed: 'H H * * *'
207
208     prebuilders:
209         - wipe-org-opendaylight-repo
210
211     maven:
212         maven-name: '{mvn32}'
213         root-pom: 'pom.xml'
214         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
215         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
216         settings: '{persistence-settings}'
217         global-settings: '{odl-global-settings}'
218
219     postbuilders:
220         - jacoco-nojava-workaround
221
222     publishers:
223         - email-notification:
224             email-prefix: '[persistence]'
225         - jacoco-report
226
227 - job-template:
228     name: 'persistence-integration-{stream}'
229     disabled: false
230
231     # Job template for ODL merge jobs
232     #
233     # The purpose of this job template is to setup a ODL merge job
234     # and deploy artifacts to Nexus.
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             user: '{ssh-credentials}'
264
265     triggers:
266         - reverse:
267             jobs: 'odlparent-merge-{stream}'
268             result: 'success'
269
270     prebuilders:
271         - wipe-org-opendaylight-repo
272
273     maven:
274         maven-name: '{mvn32}'
275         root-pom: 'pom.xml'
276         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  source:jar javadoc:jar'
277         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
278         settings: '{persistence-settings}'
279         global-settings: '{odl-global-settings}'
280
281     postbuilders:
282         - jacoco-nojava-workaround
283
284     publishers:
285         - email-notification:
286             email-prefix: '[persistence] [odlparent]'
287         - jacoco-report
288
289 - job-template:
290     name: 'persistence-sonar'
291
292     project-type: maven
293     node: dynamic_verify
294     jdk: '{jdk}'
295
296     logrotate:
297         daysToKeep: '7'
298         numToKeep: '10'
299         artifactDaysToKeep: '1'
300         artifactNumToKeep: '1'
301
302     parameters:
303         - project-parameter:
304             project: '{project}'
305
306     scm:
307         - git-scm:
308             credentials-id: '{ssh-credentials}'
309             refspec: ''
310             branch: 'master'
311
312     wrappers:
313         - build-timeout
314         - ssh-agent-credentials:
315             user: '{ssh-credentials}'
316
317     triggers:
318         - timed: 'H H * * *'
319
320     maven:
321         maven-name: '{mvn32}'
322         root-pom: 'pom.xml'
323         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
324         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
325         settings: '{persistence-settings}'
326         global-settings: '{odl-global-settings}'
327
328     postbuilders:
329         - jacoco-nojava-workaround
330
331     publishers:
332         - sonar:
333             language: 'java'
334             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
335         - email-notification:
336             email-prefix: '[persistence]'
337         - jacoco-report
338