Merge "Add a job for netvirt SFC CSIT"
[releng/builder.git] / jjb / packaging / packaging.yaml
1 ---
2 - project:
3     name: packaging
4     project-name: packaging
5
6     jobs:
7       - '{project-name}-verify-python-{stream}'
8       - 'packaging-build-rpm-{stream}'
9       - 'packaging-build-rpm-snap-{stream}'
10       - 'packaging-build-deb-{stream}'
11       - 'packaging-test-rpm-{stream}'
12       - 'packaging-test-deb-{stream}'
13       - 'packaging-test-puppet-{stream}'
14       - 'packaging-test-ansible-rpm-{stream}'
15       - 'packaging-test-ansible-deb-{stream}'
16
17     project: 'integration/packaging'
18
19     stream:
20       - master:
21           branch: 'master'
22
23 - job-template:
24     name: 'packaging-test-puppet-{stream}'
25
26     node: centos7-docker-2c-4g
27
28     project-type: freestyle
29
30     properties:
31       - opendaylight-infra-properties:
32           build-days-to-keep: 7
33
34     parameters:
35       - opendaylight-infra-parameters:
36           os-cloud: '{os-cloud}'
37           project: '{project}'
38           branch: '{branch}'
39           refspec: 'refs/heads/{branch}'
40           artifacts: '{archive-artifacts}'
41
42     scm:
43       - integration-gerrit-scm:
44           basedir: 'packaging'
45           refspec: '$GERRIT_REFSPEC'
46           branch: 'master'
47
48     wrappers:
49       - opendaylight-infra-wrappers:
50           build-timeout: '{build-timeout}'
51
52     builders:
53       - shell: !include-raw: include-raw-test-puppet.sh
54
55     triggers:
56       - timed: '@daily'
57
58 - job-template:
59     name: 'packaging-build-rpm-{stream}'
60
61     node: centos7-java-builder-2c-4g
62
63     project-type: freestyle
64
65     properties:
66       - opendaylight-infra-properties:
67           build-days-to-keep: 7
68
69     parameters:
70       - opendaylight-infra-parameters:
71           os-cloud: '{os-cloud}'
72           project: '{project}'
73           branch: '{branch}'
74           refspec: 'refs/heads/{branch}'
75           artifacts: '{archive-artifacts}'
76       - string:
77           name: DOWNLOAD_URL
78           # yamllint disable-line rule:line-length
79           default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.5.3-Boron-SR3/distribution-karaf-0.5.3-Boron-SR3.tar.gz'
80           description: 'URL to ODL tarball artifact to repackage into RPM'
81       - string:
82           name: CHANGELOG_NAME
83           default: 'Jenkins'
84           description: 'Name of person who defined RPM'
85       - string:
86           name: CHANGELOG_EMAIL
87           default: 'jenkins-donotreply@opendaylight.org'
88           description: 'Email of person who defined RPM'
89
90     scm:
91       - integration-gerrit-scm:
92           basedir: 'packaging'
93           refspec: '$GERRIT_REFSPEC'
94           branch: 'master'
95
96     wrappers:
97       - opendaylight-infra-wrappers:
98           build-timeout: '{build-timeout}'
99
100     builders:
101       - shell: !include-raw: include-raw-build-rpm.sh
102
103     publishers:
104       - archive-artifacts:
105           artifacts: '**/*.rpm'
106
107 - job-template:
108     name: 'packaging-build-rpm-snap-{stream}'
109
110     node: centos7-java-builder-2c-4g
111
112     project-type: freestyle
113
114     properties:
115       - opendaylight-infra-properties:
116           build-days-to-keep: 7
117
118     parameters:
119       - opendaylight-infra-parameters:
120           os-cloud: '{os-cloud}'
121           project: '{project}'
122           branch: '{branch}'
123           refspec: 'refs/heads/{branch}'
124           artifacts: '{archive-artifacts}'
125       - string:
126           name: VERSION_MAJOR
127           default: '6'
128           description: 'OpenDaylight major (element) version number to build'
129       - string:
130           name: VERSION_MINOR
131           default: '0'
132           description: 'OpenDaylight minor (SR) version number to build'
133       - string:
134           name: CHANGELOG_NAME
135           default: 'Jenkins'
136           description: 'Name of person who defined RPM'
137       - string:
138           name: CHANGELOG_EMAIL
139           default: 'jenkins-donotreply@opendaylight.org'
140           description: 'Email of person who defined RPM'
141
142     scm:
143       - integration-gerrit-scm:
144           basedir: 'packaging'
145           refspec: '$GERRIT_REFSPEC'
146           branch: 'master'
147
148     wrappers:
149       - opendaylight-infra-wrappers:
150           build-timeout: '{build-timeout}'
151
152     builders:
153       - shell: !include-raw: include-raw-build-rpm-snap.sh
154
155     publishers:
156       - archive-artifacts:
157           artifacts: '**/*.rpm'
158
159 - job-template:
160     name: 'packaging-test-rpm-{stream}'
161
162     node: centos7-java-builder-2c-4g
163
164     parameters:
165       - opendaylight-infra-parameters:
166           os-cloud: '{os-cloud}'
167           project: '{project}'
168           branch: '{branch}'
169           refspec: 'refs/heads/{branch}'
170           artifacts: '{archive-artifacts}'
171       - string:
172           name: URL
173           # yamllint disable-line rule:line-length
174           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-52-release.repo'
175           description: 'Link to .repo or .rpm file'
176
177     scm:
178       - integration-gerrit-scm:
179           basedir: 'packaging'
180           refspec: '$GERRIT_REFSPEC'
181           branch: 'master'
182
183     wrappers:
184       - opendaylight-infra-wrappers:
185           build-timeout: '{build-timeout}'
186
187     builders:
188       - shell: !include-raw: include-raw-test-rpm.sh
189       - shell: !include-raw: include-raw-test-karaf.expect
190
191     publishers:
192       - archive-artifacts:
193           artifacts: '**'
194
195 - job-template:
196     name: 'packaging-test-deb-{stream}'
197
198     node: ubuntu1604-mininet-ovs-25-2c-4g
199
200     parameters:
201       - opendaylight-infra-parameters:
202           os-cloud: '{os-cloud}'
203           project: '{project}'
204           branch: '{branch}'
205           refspec: 'refs/heads/{branch}'
206           artifacts: '{archive-artifacts}'
207       - string:
208           name: URL
209           # yamllint disable-line rule:line-length
210           default: 'http://download.opensuse.org/repositories/home:/akshitajha/xUbuntu_16.04/all/opendaylight_5.0.0-1_all.deb'
211           description: 'Link to .deb file'
212       - string:
213           name: REPO_FILE
214           default: 'ppa:odl-team/boron'
215           description: 'Name of the PPA repository'
216
217     scm:
218       - integration-gerrit-scm:
219           basedir: 'packaging'
220           refspec: '$GERRIT_REFSPEC'
221           branch: 'master'
222
223     wrappers:
224       - opendaylight-infra-wrappers:
225           build-timeout: '{build-timeout}'
226
227     builders:
228       - shell: !include-raw: include-raw-test-deb.sh
229       - shell: !include-raw: include-raw-test-karaf.expect
230
231     publishers:
232       - archive-artifacts:
233           artifacts: '**'
234
235 - job-template:
236     name: 'packaging-test-ansible-rpm-{stream}'
237
238     node: centos7-java-builder-2c-4g
239
240     project-type: freestyle
241
242     properties:
243       - opendaylight-infra-properties:
244           build-days-to-keep: 7
245
246     parameters:
247       - opendaylight-infra-parameters:
248           os-cloud: '{os-cloud}'
249           project: '{project}'
250           branch: '{branch}'
251           refspec: 'refs/heads/{branch}'
252           artifacts: '{archive-artifacts}'
253
254     scm:
255       - integration-gerrit-scm:
256           basedir: 'packaging'
257           refspec: '$GERRIT_REFSPEC'
258           branch: 'master'
259
260     wrappers:
261       - opendaylight-infra-wrappers:
262           build-timeout: '{build-timeout}'
263
264     builders:
265       - shell: !include-raw: include-raw-test-ansible-rpm.sh
266
267     triggers:
268       - timed: '@daily'
269
270
271 - job-template:
272     name: 'packaging-build-deb-{stream}'
273
274     node: ubuntu1404-mininet-2c-2g
275
276     project-type: freestyle
277
278     properties:
279       - opendaylight-infra-properties:
280           build-days-to-keep: 7
281
282     parameters:
283       - opendaylight-infra-parameters:
284           os-cloud: '{os-cloud}'
285           project: '{project}'
286           branch: '{branch}'
287           refspec: 'refs/heads/{branch}'
288           artifacts: '{archive-artifacts}'
289       - string:
290           name: VERSION_MAJOR
291           default: '5'
292           description: 'OpenDaylight major (element) version number to build'
293       - string:
294           name: VERSION_MINOR
295           default: '3'
296           description: 'OpenDaylight minor (SR) version number to build'
297       - string:
298           name: VERSION_PATCH
299           default: '0'
300           description: 'OpenDaylight patch version to build'
301       - string:
302           name: PKG_VERSION
303           default: '1'
304           description: 'Deb version for the given ODL major.minor.patch'
305       - string:
306           name: SYSD_COMMIT
307           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
308           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
309       - string:
310           name: CODENAME
311           default: 'Boron-SR3'
312           description: 'Elemental codename for the ODL release, including SR if applicable'
313       - string:
314           name: DOWNLOAD_URL
315           # yamllint disable-line rule:line-length
316           default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.5.3-Boron-SR3/distribution-karaf-0.5.3-Boron-SR3.tar.gz'
317           description: 'URL to ODL tarball artifact to repackage into .deb'
318       - string:
319           name: JAVA_VERSION
320           default: '8'
321           description: Java dependency for the ODL release
322       - string:
323           name: CHANGELOG_DATE
324           default: 'Mon, 1 Aug 2016'
325           description: 'Date this .deb was defined'
326       - string:
327           name: CHANGELOG_TIME
328           default: '17:48:42 +0530'
329           description: 'Time this .deb was defined'
330       - string:
331           name: CHANGELOG_NAME
332           default: 'Jenkins'
333           description: 'Name of person who defined .deb'
334       - string:
335           name: CHANGELOG_EMAIL
336           default: 'jenkins-donotreply@opendaylight.org'
337           description: 'Email of person who defined .deb'
338
339     scm:
340       - integration-gerrit-scm:
341           basedir: 'packaging'
342           refspec: '$GERRIT_REFSPEC'
343           branch: 'master'
344
345     wrappers:
346       - opendaylight-infra-wrappers:
347           build-timeout: '{build-timeout}'
348
349     builders:
350       - shell: !include-raw: include-raw-build-deb.sh
351
352     publishers:
353       - archive-artifacts:
354           artifacts: 'packaging/deb/opendaylight/*.deb'
355
356
357 - job-template:
358     name: 'packaging-test-ansible-deb-{stream}'
359
360     node: ubuntu1604-mininet-ovs-25-2c-4g
361
362     project-type: freestyle
363
364     properties:
365       - opendaylight-infra-properties:
366           build-days-to-keep: 7
367
368     parameters:
369       - opendaylight-infra-parameters:
370           os-cloud: '{os-cloud}'
371           project: '{project}'
372           branch: '{branch}'
373           refspec: 'refs/heads/{branch}'
374           artifacts: '{archive-artifacts}'
375
376     scm:
377       - integration-gerrit-scm:
378           basedir: 'packaging'
379           refspec: '$GERRIT_REFSPEC'
380           branch: 'master'
381
382     wrappers:
383       - opendaylight-infra-wrappers:
384           build-timeout: '{build-timeout}'
385
386     builders:
387       - shell: !include-raw: include-raw-test-ansible-deb.sh
388
389     triggers:
390       - timed: '@daily'