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'
36 # common parameters required for 'lf-infra-deploy-maven-file' builder
37 group-id: 'org.opendaylight.integration-packaging'
38 upload-files-dir: '$WORKSPACE/upload_files'
39 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
42 name: 'packaging-build-rpm-{stream}'
46 node: centos7-builder-2c-2g
48 project-type: freestyle
49 disabled: '{disable-job}'
56 - opendaylight-infra-properties:
60 - opendaylight-infra-parameters:
61 os-cloud: '{os-cloud}'
64 refspec: 'refs/heads/{branch}'
65 artifacts: '{archive-artifacts}'
66 - lf-infra-maven-parameters:
67 mvn-opts: '{mvn-opts}'
68 mvn-params: '{mvn-params}'
69 mvn-version: '{mvn-version}'
70 staging-profile-id: ''
73 # yamllint disable-line rule:line-length
74 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
75 description: 'URL to ODL tarball artifact to repackage into RPM'
79 description: 'Name of person who defined RPM'
82 default: 'jenkins-donotreply@opendaylight.org'
83 description: 'Email of person who defined RPM'
86 default: 'opendaylight-{stream}-epel-7-x86_64-devel'
87 description: 'Repository to deploy resulting package to'
89 name: PKG_VERSION_OVERRIDE
91 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
94 - integration-gerrit-scm:
96 refspec: '$GERRIT_REFSPEC'
100 - opendaylight-infra-wrappers:
101 build-timeout: '{build-timeout}'
105 - shell: !include-raw-escape: build-rpm.sh
106 - install-test-uninstall-rpm
107 - lf-infra-deploy-maven-file:
108 global-settings-file: 'global-settings'
109 settings-file: 'packaging-settings'
110 mvn-version: '{mvn-version}'
111 repo-id: '$DEPLOY_TO_REPO'
112 group-id: '{group-id}'
113 upload-files-dir: '{upload-files-dir}'
114 maven-repo-url: '{maven-repo-url}'
121 name: 'packaging-build-rpm-{distro}-snap-{stream}'
123 node: centos7-docker-2c-2g
126 project-type: freestyle
127 disabled: '{disable-job}'
134 - opendaylight-infra-properties:
135 build-days-to-keep: 7
138 - opendaylight-infra-parameters:
139 os-cloud: '{os-cloud}'
142 refspec: 'refs/heads/{branch}'
143 artifacts: '{archive-artifacts}'
144 - lf-infra-maven-parameters:
145 mvn-opts: '{mvn-opts}'
146 mvn-params: '{mvn-params}'
147 mvn-version: '{mvn-version}'
148 staging-profile-id: ''
152 description: 'Name of person who defined RPM'
154 name: CHANGELOG_EMAIL
155 default: 'jenkins-donotreply@opendaylight.org'
156 description: 'Email of person who defined RPM'
159 - integration-gerrit-scm:
161 refspec: '$GERRIT_REFSPEC'
165 - opendaylight-infra-wrappers:
166 build-timeout: '{build-timeout}'
171 properties-content: |
174 - shell: !include-raw: build-rpm-snap-docker.sh
175 - shell: !include-raw: test-rpm-docker.sh
176 - lf-infra-deploy-maven-file:
177 global-settings-file: 'global-settings'
178 settings-file: 'packaging-settings'
179 mvn-version: '{mvn-version}'
180 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
181 group-id: '{group-id}'
182 upload-files-dir: '{upload-files-dir}'
183 maven-repo-url: '{maven-repo-url}'
193 name: 'packaging-verify-rpm-master'
195 node: centos7-builder-2c-2g
198 project-type: freestyle
199 disabled: '{disable-job}'
202 - opendaylight-infra-parameters:
203 os-cloud: '{os-cloud}'
206 refspec: 'refs/heads/{branch}'
207 artifacts: '{archive-artifacts}'
210 - integration-gerrit-scm:
212 refspec: '$GERRIT_REFSPEC'
216 - opendaylight-infra-wrappers:
217 build-timeout: '{build-timeout}'
220 # Test Oxygen SR4 release tarball
222 # yamllint disable-line rule:line-length
223 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
224 - shell: !include-raw-escape: build-rpm.sh
225 - install-test-uninstall-rpm
227 # Test Fluorine ('Managed Release Common Distro') release tarball
229 # yamllint disable-line rule:line-length
230 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
231 - shell: !include-raw-escape: build-rpm.sh
232 - install-test-uninstall-rpm
234 # Test Fluorine SR1 release tarball
236 # yamllint disable-line rule:line-length
237 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.9.1/karaf-0.9.1.tar.gz'
238 - shell: !include-raw-escape: build-rpm.sh
239 - install-test-uninstall-rpm
241 # Test Fluorine SR2 release tarball
243 # yamllint disable-line rule:line-length
244 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.9.2/karaf-0.9.2.tar.gz'
245 - shell: !include-raw-escape: build-rpm.sh
246 - install-test-uninstall-rpm
248 # Test Neon pre-release autorelease tarball
249 # NB: This will need to be updated as old builds expire
251 # yamllint disable-line rule:line-length
252 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2620/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
253 # - shell: !include-raw-escape: build-rpm.sh
254 # - install-test-uninstall-rpm
256 # Test Neon multipatch zip (no parallel tarball available)
257 # NB: This will need to be updated as old builds expire
259 # yamllint disable-line rule:line-length
260 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.10.0-SNAPSHOT/karaf-0.10.0-20190103.173010-50.zip'
261 # - shell: !include-raw-escape: build-rpm.sh
262 # - install-test-uninstall-rpm
264 # Test latest Neon snapshot
266 properties-content: 'STREAM=neon'
267 - shell: !include-raw: build-rpm-snap.sh
268 - install-test-uninstall-rpm
272 - gerrit-trigger-patch-submitted:
273 gerrit-server-name: '{gerrit-server-name}'
284 name: 'packaging-verify-full-rpm-master'
286 node: centos7-builder-2c-2g
289 project-type: freestyle
290 disabled: '{disable-job}'
293 - opendaylight-infra-parameters:
294 os-cloud: '{os-cloud}'
297 refspec: 'refs/heads/{branch}'
298 artifacts: '{archive-artifacts}'
301 - integration-gerrit-scm:
303 refspec: '$GERRIT_REFSPEC'
307 - opendaylight-infra-wrappers:
308 build-timeout: '{build-timeout}'
311 # Test Oxygen SR4 release tarball
313 # yamllint disable-line rule:line-length
314 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
315 - shell: !include-raw-escape: build-rpm.sh
316 - install-test-uninstall-rpm
318 # Test Oxygen pre-release autorelease tarball
319 # NB: This will need to be updated as old builds expire
321 # yamllint disable-line rule:line-length
322 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2622/org/opendaylight/integration/karaf/0.8.5/karaf-0.8.5.tar.gz'
323 # - shell: !include-raw-escape: build-rpm.sh
324 # - install-test-uninstall-rpm
326 # Test latest Oxygen snapshot
328 properties-content: 'STREAM=oxygen'
329 - shell: !include-raw: build-rpm-snap.sh
330 - install-test-uninstall-rpm
332 # Test Fluorine ('Managed Release Common Distro') release tarball
334 # yamllint disable-line rule:line-length
335 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
336 - shell: !include-raw-escape: build-rpm.sh
337 - install-test-uninstall-rpm
339 # Test Fluorine SR1 release tarball
341 # yamllint disable-line rule:line-length
342 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.9.1/karaf-0.9.1.tar.gz'
343 - shell: !include-raw-escape: build-rpm.sh
344 - install-test-uninstall-rpm
346 # Test Fluorine SR2 release tarball
348 # yamllint disable-line rule:line-length
349 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.9.2/karaf-0.9.2.tar.gz'
350 - shell: !include-raw-escape: build-rpm.sh
351 - install-test-uninstall-rpm
353 # Test Fluorine pre-release autorelease tarball
354 # NB: This will need to be updated as old builds expire
356 # yamllint disable-line rule:line-length
357 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2621/org/opendaylight/integration/karaf/0.9.2/karaf-0.9.2.tar.gz'
358 # - shell: !include-raw-escape: build-rpm.sh
359 # - install-test-uninstall-rpm
361 # Test Fluorine multipatch zip (no parallel tarball available)
362 # NB: This will need to be updated as old builds expire
364 # yamllint disable-line rule:line-length
365 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.2-SNAPSHOT/karaf-0.9.2-20181222.162905-8.zip'
366 # - shell: !include-raw-escape: build-rpm.sh
367 # - install-test-uninstall-rpm
369 # Test latest Fluorine snapshot
371 properties-content: 'STREAM=fluorine'
372 - shell: !include-raw: build-rpm-snap.sh
373 - install-test-uninstall-rpm
375 # Test Neon pre-release autorelease tarball
376 # NB: This will need to be updated as old builds expire
378 # yamllint disable-line rule:line-length
379 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2620/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.g'
380 # - shell: !include-raw-escape: build-rpm.sh
381 # - install-test-uninstall-rpm
383 # Test Neon multipatch zip (no parallel tarball available)
384 # NB: This will need to be updated as old builds expire
386 # yamllint disable-line rule:line-length
387 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.10.0-SNAPSHOT/karaf-0.10.0-20190103.173010-50.zip'
388 # - shell: !include-raw-escape: build-rpm.sh
389 # - install-test-uninstall-rpm
391 # Test latest Neon snapshot
393 properties-content: 'STREAM=neon'
394 - shell: !include-raw: build-rpm-snap.sh
395 - install-test-uninstall-rpm
400 server-name: '{gerrit-server-name}'
402 - comment-added-contains-event:
403 comment-contains-value: 'verify-rpm-full'
405 - project-compare-type: ANT
406 project-pattern: '{project}'
408 - branch-compare-type: ANT
409 branch-pattern: '**/{branch}'
416 name: 'packaging-test-rpm-master'
418 node: centos7-builder-2c-2g
421 disabled: '{disable-job}'
424 - opendaylight-infra-parameters:
425 os-cloud: '{os-cloud}'
428 refspec: 'refs/heads/{branch}'
429 artifacts: '{archive-artifacts}'
432 # yamllint disable-line rule:line-length
433 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
434 description: 'Link to .repo or .rpm file'
437 - integration-gerrit-scm:
439 refspec: '$GERRIT_REFSPEC'
443 - opendaylight-infra-wrappers:
444 build-timeout: '{build-timeout}'
448 # Install expect to interact with Karaf shell
449 # Install nmap to check status of ODL's SSH port
450 sudo yum install -y expect nmap
451 - shell: !include-raw-escape: install-rpm.sh
452 - shell: !include-raw: start-odl.sh
453 - shell: !include-raw-escape: test-ports-nofeature.sh
454 - shell: !include-raw: test-karaf-oxygensafe.expect
455 # Disable this test until ODLPARENT-139 is fixed
456 # - shell: !include-raw-escape: test-rest-ok.sh
457 - shell: !include-raw: stop-odl.sh
458 - shell: !include-raw: uninstall-rpm.sh
464 # TODO: Remove the archive publisher
465 # small data should be stored on logs.opendaylight.org
466 # large data should be stored on nexus.opendaylight.org
476 name: 'packaging-test-rpm-upgrade-master'
480 node: centos7-builder-2c-2g
481 disabled: '{disable-job}'
484 - opendaylight-infra-parameters:
485 os-cloud: '{os-cloud}'
488 refspec: 'refs/heads/{branch}'
489 artifacts: '{archive-artifacts}'
492 - integration-gerrit-scm:
494 refspec: '$GERRIT_REFSPEC'
498 - opendaylight-infra-wrappers:
499 build-timeout: '{build-timeout}'
502 # Tests (current and future):
503 # * Install latest release, stop/uninstall, install latest CD
504 # * Upgrade from latest release latest CD
505 # * TODO: Upgrade from latest release to proposed packaging/** logic
506 # * TODO: Upgrade from CD to proposed packaging/** logic
507 # * TODO: Upgrade from proposed packaging/** logic (older ODL) to
508 # proposed packaging logic (latest ODL)
510 # Test 1: Install latest release, stop/uninstall, install latest CD
512 # yamllint disable-line rule:line-length
513 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
514 - install-start-test-stop-uninstall-rpm
516 # yamllint disable-line rule:line-length
517 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
518 - install-start-test-stop-uninstall-rpm
520 # Test 2: Install latest release, stop, upgrade to latest CD
522 # yamllint disable-line rule:line-length
523 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
524 - install-start-test-stop-rpm
526 # yamllint disable-line rule:line-length
527 properties-content: 'REPO_CFG_FILE_URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
528 - installrepcfg-upgrade-start-test-stop-rpm
532 - gerrit-trigger-patch-submitted:
533 gerrit-server-name: '{gerrit-server-name}'
544 name: 'packaging-test-deb-master'
546 node: ubuntu1604-mininet-ovs-25-1c-4g
549 disabled: '{disable-job}'
552 - opendaylight-infra-parameters:
553 os-cloud: '{os-cloud}'
556 refspec: 'refs/heads/{branch}'
557 artifacts: '{archive-artifacts}'
560 default: 'ppa:odl-team/oxygen'
561 description: 'Link to .deb package or name of PPA repo'
564 - integration-gerrit-scm:
566 refspec: '$GERRIT_REFSPEC'
570 - opendaylight-infra-wrappers:
571 build-timeout: '{build-timeout}'
574 - shell: !include-raw-escape: install-deb.sh
575 - shell: !include-raw: start-odl.sh
576 - shell: !include-raw-escape: test-ports-nofeature.sh
578 # Install expect to interact with Karaf shell
579 # Install nmap to check status of ODL's SSH port
580 sudo apt-get install -y expect nmap
581 - shell: !include-raw: test-karaf-oxygensafe.expect
582 # Disable this test until ODLPARENT-139 is fixed
583 # - shell: !include-raw-escape: test-rest-ok.sh
584 - shell: !include-raw: stop-odl.sh
585 - shell: !include-raw-escape: uninstall-deb.sh
595 name: 'packaging-build-deb-{stream}'
597 node: ubuntu1604-mininet-ovs-25-1c-4g
600 project-type: freestyle
601 disabled: '{disable-job}'
608 - opendaylight-infra-properties:
609 build-days-to-keep: 7
612 - opendaylight-infra-parameters:
613 os-cloud: '{os-cloud}'
616 refspec: 'refs/heads/{branch}'
617 artifacts: '{archive-artifacts}'
618 - lf-infra-maven-parameters:
619 mvn-opts: '{mvn-opts}'
620 mvn-params: '{mvn-params}'
621 mvn-version: '{mvn-version}'
622 staging-profile-id: ''
625 # FIXME: Update the default value to an active stream.
626 # yamllint disable-line rule:line-length
627 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'
628 description: 'URL to ODL tarball artifact to repackage into .deb'
632 description: 'Name of person who defined .deb'
634 name: CHANGELOG_EMAIL
635 default: 'jenkins-donotreply@opendaylight.org'
636 description: 'Email of person who defined .deb'
638 name: PKG_VERSION_OVERRIDE
640 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
643 - integration-gerrit-scm:
645 refspec: '$GERRIT_REFSPEC'
649 - opendaylight-infra-wrappers:
650 build-timeout: '{build-timeout}'
654 - shell: !include-raw: build-deb.sh
655 - install-test-uninstall-deb
656 - lf-infra-deploy-maven-file:
657 global-settings-file: 'global-settings'
658 settings-file: 'packaging-settings'
659 mvn-version: '{mvn-version}'
660 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
661 group-id: '{group-id}'
662 upload-files-dir: '{upload-files-dir}'
663 maven-repo-url: '{maven-repo-url}'
675 project-name: packaging