Find RPM repo file name automatically, rm param
[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-deb-{stream}'
13       - 'packaging-test-puppet-{stream}'
14       - 'packaging-test-ansible-rpm-{stream}'
15       - 'packaging-test-ansible-deb-{stream}'
16
17     project: 'integration/packaging'
18
19     stream:
20       - master:
21           branch: 'master'
22
23 - job-template:
24     name: 'packaging-test-puppet-{stream}'
25
26     node: centos7-docker-2c-4g
27
28     project-type: freestyle
29
30     properties:
31       - opendaylight-infra-properties:
32           build-days-to-keep: 7
33
34     parameters:
35       - opendaylight-infra-parameters:
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           project: '{project}'
71           branch: '{branch}'
72           refspec: 'refs/heads/{branch}'
73           artifacts: '{archive-artifacts}'
74       - string:
75           name: DOWNLOAD_URL
76           # yamllint disable-line rule:line-length
77           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'
78           description: 'URL to ODL tarball artifact to repackage into RPM'
79       - string:
80           name: CHANGELOG_DATE
81           default: 'Sun Aug 25 1991'
82           description: 'Date this RPM was defined'
83       - string:
84           name: CHANGELOG_NAME
85           default: 'Jenkins'
86           description: 'Name of person who defined RPM'
87       - string:
88           name: CHANGELOG_EMAIL
89           default: 'jenkins-donotreply@opendaylight.org'
90           description: 'Email of person who defined RPM'
91
92     scm:
93       - integration-gerrit-scm:
94           basedir: 'packaging'
95           refspec: '$GERRIT_REFSPEC'
96           branch: 'master'
97
98     wrappers:
99       - opendaylight-infra-wrappers:
100           build-timeout: '{build-timeout}'
101
102     builders:
103       - shell: !include-raw: include-raw-build-rpm.sh
104
105     publishers:
106       - archive-artifacts:
107           artifacts: '**/*.rpm'
108
109 - job-template:
110     name: 'packaging-build-rpm-snap-{stream}'
111
112     node: centos7-java-builder-2c-4g
113
114     project-type: freestyle
115
116     properties:
117       - opendaylight-infra-properties:
118           build-days-to-keep: 7
119
120     parameters:
121       - opendaylight-infra-parameters:
122           project: '{project}'
123           branch: '{branch}'
124           refspec: 'refs/heads/{branch}'
125           artifacts: '{archive-artifacts}'
126       - string:
127           name: VERSION_MAJOR
128           default: '6'
129           description: 'OpenDaylight major (element) version number to build'
130       - string:
131           name: VERSION_MINOR
132           default: '0'
133           description: 'OpenDaylight minor (SR) version number to build'
134       - string:
135           name: CHANGELOG_NAME
136           default: 'Jenkins'
137           description: 'Name of person who defined RPM'
138       - string:
139           name: CHANGELOG_EMAIL
140           default: 'jenkins-donotreply@opendaylight.org'
141           description: 'Email of person who defined RPM'
142
143     scm:
144       - integration-gerrit-scm:
145           basedir: 'packaging'
146           refspec: '$GERRIT_REFSPEC'
147           branch: 'master'
148
149     wrappers:
150       - opendaylight-infra-wrappers:
151           build-timeout: '{build-timeout}'
152
153     builders:
154       - shell: !include-raw: include-raw-build-rpm-snap.sh
155
156     publishers:
157       - archive-artifacts:
158           artifacts: '**/*.rpm'
159
160 - job-template:
161     name: 'packaging-test-rpm-{stream}'
162
163     node: centos7-java-builder-2c-4g
164
165     parameters:
166       - opendaylight-infra-parameters:
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: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-52-release.repo'
175           description: 'Link to .repo or .rpm file'
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-rpm.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-deb-{stream}'
197
198     node: ubuntu1604-mininet-ovs-25-2c-4g
199
200     parameters:
201       - opendaylight-infra-parameters:
202           project: '{project}'
203           branch: '{branch}'
204           refspec: 'refs/heads/{branch}'
205           artifacts: '{archive-artifacts}'
206       - string:
207           name: URL
208           # yamllint disable-line rule:line-length
209           default: 'http://download.opensuse.org/repositories/home:/akshitajha/xUbuntu_16.04/all/opendaylight_5.0.0-1_all.deb'
210           description: 'Link to .deb file'
211       - string:
212           name: REPO_FILE
213           default: 'ppa:odl-team/boron'
214           description: 'Name of the PPA repository'
215
216     scm:
217       - integration-gerrit-scm:
218           basedir: 'packaging'
219           refspec: '$GERRIT_REFSPEC'
220           branch: 'master'
221
222     wrappers:
223       - opendaylight-infra-wrappers:
224           build-timeout: '{build-timeout}'
225
226     builders:
227       - shell: !include-raw: include-raw-test-deb.sh
228       - shell: !include-raw: include-raw-test-karaf.expect
229
230     publishers:
231       - archive-artifacts:
232           artifacts: '**'
233
234 - job-template:
235     name: 'packaging-test-ansible-rpm-{stream}'
236
237     node: centos7-java-builder-2c-4g
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           project: '{project}'
248           branch: '{branch}'
249           refspec: 'refs/heads/{branch}'
250           artifacts: '{archive-artifacts}'
251
252     scm:
253       - integration-gerrit-scm:
254           basedir: 'packaging'
255           refspec: '$GERRIT_REFSPEC'
256           branch: 'master'
257
258     wrappers:
259       - opendaylight-infra-wrappers:
260           build-timeout: '{build-timeout}'
261
262     builders:
263       - shell: !include-raw: include-raw-test-ansible-rpm.sh
264
265     triggers:
266       - timed: '@daily'
267
268
269 - job-template:
270     name: 'packaging-build-deb-{stream}'
271
272     node: ubuntu1404-mininet-2c-2g
273
274     project-type: freestyle
275
276     properties:
277       - opendaylight-infra-properties:
278           build-days-to-keep: 7
279
280     parameters:
281       - opendaylight-infra-parameters:
282           project: '{project}'
283           branch: '{branch}'
284           refspec: 'refs/heads/{branch}'
285           artifacts: '{archive-artifacts}'
286       - string:
287           name: VERSION_MAJOR
288           default: '5'
289           description: 'OpenDaylight major (element) version number to build'
290       - string:
291           name: VERSION_MINOR
292           default: '2'
293           description: 'OpenDaylight minor (SR) version number to build'
294       - string:
295           name: VERSION_PATCH
296           default: '0'
297           description: 'OpenDaylight patch version to build'
298       - string:
299           name: PKG_VERSION
300           default: '1'
301           description: 'Deb version for the given ODL major.minor.patch'
302       - string:
303           name: SYSD_COMMIT
304           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
305           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
306       - string:
307           name: CODENAME
308           default: 'Boron-SR2'
309           description: 'Elemental codename for the ODL release, including SR if applicable'
310       - string:
311           name: DOWNLOAD_URL
312           # yamllint disable-line rule:line-length
313           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'
314           description: 'URL to ODL tarball artifact to repackage into .deb'
315       - string:
316           name: JAVA_VERSION
317           default: '8'
318           description: Java dependency for the ODL release
319       - string:
320           name: CHANGELOG_DATE
321           default: 'Mon, 1 Aug 2016'
322           description: 'Date this .deb was defined'
323       - string:
324           name: CHANGELOG_TIME
325           default: '17:48:42 +0530'
326           description: 'Time this .deb was defined'
327       - string:
328           name: CHANGELOG_NAME
329           default: 'Jenkins'
330           description: 'Name of person who defined .deb'
331       - string:
332           name: CHANGELOG_EMAIL
333           default: 'jenkins-donotreply@opendaylight.org'
334           description: 'Email of person who defined .deb'
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-build-deb.sh
348
349     publishers:
350       - archive-artifacts:
351           artifacts: 'packaging/deb/opendaylight/*.deb'
352
353
354 - job-template:
355     name: 'packaging-test-ansible-deb-{stream}'
356
357     node: ubuntu1604-mininet-ovs-25-2c-4g
358
359     project-type: freestyle
360
361     properties:
362       - opendaylight-infra-properties:
363           build-days-to-keep: 7
364
365     parameters:
366       - opendaylight-infra-parameters:
367           project: '{project}'
368           branch: '{branch}'
369           refspec: 'refs/heads/{branch}'
370           artifacts: '{archive-artifacts}'
371
372     scm:
373       - integration-gerrit-scm:
374           basedir: 'packaging'
375           refspec: '$GERRIT_REFSPEC'
376           branch: 'master'
377
378     wrappers:
379       - opendaylight-infra-wrappers:
380           build-timeout: '{build-timeout}'
381
382     builders:
383       - shell: !include-raw: include-raw-test-ansible-deb.sh
384
385     triggers:
386       - timed: '@daily'