Merge "Enable batch mode and disable transfer logs"
[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_DATE
83           default: 'Sun Aug 25 1991'
84           description: 'Date this RPM was defined'
85       - string:
86           name: CHANGELOG_NAME
87           default: 'Jenkins'
88           description: 'Name of person who defined RPM'
89       - string:
90           name: CHANGELOG_EMAIL
91           default: 'jenkins-donotreply@opendaylight.org'
92           description: 'Email of person who defined RPM'
93
94     scm:
95       - integration-gerrit-scm:
96           basedir: 'packaging'
97           refspec: '$GERRIT_REFSPEC'
98           branch: 'master'
99
100     wrappers:
101       - opendaylight-infra-wrappers:
102           build-timeout: '{build-timeout}'
103
104     builders:
105       - shell: !include-raw: include-raw-build-rpm.sh
106
107     publishers:
108       - archive-artifacts:
109           artifacts: '**/*.rpm'
110
111 - job-template:
112     name: 'packaging-build-rpm-snap-{stream}'
113
114     node: centos7-java-builder-2c-4g
115
116     project-type: freestyle
117
118     properties:
119       - opendaylight-infra-properties:
120           build-days-to-keep: 7
121
122     parameters:
123       - opendaylight-infra-parameters:
124           os-cloud: '{os-cloud}'
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: CHANGELOG_NAME
139           default: 'Jenkins'
140           description: 'Name of person who defined RPM'
141       - string:
142           name: CHANGELOG_EMAIL
143           default: 'jenkins-donotreply@opendaylight.org'
144           description: 'Email of person who defined RPM'
145
146     scm:
147       - integration-gerrit-scm:
148           basedir: 'packaging'
149           refspec: '$GERRIT_REFSPEC'
150           branch: 'master'
151
152     wrappers:
153       - opendaylight-infra-wrappers:
154           build-timeout: '{build-timeout}'
155
156     builders:
157       - shell: !include-raw: include-raw-build-rpm-snap.sh
158
159     publishers:
160       - archive-artifacts:
161           artifacts: '**/*.rpm'
162
163 - job-template:
164     name: 'packaging-test-rpm-{stream}'
165
166     node: centos7-java-builder-2c-4g
167
168     parameters:
169       - opendaylight-infra-parameters:
170           os-cloud: '{os-cloud}'
171           project: '{project}'
172           branch: '{branch}'
173           refspec: 'refs/heads/{branch}'
174           artifacts: '{archive-artifacts}'
175       - string:
176           name: URL
177           # yamllint disable-line rule:line-length
178           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-52-release.repo'
179           description: 'Link to .repo or .rpm file'
180       - string:
181           name: REPO_FILE
182           default: '/etc/yum.repos.d/opendaylight-52-release.repo'
183           description: 'Name of the .repo file'
184
185     scm:
186       - integration-gerrit-scm:
187           basedir: 'packaging'
188           refspec: '$GERRIT_REFSPEC'
189           branch: 'master'
190
191     wrappers:
192       - opendaylight-infra-wrappers:
193           build-timeout: '{build-timeout}'
194
195     builders:
196       - shell: !include-raw: include-raw-test-rpm.sh
197       - shell: !include-raw: include-raw-test-karaf.expect
198
199     publishers:
200       - archive-artifacts:
201           artifacts: '**'
202
203 - job-template:
204     name: 'packaging-test-deb-{stream}'
205
206     node: ubuntu1604-mininet-ovs-25-2c-4g
207
208     parameters:
209       - opendaylight-infra-parameters:
210           os-cloud: '{os-cloud}'
211           project: '{project}'
212           branch: '{branch}'
213           refspec: 'refs/heads/{branch}'
214           artifacts: '{archive-artifacts}'
215       - string:
216           name: URL
217           # yamllint disable-line rule:line-length
218           default: 'http://download.opensuse.org/repositories/home:/akshitajha/xUbuntu_16.04/all/opendaylight_5.0.0-1_all.deb'
219           description: 'Link to .deb file'
220       - string:
221           name: REPO_FILE
222           default: 'ppa:odl-team/boron'
223           description: 'Name of the PPA repository'
224
225     scm:
226       - integration-gerrit-scm:
227           basedir: 'packaging'
228           refspec: '$GERRIT_REFSPEC'
229           branch: 'master'
230
231     wrappers:
232       - opendaylight-infra-wrappers:
233           build-timeout: '{build-timeout}'
234
235     builders:
236       - shell: !include-raw: include-raw-test-deb.sh
237       - shell: !include-raw: include-raw-test-karaf.expect
238
239     publishers:
240       - archive-artifacts:
241           artifacts: '**'
242
243 - job-template:
244     name: 'packaging-test-ansible-rpm-{stream}'
245
246     node: centos7-java-builder-2c-4g
247
248     project-type: freestyle
249
250     properties:
251       - opendaylight-infra-properties:
252           build-days-to-keep: 7
253
254     parameters:
255       - opendaylight-infra-parameters:
256           os-cloud: '{os-cloud}'
257           project: '{project}'
258           branch: '{branch}'
259           refspec: 'refs/heads/{branch}'
260           artifacts: '{archive-artifacts}'
261
262     scm:
263       - integration-gerrit-scm:
264           basedir: 'packaging'
265           refspec: '$GERRIT_REFSPEC'
266           branch: 'master'
267
268     wrappers:
269       - opendaylight-infra-wrappers:
270           build-timeout: '{build-timeout}'
271
272     builders:
273       - shell: !include-raw: include-raw-test-ansible-rpm.sh
274
275     triggers:
276       - timed: '@daily'
277
278
279 - job-template:
280     name: 'packaging-build-deb-{stream}'
281
282     node: ubuntu1404-mininet-2c-2g
283
284     project-type: freestyle
285
286     properties:
287       - opendaylight-infra-properties:
288           build-days-to-keep: 7
289
290     parameters:
291       - opendaylight-infra-parameters:
292           os-cloud: '{os-cloud}'
293           project: '{project}'
294           branch: '{branch}'
295           refspec: 'refs/heads/{branch}'
296           artifacts: '{archive-artifacts}'
297       - string:
298           name: VERSION_MAJOR
299           default: '5'
300           description: 'OpenDaylight major (element) version number to build'
301       - string:
302           name: VERSION_MINOR
303           default: '2'
304           description: 'OpenDaylight minor (SR) version number to build'
305       - string:
306           name: VERSION_PATCH
307           default: '0'
308           description: 'OpenDaylight patch version to build'
309       - string:
310           name: PKG_VERSION
311           default: '1'
312           description: 'Deb version for the given ODL major.minor.patch'
313       - string:
314           name: SYSD_COMMIT
315           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
316           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
317       - string:
318           name: CODENAME
319           default: 'Boron-SR2'
320           description: 'Elemental codename for the ODL release, including SR if applicable'
321       - string:
322           name: DOWNLOAD_URL
323           # yamllint disable-line rule:line-length
324           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'
325           description: 'URL to ODL tarball artifact to repackage into .deb'
326       - string:
327           name: JAVA_VERSION
328           default: '8'
329           description: Java dependency for the ODL release
330       - string:
331           name: CHANGELOG_DATE
332           default: 'Mon, 1 Aug 2016'
333           description: 'Date this .deb was defined'
334       - string:
335           name: CHANGELOG_TIME
336           default: '17:48:42 +0530'
337           description: 'Time this .deb was defined'
338       - string:
339           name: CHANGELOG_NAME
340           default: 'Jenkins'
341           description: 'Name of person who defined .deb'
342       - string:
343           name: CHANGELOG_EMAIL
344           default: 'jenkins-donotreply@opendaylight.org'
345           description: 'Email of person who defined .deb'
346
347     scm:
348       - integration-gerrit-scm:
349           basedir: 'packaging'
350           refspec: '$GERRIT_REFSPEC'
351           branch: 'master'
352
353     wrappers:
354       - opendaylight-infra-wrappers:
355           build-timeout: '{build-timeout}'
356
357     builders:
358       - shell: !include-raw: include-raw-build-deb.sh
359
360     publishers:
361       - archive-artifacts:
362           artifacts: 'packaging/deb/opendaylight/*.deb'
363
364
365 - job-template:
366     name: 'packaging-test-ansible-deb-{stream}'
367
368     node: ubuntu1604-mininet-ovs-25-2c-4g
369
370     project-type: freestyle
371
372     properties:
373       - opendaylight-infra-properties:
374           build-days-to-keep: 7
375
376     parameters:
377       - opendaylight-infra-parameters:
378           os-cloud: '{os-cloud}'
379           project: '{project}'
380           branch: '{branch}'
381           refspec: 'refs/heads/{branch}'
382           artifacts: '{archive-artifacts}'
383
384     scm:
385       - integration-gerrit-scm:
386           basedir: 'packaging'
387           refspec: '$GERRIT_REFSPEC'
388           branch: 'master'
389
390     wrappers:
391       - opendaylight-infra-wrappers:
392           build-timeout: '{build-timeout}'
393
394     builders:
395       - shell: !include-raw: include-raw-test-ansible-deb.sh
396
397     triggers:
398       - timed: '@daily'