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