Daily build-rpm-snap job
[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     triggers:
124       - timed: '@daily'
125
126 - job-template:
127     name: 'packaging-test-rpm-{stream}'
128
129     node: centos7-java-builder-2c-4g
130
131     parameters:
132       - opendaylight-infra-parameters:
133           os-cloud: '{os-cloud}'
134           project: '{project}'
135           branch: '{branch}'
136           refspec: 'refs/heads/{branch}'
137           artifacts: '{archive-artifacts}'
138       - string:
139           name: URL
140           # yamllint disable-line rule:line-length
141           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-52-release.repo'
142           description: 'Link to .repo or .rpm file'
143
144     scm:
145       - integration-gerrit-scm:
146           basedir: 'packaging'
147           refspec: '$GERRIT_REFSPEC'
148           branch: 'master'
149
150     wrappers:
151       - opendaylight-infra-wrappers:
152           build-timeout: '{build-timeout}'
153
154     builders:
155       - shell: !include-raw: include-raw-test-rpm.sh
156       - shell: !include-raw: include-raw-test-karaf.expect
157
158     publishers:
159       - archive-artifacts:
160           artifacts: '**'
161
162 - job-template:
163     name: 'packaging-test-deb-{stream}'
164
165     node: ubuntu1604-mininet-ovs-25-2c-4g
166
167     parameters:
168       - opendaylight-infra-parameters:
169           os-cloud: '{os-cloud}'
170           project: '{project}'
171           branch: '{branch}'
172           refspec: 'refs/heads/{branch}'
173           artifacts: '{archive-artifacts}'
174       - string:
175           name: PACKAGE
176           # yamllint disable-line rule:line-length
177           default: 'https://launchpad.net/~odl-team/+archive/ubuntu/carbon/+files/opendaylight_6.0.0-1_all.deb'
178           description: 'Link to .deb file or name of custom PPA repo (ppa:odl-team/carbon)'
179
180     scm:
181       - integration-gerrit-scm:
182           basedir: 'packaging'
183           refspec: '$GERRIT_REFSPEC'
184           branch: 'master'
185
186     wrappers:
187       - opendaylight-infra-wrappers:
188           build-timeout: '{build-timeout}'
189
190     builders:
191       - shell: !include-raw: include-raw-test-deb.sh
192       - shell: !include-raw: include-raw-test-karaf.expect
193
194     publishers:
195       - archive-artifacts:
196           artifacts: '**'
197
198 - job-template:
199     name: 'packaging-test-ansible-rpm-{stream}'
200
201     node: centos7-java-builder-2c-4g
202
203     project-type: freestyle
204
205     properties:
206       - opendaylight-infra-properties:
207           build-days-to-keep: 7
208
209     parameters:
210       - opendaylight-infra-parameters:
211           os-cloud: '{os-cloud}'
212           project: '{project}'
213           branch: '{branch}'
214           refspec: 'refs/heads/{branch}'
215           artifacts: '{archive-artifacts}'
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-ansible-rpm.sh
229
230     triggers:
231       - timed: '@daily'
232
233
234 - job-template:
235     name: 'packaging-build-deb-{stream}'
236
237     node: ubuntu1404-mininet-2c-2g
238
239     project-type: freestyle
240
241     properties:
242       - opendaylight-infra-properties:
243           build-days-to-keep: 7
244
245     parameters:
246       - opendaylight-infra-parameters:
247           os-cloud: '{os-cloud}'
248           project: '{project}'
249           branch: '{branch}'
250           refspec: 'refs/heads/{branch}'
251           artifacts: '{archive-artifacts}'
252       - string:
253           name: VERSION_MAJOR
254           default: '5'
255           description: 'OpenDaylight major (element) version number to build'
256       - string:
257           name: VERSION_MINOR
258           default: '3'
259           description: 'OpenDaylight minor (SR) version number to build'
260       - string:
261           name: VERSION_PATCH
262           default: '0'
263           description: 'OpenDaylight patch version to build'
264       - string:
265           name: PKG_VERSION
266           default: '1'
267           description: 'Deb version for the given ODL major.minor.patch'
268       - string:
269           name: SYSD_COMMIT
270           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
271           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
272       - string:
273           name: CODENAME
274           default: 'Boron-SR3'
275           description: 'Elemental codename for the ODL release, including SR if applicable'
276       - string:
277           name: DOWNLOAD_URL
278           # yamllint disable-line rule:line-length
279           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'
280           description: 'URL to ODL tarball artifact to repackage into .deb'
281       - string:
282           name: JAVA_VERSION
283           default: '8'
284           description: Java dependency for the ODL release
285       - string:
286           name: CHANGELOG_DATE
287           default: 'Mon, 1 Aug 2016'
288           description: 'Date this .deb was defined'
289       - string:
290           name: CHANGELOG_TIME
291           default: '17:48:42 +0530'
292           description: 'Time this .deb was defined'
293       - string:
294           name: CHANGELOG_NAME
295           default: 'Jenkins'
296           description: 'Name of person who defined .deb'
297       - string:
298           name: CHANGELOG_EMAIL
299           default: 'jenkins-donotreply@opendaylight.org'
300           description: 'Email of person who defined .deb'
301
302     scm:
303       - integration-gerrit-scm:
304           basedir: 'packaging'
305           refspec: '$GERRIT_REFSPEC'
306           branch: 'master'
307
308     wrappers:
309       - opendaylight-infra-wrappers:
310           build-timeout: '{build-timeout}'
311
312     builders:
313       - shell: !include-raw: include-raw-build-deb.sh
314
315     publishers:
316       - archive-artifacts:
317           artifacts: 'packaging/deb/opendaylight/*.deb'
318
319
320 - job-template:
321     name: 'packaging-test-ansible-deb-{stream}'
322
323     node: ubuntu1604-mininet-ovs-25-2c-4g
324
325     project-type: freestyle
326
327     properties:
328       - opendaylight-infra-properties:
329           build-days-to-keep: 7
330
331     parameters:
332       - opendaylight-infra-parameters:
333           os-cloud: '{os-cloud}'
334           project: '{project}'
335           branch: '{branch}'
336           refspec: 'refs/heads/{branch}'
337           artifacts: '{archive-artifacts}'
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-test-ansible-deb.sh
351
352     triggers:
353       - timed: '@daily'