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 Neon ('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.10.0/opendaylight-0.10.0.tar.gz'
231 - shell: !include-raw-escape: build-rpm.sh
232 - install-test-uninstall-rpm
234 # Test Fluorine ('Managed Release Common Distro') release tarball
236 # yamllint disable-line rule:line-length
237 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
238 - shell: !include-raw-escape: build-rpm.sh
239 - install-test-uninstall-rpm
241 # Test Fluorine SR1 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.1/karaf-0.9.1.tar.gz'
245 - shell: !include-raw-escape: build-rpm.sh
246 - install-test-uninstall-rpm
248 # Test Fluorine SR2 release tarball
250 # yamllint disable-line rule:line-length
251 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'
252 - shell: !include-raw-escape: build-rpm.sh
253 - install-test-uninstall-rpm
255 # Test Neon pre-release autorelease tarball
256 # NB: This will need to be updated as old builds expire
258 # yamllint disable-line rule:line-length
259 # 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'
260 # - shell: !include-raw-escape: build-rpm.sh
261 # - install-test-uninstall-rpm
263 # Test Neon multipatch zip (no parallel tarball available)
264 # NB: This will need to be updated as old builds expire
266 # yamllint disable-line rule:line-length
267 # 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'
268 # - shell: !include-raw-escape: build-rpm.sh
269 # - install-test-uninstall-rpm
271 # Test latest Neon snapshot
273 properties-content: 'STREAM=neon'
274 - shell: !include-raw: build-rpm-snap.sh
275 - install-test-uninstall-rpm
279 - gerrit-trigger-patch-submitted:
280 gerrit-server-name: '{gerrit-server-name}'
291 name: 'packaging-verify-full-rpm-master'
293 node: centos7-builder-2c-2g
296 project-type: freestyle
297 disabled: '{disable-job}'
300 - opendaylight-infra-parameters:
301 os-cloud: '{os-cloud}'
304 refspec: 'refs/heads/{branch}'
305 artifacts: '{archive-artifacts}'
308 - integration-gerrit-scm:
310 refspec: '$GERRIT_REFSPEC'
314 - opendaylight-infra-wrappers:
315 build-timeout: '{build-timeout}'
318 # Test Oxygen SR4 release tarball
320 # yamllint disable-line rule:line-length
321 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'
322 - shell: !include-raw-escape: build-rpm.sh
323 - install-test-uninstall-rpm
325 # Test Oxygen pre-release autorelease tarball
326 # NB: This will need to be updated as old builds expire
328 # yamllint disable-line rule:line-length
329 # 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'
330 # - shell: !include-raw-escape: build-rpm.sh
331 # - install-test-uninstall-rpm
333 # Test latest Oxygen snapshot
335 properties-content: 'STREAM=oxygen'
336 - shell: !include-raw: build-rpm-snap.sh
337 - install-test-uninstall-rpm
339 # Test Fluorine ('Managed Release Common Distro') release tarball
341 # yamllint disable-line rule:line-length
342 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
343 - shell: !include-raw-escape: build-rpm.sh
344 - install-test-uninstall-rpm
346 # Test Fluorine SR1 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.1/karaf-0.9.1.tar.gz'
350 - shell: !include-raw-escape: build-rpm.sh
351 - install-test-uninstall-rpm
353 # Test Fluorine SR2 release tarball
355 # yamllint disable-line rule:line-length
356 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'
357 - shell: !include-raw-escape: build-rpm.sh
358 - install-test-uninstall-rpm
360 # Test Neon release tarball
362 # yamllint disable-line rule:line-length
363 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
364 - shell: !include-raw-escape: build-rpm.sh
365 - install-test-uninstall-rpm
367 # Test Fluorine pre-release autorelease tarball
368 # NB: This will need to be updated as old builds expire
370 # yamllint disable-line rule:line-length
371 # 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'
372 # - shell: !include-raw-escape: build-rpm.sh
373 # - install-test-uninstall-rpm
375 # Test Fluorine multipatch zip (no parallel tarball available)
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/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.2-SNAPSHOT/karaf-0.9.2-20181222.162905-8.zip'
380 # - shell: !include-raw-escape: build-rpm.sh
381 # - install-test-uninstall-rpm
383 # Test latest Fluorine snapshot
385 properties-content: 'STREAM=fluorine'
386 - shell: !include-raw: build-rpm-snap.sh
387 - install-test-uninstall-rpm
389 # Test Neon pre-release autorelease tarball
390 # NB: This will need to be updated as old builds expire
392 # yamllint disable-line rule:line-length
393 # 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'
394 # - shell: !include-raw-escape: build-rpm.sh
395 # - install-test-uninstall-rpm
397 # Test Neon multipatch zip (no parallel tarball available)
398 # NB: This will need to be updated as old builds expire
400 # yamllint disable-line rule:line-length
401 # 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'
402 # - shell: !include-raw-escape: build-rpm.sh
403 # - install-test-uninstall-rpm
405 # Test latest Neon snapshot
407 properties-content: 'STREAM=neon'
408 - shell: !include-raw: build-rpm-snap.sh
409 - install-test-uninstall-rpm
414 server-name: '{gerrit-server-name}'
416 - comment-added-contains-event:
417 comment-contains-value: 'verify-rpm-full'
419 - project-compare-type: ANT
420 project-pattern: '{project}'
422 - branch-compare-type: ANT
423 branch-pattern: '**/{branch}'
430 name: 'packaging-test-rpm-master'
432 node: centos7-builder-2c-2g
435 disabled: '{disable-job}'
438 - opendaylight-infra-parameters:
439 os-cloud: '{os-cloud}'
442 refspec: 'refs/heads/{branch}'
443 artifacts: '{archive-artifacts}'
446 # yamllint disable-line rule:line-length
447 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
448 description: 'Link to .repo or .rpm file'
451 - integration-gerrit-scm:
453 refspec: '$GERRIT_REFSPEC'
457 - opendaylight-infra-wrappers:
458 build-timeout: '{build-timeout}'
462 # Install expect to interact with Karaf shell
463 # Install nmap to check status of ODL's SSH port
464 sudo yum install -y expect nmap
465 - shell: !include-raw-escape: install-rpm.sh
466 - shell: !include-raw: start-odl.sh
467 - shell: !include-raw-escape: test-ports-nofeature.sh
468 - shell: !include-raw: test-karaf-oxygensafe.expect
469 # Disable this test until ODLPARENT-139 is fixed
470 # - shell: !include-raw-escape: test-rest-ok.sh
471 - shell: !include-raw: stop-odl.sh
472 - shell: !include-raw: uninstall-rpm.sh
478 # TODO: Remove the archive publisher
479 # small data should be stored on logs.opendaylight.org
480 # large data should be stored on nexus.opendaylight.org
490 name: 'packaging-test-rpm-upgrade-master'
494 node: centos7-builder-2c-2g
495 disabled: '{disable-job}'
498 - opendaylight-infra-parameters:
499 os-cloud: '{os-cloud}'
502 refspec: 'refs/heads/{branch}'
503 artifacts: '{archive-artifacts}'
506 - integration-gerrit-scm:
508 refspec: '$GERRIT_REFSPEC'
512 - opendaylight-infra-wrappers:
513 build-timeout: '{build-timeout}'
516 # Tests (current and future):
517 # * Install latest release, stop/uninstall, install latest CD
518 # * Upgrade from latest release latest CD
519 # * TODO: Upgrade from latest release to proposed packaging/** logic
520 # * TODO: Upgrade from CD to proposed packaging/** logic
521 # * TODO: Upgrade from proposed packaging/** logic (older ODL) to
522 # proposed packaging logic (latest ODL)
524 # Test 1: Install latest release, stop/uninstall, install latest CD
526 # yamllint disable-line rule:line-length
527 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
528 - install-start-test-stop-uninstall-rpm
530 # yamllint disable-line rule:line-length
531 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
532 - install-start-test-stop-uninstall-rpm
534 # Test 2: Install latest release, stop, upgrade to latest CD
536 # yamllint disable-line rule:line-length
537 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
538 - install-start-test-stop-rpm
540 # yamllint disable-line rule:line-length
541 properties-content: 'REPO_CFG_FILE_URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
542 - installrepcfg-upgrade-start-test-stop-rpm
546 - gerrit-trigger-patch-submitted:
547 gerrit-server-name: '{gerrit-server-name}'
558 name: 'packaging-test-deb-master'
560 node: ubuntu1604-mininet-ovs-25-1c-4g
563 disabled: '{disable-job}'
566 - opendaylight-infra-parameters:
567 os-cloud: '{os-cloud}'
570 refspec: 'refs/heads/{branch}'
571 artifacts: '{archive-artifacts}'
574 default: 'ppa:odl-team/oxygen'
575 description: 'Link to .deb package or name of PPA repo'
578 - integration-gerrit-scm:
580 refspec: '$GERRIT_REFSPEC'
584 - opendaylight-infra-wrappers:
585 build-timeout: '{build-timeout}'
588 - shell: !include-raw-escape: install-deb.sh
589 - shell: !include-raw: start-odl.sh
590 - shell: !include-raw-escape: test-ports-nofeature.sh
592 # Install expect to interact with Karaf shell
593 # Install nmap to check status of ODL's SSH port
594 sudo apt-get install -y expect nmap
595 - shell: !include-raw: test-karaf-oxygensafe.expect
596 # Disable this test until ODLPARENT-139 is fixed
597 # - shell: !include-raw-escape: test-rest-ok.sh
598 - shell: !include-raw: stop-odl.sh
599 - shell: !include-raw-escape: uninstall-deb.sh
609 name: 'packaging-build-deb-{stream}'
611 node: ubuntu1604-mininet-ovs-25-1c-4g
614 project-type: freestyle
615 disabled: '{disable-job}'
622 - opendaylight-infra-properties:
623 build-days-to-keep: 7
626 - opendaylight-infra-parameters:
627 os-cloud: '{os-cloud}'
630 refspec: 'refs/heads/{branch}'
631 artifacts: '{archive-artifacts}'
632 - lf-infra-maven-parameters:
633 mvn-opts: '{mvn-opts}'
634 mvn-params: '{mvn-params}'
635 mvn-version: '{mvn-version}'
636 staging-profile-id: ''
639 # FIXME: Update the default value to an active stream.
640 # yamllint disable-line rule:line-length
641 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'
642 description: 'URL to ODL tarball artifact to repackage into .deb'
646 description: 'Name of person who defined .deb'
648 name: CHANGELOG_EMAIL
649 default: 'jenkins-donotreply@opendaylight.org'
650 description: 'Email of person who defined .deb'
652 name: PKG_VERSION_OVERRIDE
654 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
657 - integration-gerrit-scm:
659 refspec: '$GERRIT_REFSPEC'
663 - opendaylight-infra-wrappers:
664 build-timeout: '{build-timeout}'
668 - shell: !include-raw: build-deb.sh
669 - install-test-uninstall-deb
670 - lf-infra-deploy-maven-file:
671 global-settings-file: 'global-settings'
672 settings-file: 'packaging-settings'
673 mvn-version: '{mvn-version}'
674 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
675 group-id: '{group-id}'
676 upload-files-dir: '{upload-files-dir}'
677 maven-repo-url: '{maven-repo-url}'
689 project-name: packaging