4 project-name: packaging
7 - '{project-name}-rtd-jobs':
8 build-node: centos7-builder-2c-2g
9 doc-dir: .tox/docs/tmp/html
10 project-pattern: integration/packaging
11 rtd-build-url: https://readthedocs.org/api/v2/webhook/odl-integrationpackaging/32928/
12 rtd-token: 371d63c43ad99b0745bb7779e3488c5e255c1180
13 - 'packaging-build-rpm-{stream}'
14 - 'packaging-build-rpm-{distro}-snap-{stream}'
15 - 'packaging-build-deb-{stream}'
16 - 'packaging-verify-full-rpm-master'
17 - 'packaging-verify-rpm-master'
18 - 'packaging-test-rpm-master'
19 - 'packaging-test-rpm-upgrade-master'
20 - 'packaging-test-deb-master'
25 project: 'integration/packaging'
35 # common parameters required for 'lf-infra-deploy-maven-file' builder
36 group-id: 'org.opendaylight.integration-packaging'
37 upload-files-dir: '$WORKSPACE/upload_files'
38 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
41 name: 'packaging-build-rpm-{stream}'
43 node: centos7-builder-2c-8g
45 project-type: freestyle
52 - opendaylight-infra-properties:
56 - opendaylight-infra-parameters:
57 os-cloud: '{os-cloud}'
60 refspec: 'refs/heads/{branch}'
61 artifacts: '{archive-artifacts}'
62 - lf-infra-maven-parameters:
63 mvn-opts: '{mvn-opts}'
64 mvn-params: '{mvn-params}'
65 mvn-version: '{mvn-version}'
66 staging-profile-id: ''
69 # yamllint disable-line rule:line-length
70 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
71 description: 'URL to ODL tarball artifact to repackage into RPM'
75 description: 'Name of person who defined RPM'
78 default: 'jenkins-donotreply@opendaylight.org'
79 description: 'Email of person who defined RPM'
82 - integration-gerrit-scm:
84 refspec: '$GERRIT_REFSPEC'
88 - opendaylight-infra-wrappers:
89 build-timeout: '{build-timeout}'
92 - shell: !include-raw-escape: build-rpm.sh
93 - install-test-uninstall-rpm
94 - lf-infra-deploy-maven-file:
95 global-settings-file: 'global-settings'
96 settings-file: 'packaging-settings'
97 mvn-version: '{mvn-version}'
98 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
99 group-id: '{group-id}'
100 upload-files-dir: '{upload-files-dir}'
101 maven-repo-url: '{maven-repo-url}'
108 name: 'packaging-build-rpm-{distro}-snap-{stream}'
110 node: centos7-docker-2c-8g
112 project-type: freestyle
119 - opendaylight-infra-properties:
120 build-days-to-keep: 7
123 - opendaylight-infra-parameters:
124 os-cloud: '{os-cloud}'
127 refspec: 'refs/heads/{branch}'
128 artifacts: '{archive-artifacts}'
129 - lf-infra-maven-parameters:
130 mvn-opts: '{mvn-opts}'
131 mvn-params: '{mvn-params}'
132 mvn-version: '{mvn-version}'
133 staging-profile-id: ''
137 description: 'Name of person who defined RPM'
139 name: CHANGELOG_EMAIL
140 default: 'jenkins-donotreply@opendaylight.org'
141 description: 'Email of person who defined RPM'
144 - integration-gerrit-scm:
146 refspec: '$GERRIT_REFSPEC'
150 - opendaylight-infra-wrappers:
151 build-timeout: '{build-timeout}'
155 properties-content: |
158 - shell: !include-raw: build-rpm-snap-docker.sh
159 - shell: !include-raw: test-rpm-docker.sh
160 - lf-infra-deploy-maven-file:
161 global-settings-file: 'global-settings'
162 settings-file: 'packaging-settings'
163 mvn-version: '{mvn-version}'
164 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
165 group-id: '{group-id}'
166 upload-files-dir: '{upload-files-dir}'
167 maven-repo-url: '{maven-repo-url}'
177 name: 'packaging-verify-rpm-master'
179 node: centos7-builder-2c-8g
181 project-type: freestyle
184 - opendaylight-infra-parameters:
185 os-cloud: '{os-cloud}'
188 refspec: 'refs/heads/{branch}'
189 artifacts: '{archive-artifacts}'
192 - integration-gerrit-scm:
194 refspec: '$GERRIT_REFSPEC'
198 - opendaylight-infra-wrappers:
199 build-timeout: '{build-timeout}'
202 # Test Oxygen SR2 release tarball
204 # yamllint disable-line rule:line-length
205 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
206 - shell: !include-raw-escape: build-rpm.sh
207 - install-test-uninstall-rpm
209 # Test latest Oxygen snapshot
211 properties-content: 'STREAM=oxygen'
212 - shell: !include-raw: build-rpm-snap.sh
213 - install-test-uninstall-rpm
215 # Test Fluorine pre-release autorelease tarball
216 # NB: This will need to be updated as old builds expire
218 # yamllint disable-line rule:line-length
219 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2209/org/opendaylight/integration/karaf/0.9.0/karaf-0.9.0.tar.gz'
220 - shell: !include-raw-escape: build-rpm.sh
221 - install-test-uninstall-rpm
223 # Test Fluorine multipatch zip (no parallel tarball available)
224 # NB: This will need to be updated as old builds expire
226 # yamllint disable-line rule:line-length
227 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.0-SNAPSHOT/karaf-0.9.0-20180620.055735-63.zip'
228 - shell: !include-raw-escape: build-rpm.sh
229 - install-test-uninstall-rpm
231 # Test latest Fluorine snapshot
233 properties-content: 'STREAM=fluorine'
234 - shell: !include-raw: build-rpm-snap.sh
235 - install-test-uninstall-rpm
238 - gerrit-trigger-patch-submitted:
239 gerrit-server-name: '{gerrit-server-name}'
249 name: 'packaging-verify-full-rpm-master'
251 node: centos7-builder-2c-8g
253 project-type: freestyle
256 - opendaylight-infra-parameters:
257 os-cloud: '{os-cloud}'
260 refspec: 'refs/heads/{branch}'
261 artifacts: '{archive-artifacts}'
264 - integration-gerrit-scm:
266 refspec: '$GERRIT_REFSPEC'
270 - opendaylight-infra-wrappers:
271 build-timeout: '{build-timeout}'
274 # Test Oxygen SR2 release tarball
276 # yamllint disable-line rule:line-length
277 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
278 - shell: !include-raw-escape: build-rpm.sh
279 - install-test-uninstall-rpm
281 # Test Oxygen pre-release autorelease tarball
282 # NB: This will need to be updated as old builds expire
284 # yamllint disable-line rule:line-length
285 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2210/org/opendaylight/integration/karaf/0.8.3/karaf-0.8.3.tar.gz'
286 - shell: !include-raw-escape: build-rpm.sh
287 - install-test-uninstall-rpm
289 # Test Oxygen multipatch zip (no parallel tarball available)
290 # NB: This will need to be updated as old builds expire
292 # yamllint disable-line rule:line-length
293 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.3-SNAPSHOT/karaf-0.8.3-20180620.173319-5.zip'
294 - shell: !include-raw-escape: build-rpm.sh
295 - install-test-uninstall-rpm
297 # Test latest Oxygen snapshot
299 properties-content: 'STREAM=oxygen'
300 - shell: !include-raw: build-rpm-snap.sh
301 - install-test-uninstall-rpm
303 # Test Fluorine pre-release autorelease tarball
304 # NB: This will need to be updated as old builds expire
306 # yamllint disable-line rule:line-length
307 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2209/org/opendaylight/integration/karaf/0.9.0/karaf-0.9.0.tar.gz'
308 - shell: !include-raw-escape: build-rpm.sh
309 - install-test-uninstall-rpm
311 # Test Fluorine multipatch zip (no parallel tarball available)
312 # NB: This will need to be updated as old builds expire
314 # yamllint disable-line rule:line-length
315 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.0-SNAPSHOT/karaf-0.9.0-20180620.055735-63.zip'
316 - shell: !include-raw-escape: build-rpm.sh
317 - install-test-uninstall-rpm
319 # Test latest Fluorine snapshot
321 properties-content: 'STREAM=fluorine'
322 - shell: !include-raw: build-rpm-snap.sh
323 - install-test-uninstall-rpm
328 server-name: '{gerrit-server-name}'
330 - comment-added-contains-event:
331 comment-contains-value: 'verify-rpm-full'
333 - project-compare-type: ANT
334 project-pattern: '{project}'
336 - branch-compare-type: ANT
337 branch-pattern: '**/{branch}'
344 name: 'packaging-test-rpm-master'
346 node: centos7-builder-2c-8g
349 - opendaylight-infra-parameters:
350 os-cloud: '{os-cloud}'
353 refspec: 'refs/heads/{branch}'
354 artifacts: '{archive-artifacts}'
357 # yamllint disable-line rule:line-length
358 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
359 description: 'Link to .repo or .rpm file'
362 - integration-gerrit-scm:
364 refspec: '$GERRIT_REFSPEC'
368 - opendaylight-infra-wrappers:
369 build-timeout: '{build-timeout}'
373 # Install expect to interact with Karaf shell
374 # Install nmap to check status of ODL's SSH port
375 sudo yum install -y expect nmap
376 - shell: !include-raw-escape: install-rpm.sh
377 - shell: !include-raw: start-odl.sh
378 - shell: !include-raw-escape: test-ports-nofeature.sh
379 - shell: !include-raw: test-karaf-oxygensafe.expect
380 # Disable this test until ODLPARENT-139 is fixed
381 # - shell: !include-raw-escape: test-rest-ok.sh
382 - shell: !include-raw: stop-odl.sh
383 - shell: !include-raw: uninstall-rpm.sh
386 # TODO: Remove the archive publisher
387 # small data should be stored on logs.opendaylight.org
388 # large data should be stored on nexus.opendaylight.org
398 name: 'packaging-test-rpm-upgrade-master'
400 node: centos7-builder-2c-8g
403 - opendaylight-infra-parameters:
404 os-cloud: '{os-cloud}'
407 refspec: 'refs/heads/{branch}'
408 artifacts: '{archive-artifacts}'
411 # yamllint disable-line rule:line-length
412 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-release.repo'
413 description: 'Link to .repo or .rpm file'
416 # yamllint disable-line rule:line-length
417 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
418 description: 'Link to .repo or .rpm file'
421 - integration-gerrit-scm:
423 refspec: '$GERRIT_REFSPEC'
427 - opendaylight-infra-wrappers:
428 build-timeout: '{build-timeout}'
431 - shell: !include-raw-escape: install-rpm.sh
432 - shell: !include-raw: start-odl.sh
434 # Install expect to interact with Karaf shell
435 sudo yum install -y expect
436 # Install nmap to check status of ODL's SSH port
437 sudo yum install -y nmap
438 - shell: !include-raw: test-karaf-oxygensafe.expect
439 - shell: !include-raw: stop-odl.sh
440 - shell: !include-raw: test-rpm-upgrade.sh
441 - shell: !include-raw: start-odl.sh
442 - shell: !include-raw: test-karaf-oxygensafe.expect
443 - shell: !include-raw: stop-odl.sh
444 - shell: !include-raw: uninstall-rpm.sh
451 name: 'packaging-test-deb-master'
453 node: ubuntu1604-mininet-ovs-25-1c-4g
456 - opendaylight-infra-parameters:
457 os-cloud: '{os-cloud}'
460 refspec: 'refs/heads/{branch}'
461 artifacts: '{archive-artifacts}'
464 default: 'ppa:odl-team/oxygen'
465 description: 'Link to .deb package or name of PPA repo'
468 - integration-gerrit-scm:
470 refspec: '$GERRIT_REFSPEC'
474 - opendaylight-infra-wrappers:
475 build-timeout: '{build-timeout}'
478 - shell: !include-raw-escape: install-deb.sh
479 - shell: !include-raw: start-odl.sh
480 - shell: !include-raw-escape: test-ports-nofeature.sh
482 # Install expect to interact with Karaf shell
483 # Install nmap to check status of ODL's SSH port
484 sudo apt-get install -y expect nmap
485 - shell: !include-raw: test-karaf-oxygensafe.expect
486 # Disable this test until ODLPARENT-139 is fixed
487 # - shell: !include-raw-escape: test-rest-ok.sh
488 - shell: !include-raw: stop-odl.sh
489 - shell: !include-raw-escape: uninstall-deb.sh
496 name: 'packaging-build-deb-{stream}'
498 node: ubuntu1604-mininet-ovs-25-1c-4g
500 project-type: freestyle
507 - opendaylight-infra-properties:
508 build-days-to-keep: 7
511 - opendaylight-infra-parameters:
512 os-cloud: '{os-cloud}'
515 refspec: 'refs/heads/{branch}'
516 artifacts: '{archive-artifacts}'
517 - lf-infra-maven-parameters:
518 mvn-opts: '{mvn-opts}'
519 mvn-params: '{mvn-params}'
520 mvn-version: '{mvn-version}'
521 staging-profile-id: ''
524 # FIXME: Update the default value to an active stream.
525 # yamllint disable-line rule:line-length
526 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'
527 description: 'URL to ODL tarball artifact to repackage into .deb'
531 description: 'Name of person who defined .deb'
533 name: CHANGELOG_EMAIL
534 default: 'jenkins-donotreply@opendaylight.org'
535 description: 'Email of person who defined .deb'
538 - integration-gerrit-scm:
540 refspec: '$GERRIT_REFSPEC'
544 - opendaylight-infra-wrappers:
545 build-timeout: '{build-timeout}'
548 - shell: !include-raw: build-deb.sh
549 - install-test-uninstall-deb
550 - lf-infra-deploy-maven-file:
551 global-settings-file: 'global-settings'
552 settings-file: 'packaging-settings'
553 mvn-version: '{mvn-version}'
554 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
555 group-id: '{group-id}'
556 upload-files-dir: '{upload-files-dir}'
557 maven-repo-url: '{maven-repo-url}'