Update to global-jjb v0.7.0
[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-{stream}'
10       - 'packaging-build-deb-{stream}'
11       - 'packaging-test-rpm-master'
12       - 'packaging-test-rpm-upgrade-master'
13       - 'packaging-test-deb-master'
14
15     project: 'integration/packaging'
16
17     stream:
18       - boron
19       - carbon
20       - nitrogen
21       - oxygen
22     branch: 'master'
23
24
25 - job-template:
26     name: 'packaging-build-rpm-{stream}'
27
28     node: centos7-java-builder-2c-4g
29
30     project-type: freestyle
31
32     mvn-opts: ''
33     mvn-params: ''
34     mvn-version: mvn33
35
36     properties:
37       - opendaylight-infra-properties:
38           build-days-to-keep: 7
39
40     parameters:
41       - opendaylight-infra-parameters:
42           os-cloud: '{os-cloud}'
43           project: '{project}'
44           branch: '{branch}'
45           refspec: 'refs/heads/{branch}'
46           artifacts: '{archive-artifacts}'
47       - lf-infra-maven-parameters:
48           mvn-opts: '{mvn-opts}'
49           mvn-params: '{mvn-params}'
50           mvn-version: '{mvn-version}'
51           staging-profile-id: ''
52       - string:
53           name: DOWNLOAD_URL
54           # yamllint disable-line rule:line-length
55           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'
56           description: 'URL to ODL tarball artifact to repackage into RPM'
57       - string:
58           name: CHANGELOG_NAME
59           default: 'Jenkins'
60           description: 'Name of person who defined RPM'
61       - string:
62           name: CHANGELOG_EMAIL
63           default: 'jenkins-donotreply@opendaylight.org'
64           description: 'Email of person who defined RPM'
65
66     scm:
67       - integration-gerrit-scm:
68           basedir: 'packaging'
69           refspec: '$GERRIT_REFSPEC'
70           branch: 'master'
71
72     wrappers:
73       - opendaylight-infra-wrappers:
74           build-timeout: '{build-timeout}'
75
76     builders:
77       - shell: !include-raw: build-rpm.sh
78       - lf-infra-deploy-maven-file:
79           global-settings-file: 'global-settings'
80           settings-file: 'packaging-settings'
81           mvn-version: 'mvn33'
82           maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
83           repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
84           group-id: 'org.opendaylight.integration-packaging'
85           upload-files-dir: '$WORKSPACE/upload_files'
86
87     publishers:
88       - lf-infra-publish
89
90
91 - job-template:
92     name: 'packaging-build-rpm-snap-{stream}'
93
94     node: centos7-java-builder-2c-4g
95
96     project-type: freestyle
97
98     mvn-opts: ''
99     mvn-params: ''
100     mvn-version: mvn33
101
102     properties:
103       - opendaylight-infra-properties:
104           build-days-to-keep: 7
105
106     parameters:
107       - opendaylight-infra-parameters:
108           os-cloud: '{os-cloud}'
109           project: '{project}'
110           branch: '{branch}'
111           refspec: 'refs/heads/{branch}'
112           artifacts: '{archive-artifacts}'
113       - lf-infra-maven-parameters:
114           mvn-opts: '{mvn-opts}'
115           mvn-params: '{mvn-params}'
116           mvn-version: '{mvn-version}'
117           staging-profile-id: ''
118       - string:
119           name: VERSION_MAJOR
120           default: '7'
121           description: 'OpenDaylight major (element) version number to build'
122       - string:
123           name: VERSION_MINOR
124           default: '0'
125           description: 'OpenDaylight minor (SR) version number to build'
126       - string:
127           name: CHANGELOG_NAME
128           default: 'Jenkins'
129           description: 'Name of person who defined RPM'
130       - string:
131           name: CHANGELOG_EMAIL
132           default: 'jenkins-donotreply@opendaylight.org'
133           description: 'Email of person who defined RPM'
134
135     scm:
136       - integration-gerrit-scm:
137           basedir: 'packaging'
138           refspec: '$GERRIT_REFSPEC'
139           branch: 'master'
140
141     wrappers:
142       - opendaylight-infra-wrappers:
143           build-timeout: '{build-timeout}'
144
145     builders:
146       - shell: !include-raw: build-rpm-snap.sh
147       - lf-infra-deploy-maven-file:
148           global-settings-file: 'global-settings'
149           settings-file: 'packaging-settings'
150           mvn-version: 'mvn33'
151           maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
152           repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
153           group-id: 'org.opendaylight.integration-packaging'
154           upload-files-dir: '$WORKSPACE/upload_files'
155
156     triggers:
157       - timed: '@daily'
158
159     publishers:
160       - lf-infra-publish
161
162
163 - job-template:
164     name: 'packaging-test-rpm-master'
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-60-release.repo'
179           description: 'Link to .repo or .rpm file'
180
181     scm:
182       - integration-gerrit-scm:
183           basedir: 'packaging'
184           refspec: '$GERRIT_REFSPEC'
185           branch: 'master'
186
187     wrappers:
188       - opendaylight-infra-wrappers:
189           build-timeout: '{build-timeout}'
190
191     builders:
192       - shell: !include-raw: install-rpm.sh
193       - shell: !include-raw: start-odl.sh
194       - shell: |
195           # Install expect to interact with Karaf shell
196           sudo yum install -y expect
197           # Install nmap to check status of ODL's SSH port
198           sudo yum install -y nmap
199       - shell: !include-raw: include-raw-test-karaf.expect
200       - shell: !include-raw: stop-odl.sh
201
202     publishers:
203       # TODO: Remove the archive publisher
204       #       small data should be stored on logs.opendaylight.org
205       #       large data should be stored on nexus.opendaylight.org
206       - archive:
207           artifacts: '**'
208           allow-empty: true
209           fingerprint: true
210           latest-only: true
211       - lf-infra-publish
212
213
214 - job-template:
215     name: 'packaging-test-rpm-upgrade-master'
216
217     node: centos7-java-builder-2c-4g
218
219     parameters:
220       - opendaylight-infra-parameters:
221           os-cloud: '{os-cloud}'
222           project: '{project}'
223           branch: '{branch}'
224           refspec: 'refs/heads/{branch}'
225           artifacts: '{archive-artifacts}'
226       - string:
227           name: URL
228           # yamllint disable-line rule:line-length
229           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-6-release.repo'
230           description: 'Link to .repo or .rpm file'
231       - string:
232           name: UPGRADE_URL
233           # yamllint disable-line rule:line-length
234           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-6-testing.repo'
235           description: 'Link to .repo or .rpm file'
236
237     scm:
238       - integration-gerrit-scm:
239           basedir: 'packaging'
240           refspec: '$GERRIT_REFSPEC'
241           branch: 'master'
242
243     wrappers:
244       - opendaylight-infra-wrappers:
245           build-timeout: '{build-timeout}'
246
247     builders:
248       - shell: !include-raw: install-rpm.sh
249       - shell: !include-raw: start-odl.sh
250       - shell: |
251           # Install expect to interact with Karaf shell
252           sudo yum install -y expect
253           # Install nmap to check status of ODL's SSH port
254           sudo yum install -y nmap
255       - shell: !include-raw: include-raw-test-karaf.expect
256       - shell: !include-raw: stop-odl.sh
257       - shell: !include-raw: test-rpm-upgrade.sh
258       - shell: !include-raw: start-odl.sh
259       - shell: !include-raw: include-raw-test-karaf.expect
260       - shell: !include-raw: stop-odl.sh
261
262     publishers:
263       - lf-infra-publish
264
265
266 - job-template:
267     name: 'packaging-test-deb-master'
268
269     node: ubuntu1604-mininet-ovs-25-2c-4g
270
271     parameters:
272       - opendaylight-infra-parameters:
273           os-cloud: '{os-cloud}'
274           project: '{project}'
275           branch: '{branch}'
276           refspec: 'refs/heads/{branch}'
277           artifacts: '{archive-artifacts}'
278       - string:
279           name: PACKAGE
280           default: 'ppa:odl-team/carbon'
281           description: 'Link to .deb package or name of PPA repo'
282
283     scm:
284       - integration-gerrit-scm:
285           basedir: 'packaging'
286           refspec: '$GERRIT_REFSPEC'
287           branch: 'master'
288
289     wrappers:
290       - opendaylight-infra-wrappers:
291           build-timeout: '{build-timeout}'
292
293     builders:
294       - shell: !include-raw: install-deb.sh
295       - shell: !include-raw: start-odl.sh
296       - shell: |
297           # Install expect to interact with Karaf shell
298           sudo apt-get install -y expect
299           # Install nmap to check status of ODL's SSH port
300           sudo apt-get install -y nmap
301       - shell: !include-raw: include-raw-test-karaf.expect
302       - shell: !include-raw: stop-odl.sh
303
304     publishers:
305       - lf-infra-publish
306
307
308 - job-template:
309     name: 'packaging-build-deb-{stream}'
310
311     node: ubuntu1604-mininet-ovs-25-2c-4g
312
313     project-type: freestyle
314
315     mvn-opts: ''
316     mvn-params: ''
317     mvn-version: mvn33
318
319     properties:
320       - opendaylight-infra-properties:
321           build-days-to-keep: 7
322
323     parameters:
324       - opendaylight-infra-parameters:
325           os-cloud: '{os-cloud}'
326           project: '{project}'
327           branch: '{branch}'
328           refspec: 'refs/heads/{branch}'
329           artifacts: '{archive-artifacts}'
330       - lf-infra-maven-parameters:
331           mvn-opts: '{mvn-opts}'
332           mvn-params: '{mvn-params}'
333           mvn-version: '{mvn-version}'
334           staging-profile-id: ''
335       - string:
336           name: VERSION_MAJOR
337           default: '5'
338           description: 'OpenDaylight major (element) version number to build'
339       - string:
340           name: VERSION_MINOR
341           default: '3'
342           description: 'OpenDaylight minor (SR) version number to build'
343       - string:
344           name: VERSION_PATCH
345           default: '0'
346           description: 'OpenDaylight patch version to build'
347       - string:
348           name: PKG_VERSION
349           default: '1'
350           description: 'Deb version for the given ODL major.minor.patch'
351       - string:
352           name: SYSD_COMMIT
353           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
354           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
355       - string:
356           name: CODENAME
357           default: 'Boron-SR3'
358           description: 'Elemental codename for the ODL release, including SR if applicable'
359       - string:
360           name: DOWNLOAD_URL
361           # yamllint disable-line rule:line-length
362           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'
363           description: 'URL to ODL tarball artifact to repackage into .deb'
364       - string:
365           name: JAVA_VERSION
366           default: '8'
367           description: Java dependency for the ODL release
368       - string:
369           name: JAVA_HOME
370           default: '/usr/lib/jvm/java-8-openjdk-amd64/'
371           description: Set JAVA_HOME to openjdk8
372       - string:
373           name: CHANGELOG_DATE
374           default: 'Mon, 1 Aug 2016'
375           description: 'Date this .deb was defined'
376       - string:
377           name: CHANGELOG_TIME
378           default: '17:48:42 +0530'
379           description: 'Time this .deb was defined'
380       - string:
381           name: CHANGELOG_NAME
382           default: 'Jenkins'
383           description: 'Name of person who defined .deb'
384       - string:
385           name: CHANGELOG_EMAIL
386           default: 'jenkins-donotreply@opendaylight.org'
387           description: 'Email of person who defined .deb'
388
389     scm:
390       - integration-gerrit-scm:
391           basedir: 'packaging'
392           refspec: '$GERRIT_REFSPEC'
393           branch: 'master'
394
395     wrappers:
396       - opendaylight-infra-wrappers:
397           build-timeout: '{build-timeout}'
398
399     builders:
400       - shell: !include-raw: build-deb.sh
401       - lf-infra-deploy-maven-file:
402           global-settings-file: 'global-settings'
403           settings-file: 'packaging-settings'
404           mvn-version: '{mvn-version}'
405           maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
406           repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
407           group-id: 'org.opendaylight.integration-packaging'
408           upload-files-dir: '$WORKSPACE/upload_files'
409
410     publishers:
411       - lf-infra-publish