Merge "Remove mitaka logic from devstack deploy logic"
[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: URL
173           # yamllint disable-line rule:line-length
174           default: 'http://download.opensuse.org/repositories/home:/akshitajha/xUbuntu_16.04/all/opendaylight_5.0.0-1_all.deb'
175           description: 'Link to .deb file'
176       - string:
177           name: REPO_FILE
178           default: 'ppa:odl-team/boron'
179           description: 'Name of the PPA repository'
180
181     scm:
182       - integration-gerrit-scm:
183           basedir: 'packaging'
184           refspec: '$GERRIT_REFSPEC'
185           branch: 'master'
186
187     wrappers:
188       - opendaylight-infra-wrappers:
189           build-timeout: '{build-timeout}'
190
191     builders:
192       - shell: !include-raw: include-raw-test-deb.sh
193       - shell: !include-raw: include-raw-test-karaf.expect
194
195     publishers:
196       - archive-artifacts:
197           artifacts: '**'
198
199 - job-template:
200     name: 'packaging-test-ansible-rpm-{stream}'
201
202     node: centos7-java-builder-2c-4g
203
204     project-type: freestyle
205
206     properties:
207       - opendaylight-infra-properties:
208           build-days-to-keep: 7
209
210     parameters:
211       - opendaylight-infra-parameters:
212           os-cloud: '{os-cloud}'
213           project: '{project}'
214           branch: '{branch}'
215           refspec: 'refs/heads/{branch}'
216           artifacts: '{archive-artifacts}'
217
218     scm:
219       - integration-gerrit-scm:
220           basedir: 'packaging'
221           refspec: '$GERRIT_REFSPEC'
222           branch: 'master'
223
224     wrappers:
225       - opendaylight-infra-wrappers:
226           build-timeout: '{build-timeout}'
227
228     builders:
229       - shell: !include-raw: include-raw-test-ansible-rpm.sh
230
231     triggers:
232       - timed: '@daily'
233
234
235 - job-template:
236     name: 'packaging-build-deb-{stream}'
237
238     node: ubuntu1404-mininet-2c-2g
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       - string:
254           name: VERSION_MAJOR
255           default: '5'
256           description: 'OpenDaylight major (element) version number to build'
257       - string:
258           name: VERSION_MINOR
259           default: '3'
260           description: 'OpenDaylight minor (SR) version number to build'
261       - string:
262           name: VERSION_PATCH
263           default: '0'
264           description: 'OpenDaylight patch version to build'
265       - string:
266           name: PKG_VERSION
267           default: '1'
268           description: 'Deb version for the given ODL major.minor.patch'
269       - string:
270           name: SYSD_COMMIT
271           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
272           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
273       - string:
274           name: CODENAME
275           default: 'Boron-SR3'
276           description: 'Elemental codename for the ODL release, including SR if applicable'
277       - string:
278           name: DOWNLOAD_URL
279           # yamllint disable-line rule:line-length
280           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'
281           description: 'URL to ODL tarball artifact to repackage into .deb'
282       - string:
283           name: JAVA_VERSION
284           default: '8'
285           description: Java dependency for the ODL release
286       - string:
287           name: CHANGELOG_DATE
288           default: 'Mon, 1 Aug 2016'
289           description: 'Date this .deb was defined'
290       - string:
291           name: CHANGELOG_TIME
292           default: '17:48:42 +0530'
293           description: 'Time this .deb was defined'
294       - string:
295           name: CHANGELOG_NAME
296           default: 'Jenkins'
297           description: 'Name of person who defined .deb'
298       - string:
299           name: CHANGELOG_EMAIL
300           default: 'jenkins-donotreply@opendaylight.org'
301           description: 'Email of person who defined .deb'
302
303     scm:
304       - integration-gerrit-scm:
305           basedir: 'packaging'
306           refspec: '$GERRIT_REFSPEC'
307           branch: 'master'
308
309     wrappers:
310       - opendaylight-infra-wrappers:
311           build-timeout: '{build-timeout}'
312
313     builders:
314       - shell: !include-raw: include-raw-build-deb.sh
315
316     publishers:
317       - archive-artifacts:
318           artifacts: 'packaging/deb/opendaylight/*.deb'
319
320
321 - job-template:
322     name: 'packaging-test-ansible-deb-{stream}'
323
324     node: ubuntu1604-mininet-ovs-25-2c-4g
325
326     project-type: freestyle
327
328     properties:
329       - opendaylight-infra-properties:
330           build-days-to-keep: 7
331
332     parameters:
333       - opendaylight-infra-parameters:
334           os-cloud: '{os-cloud}'
335           project: '{project}'
336           branch: '{branch}'
337           refspec: 'refs/heads/{branch}'
338           artifacts: '{archive-artifacts}'
339
340     scm:
341       - integration-gerrit-scm:
342           basedir: 'packaging'
343           refspec: '$GERRIT_REFSPEC'
344           branch: 'master'
345
346     wrappers:
347       - opendaylight-infra-wrappers:
348           build-timeout: '{build-timeout}'
349
350     builders:
351       - shell: !include-raw: include-raw-test-ansible-deb.sh
352
353     triggers:
354       - timed: '@daily'