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'
38 # common parameters required for 'lf-infra-deploy-maven-file' builder
39 group-id: 'org.opendaylight.integration-packaging'
40 upload-files-dir: '$WORKSPACE/upload_files'
41 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
44 name: 'packaging-build-rpm-{stream}'
48 node: centos7-builder-2c-2g
50 project-type: freestyle
51 disabled: '{disable-job}'
58 - opendaylight-infra-properties:
62 - opendaylight-infra-parameters:
63 os-cloud: '{os-cloud}'
66 refspec: 'refs/heads/{branch}'
67 artifacts: '{archive-artifacts}'
68 - lf-infra-maven-parameters:
69 mvn-opts: '{mvn-opts}'
70 mvn-params: '{mvn-params}'
71 mvn-version: '{mvn-version}'
72 staging-profile-id: ''
75 # yamllint disable-line rule:line-length
76 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
77 description: 'URL to ODL tarball artifact to repackage into RPM'
81 description: 'Name of person who defined RPM'
84 default: 'jenkins-donotreply@opendaylight.org'
85 description: 'Email of person who defined RPM'
88 default: 'opendaylight-{stream}-epel-7-x86_64-devel'
89 description: 'Repository to deploy resulting package to'
91 name: PKG_VERSION_OVERRIDE
93 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
96 - integration-gerrit-scm:
98 refspec: '$GERRIT_REFSPEC'
102 - opendaylight-infra-wrappers:
103 build-timeout: '{build-timeout}'
107 - shell: !include-raw-escape: build-rpm.sh
108 - install-test-uninstall-rpm
109 - lf-infra-deploy-maven-file:
110 global-settings-file: 'global-settings'
111 settings-file: 'packaging-settings'
112 mvn-version: '{mvn-version}'
113 repo-id: '$DEPLOY_TO_REPO'
114 group-id: '{group-id}'
115 upload-files-dir: '{upload-files-dir}'
116 maven-repo-url: '{maven-repo-url}'
123 name: 'packaging-build-rpm-{distro}-snap-{stream}'
125 node: centos7-docker-2c-2g
128 project-type: freestyle
129 disabled: '{disable-job}'
136 - opendaylight-infra-properties:
137 build-days-to-keep: 7
140 - opendaylight-infra-parameters:
141 os-cloud: '{os-cloud}'
144 refspec: 'refs/heads/{branch}'
145 artifacts: '{archive-artifacts}'
146 - lf-infra-maven-parameters:
147 mvn-opts: '{mvn-opts}'
148 mvn-params: '{mvn-params}'
149 mvn-version: '{mvn-version}'
150 staging-profile-id: ''
154 description: 'Name of person who defined RPM'
156 name: CHANGELOG_EMAIL
157 default: 'jenkins-donotreply@opendaylight.org'
158 description: 'Email of person who defined RPM'
161 - integration-gerrit-scm:
163 refspec: '$GERRIT_REFSPEC'
167 - opendaylight-infra-wrappers:
168 build-timeout: '{build-timeout}'
173 properties-content: |
176 - shell: !include-raw: build-rpm-snap-docker.sh
177 - shell: !include-raw: test-rpm-docker.sh
178 - lf-infra-deploy-maven-file:
179 global-settings-file: 'global-settings'
180 settings-file: 'packaging-settings'
181 mvn-version: '{mvn-version}'
182 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
183 group-id: '{group-id}'
184 upload-files-dir: '{upload-files-dir}'
185 maven-repo-url: '{maven-repo-url}'
195 name: 'packaging-verify-rpm-master'
197 node: centos7-builder-2c-2g
200 project-type: freestyle
201 disabled: '{disable-job}'
204 - opendaylight-infra-parameters:
205 os-cloud: '{os-cloud}'
208 refspec: 'refs/heads/{branch}'
209 artifacts: '{archive-artifacts}'
212 - integration-gerrit-scm:
214 refspec: '$GERRIT_REFSPEC'
218 - opendaylight-infra-wrappers:
219 build-timeout: '{build-timeout}'
222 # Test Oxygen SR4 release tarball
224 # yamllint disable-line rule:line-length
225 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'
226 - shell: !include-raw-escape: build-rpm.sh
227 - install-test-uninstall-rpm
229 # Test Fluorine ('Managed Release Common Distro') release tarball
231 # yamllint disable-line rule:line-length
232 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
233 - shell: !include-raw-escape: build-rpm.sh
234 - install-test-uninstall-rpm
236 # Test Fluorine SR1 release tarball
238 # yamllint disable-line rule:line-length
239 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'
240 - shell: !include-raw-escape: build-rpm.sh
241 - install-test-uninstall-rpm
243 # Test Fluorine SR2 release tarball
245 # yamllint disable-line rule:line-length
246 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'
247 - shell: !include-raw-escape: build-rpm.sh
248 - install-test-uninstall-rpm
250 # Test Neon pre-release autorelease tarball
251 # NB: This will need to be updated as old builds expire
253 # yamllint disable-line rule:line-length
254 # 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'
255 # - shell: !include-raw-escape: build-rpm.sh
256 # - install-test-uninstall-rpm
258 # Test Neon multipatch zip (no parallel tarball available)
259 # NB: This will need to be updated as old builds expire
261 # yamllint disable-line rule:line-length
262 # 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'
263 # - shell: !include-raw-escape: build-rpm.sh
264 # - install-test-uninstall-rpm
266 # Test latest Neon snapshot
268 properties-content: 'STREAM=neon'
269 - shell: !include-raw: build-rpm-snap.sh
270 - install-test-uninstall-rpm
274 - gerrit-trigger-patch-submitted:
275 gerrit-server-name: '{gerrit-server-name}'
286 name: 'packaging-verify-full-rpm-master'
288 node: centos7-builder-2c-2g
291 project-type: freestyle
292 disabled: '{disable-job}'
295 - opendaylight-infra-parameters:
296 os-cloud: '{os-cloud}'
299 refspec: 'refs/heads/{branch}'
300 artifacts: '{archive-artifacts}'
303 - integration-gerrit-scm:
305 refspec: '$GERRIT_REFSPEC'
309 - opendaylight-infra-wrappers:
310 build-timeout: '{build-timeout}'
313 # Test Oxygen SR4 release tarball
315 # yamllint disable-line rule:line-length
316 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'
317 - shell: !include-raw-escape: build-rpm.sh
318 - install-test-uninstall-rpm
320 # Test Oxygen pre-release autorelease tarball
321 # NB: This will need to be updated as old builds expire
323 # yamllint disable-line rule:line-length
324 # 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'
325 # - shell: !include-raw-escape: build-rpm.sh
326 # - install-test-uninstall-rpm
328 # Test latest Oxygen snapshot
330 properties-content: 'STREAM=oxygen'
331 - shell: !include-raw: build-rpm-snap.sh
332 - install-test-uninstall-rpm
334 # Test Fluorine ('Managed Release Common Distro') release tarball
336 # yamllint disable-line rule:line-length
337 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
338 - shell: !include-raw-escape: build-rpm.sh
339 - install-test-uninstall-rpm
341 # Test Fluorine SR1 release tarball
343 # yamllint disable-line rule:line-length
344 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'
345 - shell: !include-raw-escape: build-rpm.sh
346 - install-test-uninstall-rpm
348 # Test Fluorine SR2 release tarball
350 # yamllint disable-line rule:line-length
351 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'
352 - shell: !include-raw-escape: build-rpm.sh
353 - install-test-uninstall-rpm
355 # Test Fluorine pre-release autorelease tarball
356 # NB: This will need to be updated as old builds expire
358 # yamllint disable-line rule:line-length
359 # 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'
360 # - shell: !include-raw-escape: build-rpm.sh
361 # - install-test-uninstall-rpm
363 # Test Fluorine multipatch zip (no parallel tarball available)
364 # NB: This will need to be updated as old builds expire
366 # yamllint disable-line rule:line-length
367 # 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'
368 # - shell: !include-raw-escape: build-rpm.sh
369 # - install-test-uninstall-rpm
371 # Test latest Fluorine snapshot
373 properties-content: 'STREAM=fluorine'
374 - shell: !include-raw: build-rpm-snap.sh
375 - install-test-uninstall-rpm
377 # Test Neon pre-release autorelease tarball
378 # NB: This will need to be updated as old builds expire
380 # yamllint disable-line rule:line-length
381 # 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'
382 # - shell: !include-raw-escape: build-rpm.sh
383 # - install-test-uninstall-rpm
385 # Test Neon multipatch zip (no parallel tarball available)
386 # NB: This will need to be updated as old builds expire
388 # yamllint disable-line rule:line-length
389 # 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'
390 # - shell: !include-raw-escape: build-rpm.sh
391 # - install-test-uninstall-rpm
393 # Test latest Neon snapshot
395 properties-content: 'STREAM=neon'
396 - shell: !include-raw: build-rpm-snap.sh
397 - install-test-uninstall-rpm
402 server-name: '{gerrit-server-name}'
404 - comment-added-contains-event:
405 comment-contains-value: 'verify-rpm-full'
407 - project-compare-type: ANT
408 project-pattern: '{project}'
410 - branch-compare-type: ANT
411 branch-pattern: '**/{branch}'
418 name: 'packaging-test-rpm-master'
420 node: centos7-builder-2c-2g
423 disabled: '{disable-job}'
426 - opendaylight-infra-parameters:
427 os-cloud: '{os-cloud}'
430 refspec: 'refs/heads/{branch}'
431 artifacts: '{archive-artifacts}'
434 # yamllint disable-line rule:line-length
435 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
436 description: 'Link to .repo or .rpm file'
439 - integration-gerrit-scm:
441 refspec: '$GERRIT_REFSPEC'
445 - opendaylight-infra-wrappers:
446 build-timeout: '{build-timeout}'
450 # Install expect to interact with Karaf shell
451 # Install nmap to check status of ODL's SSH port
452 sudo yum install -y expect nmap
453 - shell: !include-raw-escape: install-rpm.sh
454 - shell: !include-raw: start-odl.sh
455 - shell: !include-raw-escape: test-ports-nofeature.sh
456 - shell: !include-raw: test-karaf-oxygensafe.expect
457 # Disable this test until ODLPARENT-139 is fixed
458 # - shell: !include-raw-escape: test-rest-ok.sh
459 - shell: !include-raw: stop-odl.sh
460 - shell: !include-raw: uninstall-rpm.sh
466 # TODO: Remove the archive publisher
467 # small data should be stored on logs.opendaylight.org
468 # large data should be stored on nexus.opendaylight.org
478 name: 'packaging-test-rpm-upgrade-master'
482 node: centos7-builder-2c-2g
483 disabled: '{disable-job}'
486 - opendaylight-infra-parameters:
487 os-cloud: '{os-cloud}'
490 refspec: 'refs/heads/{branch}'
491 artifacts: '{archive-artifacts}'
494 - integration-gerrit-scm:
496 refspec: '$GERRIT_REFSPEC'
500 - opendaylight-infra-wrappers:
501 build-timeout: '{build-timeout}'
504 # Tests (current and future):
505 # * Install latest release, stop/uninstall, install latest CD
506 # * Upgrade from latest release latest CD
507 # * TODO: Upgrade from latest release to proposed packaging/** logic
508 # * TODO: Upgrade from CD to proposed packaging/** logic
509 # * TODO: Upgrade from proposed packaging/** logic (older ODL) to
510 # proposed packaging logic (latest ODL)
512 # Test 1: Install latest release, stop/uninstall, install latest CD
514 # yamllint disable-line rule:line-length
515 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
516 - install-start-test-stop-uninstall-rpm
518 # yamllint disable-line rule:line-length
519 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
520 - install-start-test-stop-uninstall-rpm
522 # Test 2: Install latest release, stop, upgrade to latest CD
524 # yamllint disable-line rule:line-length
525 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
526 - install-start-test-stop-rpm
528 # yamllint disable-line rule:line-length
529 properties-content: 'REPO_CFG_FILE_URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
530 - installrepcfg-upgrade-start-test-stop-rpm
534 - gerrit-trigger-patch-submitted:
535 gerrit-server-name: '{gerrit-server-name}'
546 name: 'packaging-test-deb-master'
548 node: ubuntu1604-mininet-ovs-25-1c-4g
551 disabled: '{disable-job}'
554 - opendaylight-infra-parameters:
555 os-cloud: '{os-cloud}'
558 refspec: 'refs/heads/{branch}'
559 artifacts: '{archive-artifacts}'
562 default: 'ppa:odl-team/oxygen'
563 description: 'Link to .deb package or name of PPA repo'
566 - integration-gerrit-scm:
568 refspec: '$GERRIT_REFSPEC'
572 - opendaylight-infra-wrappers:
573 build-timeout: '{build-timeout}'
576 - shell: !include-raw-escape: install-deb.sh
577 - shell: !include-raw: start-odl.sh
578 - shell: !include-raw-escape: test-ports-nofeature.sh
580 # Install expect to interact with Karaf shell
581 # Install nmap to check status of ODL's SSH port
582 sudo apt-get install -y expect nmap
583 - shell: !include-raw: test-karaf-oxygensafe.expect
584 # Disable this test until ODLPARENT-139 is fixed
585 # - shell: !include-raw-escape: test-rest-ok.sh
586 - shell: !include-raw: stop-odl.sh
587 - shell: !include-raw-escape: uninstall-deb.sh
597 name: 'packaging-build-deb-{stream}'
599 node: ubuntu1604-mininet-ovs-25-1c-4g
602 project-type: freestyle
603 disabled: '{disable-job}'
610 - opendaylight-infra-properties:
611 build-days-to-keep: 7
614 - opendaylight-infra-parameters:
615 os-cloud: '{os-cloud}'
618 refspec: 'refs/heads/{branch}'
619 artifacts: '{archive-artifacts}'
620 - lf-infra-maven-parameters:
621 mvn-opts: '{mvn-opts}'
622 mvn-params: '{mvn-params}'
623 mvn-version: '{mvn-version}'
624 staging-profile-id: ''
627 # FIXME: Update the default value to an active stream.
628 # yamllint disable-line rule:line-length
629 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'
630 description: 'URL to ODL tarball artifact to repackage into .deb'
634 description: 'Name of person who defined .deb'
636 name: CHANGELOG_EMAIL
637 default: 'jenkins-donotreply@opendaylight.org'
638 description: 'Email of person who defined .deb'
640 name: PKG_VERSION_OVERRIDE
642 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
645 - integration-gerrit-scm:
647 refspec: '$GERRIT_REFSPEC'
651 - opendaylight-infra-wrappers:
652 build-timeout: '{build-timeout}'
656 - shell: !include-raw: build-deb.sh
657 - install-test-uninstall-deb
658 - lf-infra-deploy-maven-file:
659 global-settings-file: 'global-settings'
660 settings-file: 'packaging-settings'
661 mvn-version: '{mvn-version}'
662 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
663 group-id: '{group-id}'
664 upload-files-dir: '{upload-files-dir}'
665 maven-repo-url: '{maven-repo-url}'
677 project-name: packaging