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