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