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