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