b77499e766c13c1a5a699fa91b8ba07902362491
[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
14     project: 'integration/packaging'
15
16     stream:
17       - master:
18           branch: 'master'
19
20
21 - job-template:
22     name: 'packaging-build-rpm-{stream}'
23
24     node: centos7-java-builder-2c-4g
25
26     project-type: freestyle
27
28     properties:
29       - opendaylight-infra-properties:
30           build-days-to-keep: 7
31
32     parameters:
33       - opendaylight-infra-parameters:
34           os-cloud: '{os-cloud}'
35           project: '{project}'
36           branch: '{branch}'
37           refspec: 'refs/heads/{branch}'
38           artifacts: '{archive-artifacts}'
39       - string:
40           name: DOWNLOAD_URL
41           # yamllint disable-line rule:line-length
42           default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.0-Carbon/distribution-karaf-0.6.0-Carbon.tar.gz'
43           description: 'URL to ODL tarball artifact to repackage into RPM'
44       - string:
45           name: CHANGELOG_NAME
46           default: 'Jenkins'
47           description: 'Name of person who defined RPM'
48       - string:
49           name: CHANGELOG_EMAIL
50           default: 'jenkins-donotreply@opendaylight.org'
51           description: 'Email of person who defined RPM'
52
53     scm:
54       - integration-gerrit-scm:
55           basedir: 'packaging'
56           refspec: '$GERRIT_REFSPEC'
57           branch: 'master'
58
59     wrappers:
60       - opendaylight-infra-wrappers:
61           build-timeout: '{build-timeout}'
62
63     builders:
64       - shell: !include-raw: include-raw-build-rpm.sh
65
66     publishers:
67       - archive-artifacts:
68           artifacts: '**/*.rpm'
69       - lf-infra-publish
70
71
72 - job-template:
73     name: 'packaging-build-rpm-snap-{stream}'
74
75     node: centos7-java-builder-2c-4g
76
77     project-type: freestyle
78
79     properties:
80       - opendaylight-infra-properties:
81           build-days-to-keep: 7
82
83     parameters:
84       - opendaylight-infra-parameters:
85           os-cloud: '{os-cloud}'
86           project: '{project}'
87           branch: '{branch}'
88           refspec: 'refs/heads/{branch}'
89           artifacts: '{archive-artifacts}'
90       - string:
91           name: VERSION_MAJOR
92           default: '7'
93           description: 'OpenDaylight major (element) version number to build'
94       - string:
95           name: VERSION_MINOR
96           default: '0'
97           description: 'OpenDaylight minor (SR) version number to build'
98       - string:
99           name: CHANGELOG_NAME
100           default: 'Jenkins'
101           description: 'Name of person who defined RPM'
102       - string:
103           name: CHANGELOG_EMAIL
104           default: 'jenkins-donotreply@opendaylight.org'
105           description: 'Email of person who defined RPM'
106
107     scm:
108       - integration-gerrit-scm:
109           basedir: 'packaging'
110           refspec: '$GERRIT_REFSPEC'
111           branch: 'master'
112
113     wrappers:
114       - opendaylight-infra-wrappers:
115           build-timeout: '{build-timeout}'
116
117     builders:
118       - shell: !include-raw: include-raw-build-rpm-snap.sh
119
120     triggers:
121       - timed: '@daily'
122
123     publishers:
124       - archive-artifacts:
125           artifacts: '**/*.rpm'
126       - lf-infra-publish
127
128
129 - job-template:
130     name: 'packaging-test-rpm-{stream}'
131
132     node: centos7-java-builder-2c-4g
133
134     parameters:
135       - opendaylight-infra-parameters:
136           os-cloud: '{os-cloud}'
137           project: '{project}'
138           branch: '{branch}'
139           refspec: 'refs/heads/{branch}'
140           artifacts: '{archive-artifacts}'
141       - string:
142           name: URL
143           # yamllint disable-line rule:line-length
144           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-60-release.repo'
145           description: 'Link to .repo or .rpm file'
146
147     scm:
148       - integration-gerrit-scm:
149           basedir: 'packaging'
150           refspec: '$GERRIT_REFSPEC'
151           branch: 'master'
152
153     wrappers:
154       - opendaylight-infra-wrappers:
155           build-timeout: '{build-timeout}'
156
157     builders:
158       - shell: !include-raw: include-raw-test-rpm.sh
159       - shell: !include-raw: include-raw-test-karaf.expect
160
161     publishers:
162       - archive-artifacts:
163           artifacts: '**'
164       - lf-infra-publish
165
166
167 - job-template:
168     name: 'packaging-test-deb-{stream}'
169
170     node: ubuntu1604-mininet-ovs-25-2c-4g
171
172     parameters:
173       - opendaylight-infra-parameters:
174           os-cloud: '{os-cloud}'
175           project: '{project}'
176           branch: '{branch}'
177           refspec: 'refs/heads/{branch}'
178           artifacts: '{archive-artifacts}'
179       - string:
180           name: PACKAGE
181           default: 'ppa:odl-team/carbon'
182           description: 'Link to .deb package or name of PPA repo'
183
184     scm:
185       - integration-gerrit-scm:
186           basedir: 'packaging'
187           refspec: '$GERRIT_REFSPEC'
188           branch: 'master'
189
190     wrappers:
191       - opendaylight-infra-wrappers:
192           build-timeout: '{build-timeout}'
193
194     builders:
195       - shell: !include-raw: include-raw-test-deb.sh
196       - shell: !include-raw: include-raw-test-karaf.expect
197
198     publishers:
199       - archive-artifacts:
200           artifacts: '**'
201       - lf-infra-publish
202
203
204 - job-template:
205     name: 'packaging-build-deb-{stream}'
206
207     node: ubuntu1604-mininet-ovs-25-2c-4g
208
209     project-type: freestyle
210
211     properties:
212       - opendaylight-infra-properties:
213           build-days-to-keep: 7
214
215     parameters:
216       - opendaylight-infra-parameters:
217           os-cloud: '{os-cloud}'
218           project: '{project}'
219           branch: '{branch}'
220           refspec: 'refs/heads/{branch}'
221           artifacts: '{archive-artifacts}'
222       - string:
223           name: VERSION_MAJOR
224           default: '5'
225           description: 'OpenDaylight major (element) version number to build'
226       - string:
227           name: VERSION_MINOR
228           default: '3'
229           description: 'OpenDaylight minor (SR) version number to build'
230       - string:
231           name: VERSION_PATCH
232           default: '0'
233           description: 'OpenDaylight patch version to build'
234       - string:
235           name: PKG_VERSION
236           default: '1'
237           description: 'Deb version for the given ODL major.minor.patch'
238       - string:
239           name: SYSD_COMMIT
240           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
241           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
242       - string:
243           name: CODENAME
244           default: 'Boron-SR3'
245           description: 'Elemental codename for the ODL release, including SR if applicable'
246       - string:
247           name: DOWNLOAD_URL
248           # yamllint disable-line rule:line-length
249           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'
250           description: 'URL to ODL tarball artifact to repackage into .deb'
251       - string:
252           name: JAVA_VERSION
253           default: '8'
254           description: Java dependency for the ODL release
255       - string:
256           name: CHANGELOG_DATE
257           default: 'Mon, 1 Aug 2016'
258           description: 'Date this .deb was defined'
259       - string:
260           name: CHANGELOG_TIME
261           default: '17:48:42 +0530'
262           description: 'Time this .deb was defined'
263       - string:
264           name: CHANGELOG_NAME
265           default: 'Jenkins'
266           description: 'Name of person who defined .deb'
267       - string:
268           name: CHANGELOG_EMAIL
269           default: 'jenkins-donotreply@opendaylight.org'
270           description: 'Email of person who defined .deb'
271
272     scm:
273       - integration-gerrit-scm:
274           basedir: 'packaging'
275           refspec: '$GERRIT_REFSPEC'
276           branch: 'master'
277
278     wrappers:
279       - opendaylight-infra-wrappers:
280           build-timeout: '{build-timeout}'
281
282     builders:
283       - shell: !include-raw: include-raw-build-deb.sh
284
285     publishers:
286       - archive-artifacts:
287           artifacts: 'packaging/deb/opendaylight/*.deb'
288       - lf-infra-publish