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