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