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