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