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}':
17 - 'packaging-verify-full-rpm-master'
18 - 'packaging-verify-rpm-master'
19 - 'packaging-test-rpm-master'
20 - 'packaging-test-rpm-upgrade-master'
21 - 'packaging-test-deb-master':
27 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 Neon SR2 ('Managed Release Common Distro') release tarball
224 # yamllint disable-line rule:line-length
225 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.10.2/opendaylight-0.10.2.tar.gz'
226 - shell: !include-raw-escape: build-rpm.sh
227 - install-test-uninstall-rpm
229 # Test Sodium ('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.11.0/opendaylight-0.11.0.tar.gz'
233 - shell: !include-raw-escape: build-rpm.sh
234 - install-test-uninstall-rpm
236 # Test latest Neon snapshot
238 properties-content: 'STREAM=neon'
239 - shell: !include-raw: build-rpm-snap.sh
240 - install-test-uninstall-rpm
242 # Test latest Sodium snapshot
244 properties-content: 'STREAM=sodium'
245 - shell: !include-raw: build-rpm-snap.sh
246 - install-test-uninstall-rpm
250 - gerrit-trigger-patch-submitted:
251 gerrit-server-name: '{gerrit-server-name}'
262 name: 'packaging-verify-full-rpm-master'
264 node: centos7-builder-2c-2g
267 project-type: freestyle
268 disabled: '{disable-job}'
271 - opendaylight-infra-parameters:
272 os-cloud: '{os-cloud}'
275 refspec: 'refs/heads/{branch}'
276 artifacts: '{archive-artifacts}'
279 - integration-gerrit-scm:
281 refspec: '$GERRIT_REFSPEC'
285 - opendaylight-infra-wrappers:
286 build-timeout: '{build-timeout}'
289 # Test Neon SR2 release tarball
291 # yamllint disable-line rule:line-length
292 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.10.2/karaf-0.10.2.tar.gz'
293 - shell: !include-raw-escape: build-rpm.sh
294 - install-test-uninstall-rpm
296 # Test Sodium release tarball
298 # yamllint disable-line rule:line-length
299 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.11.0/karaf-0.11.0.tar.gz'
300 - shell: !include-raw-escape: build-rpm.sh
301 - install-test-uninstall-rpm
303 # Test Neon pre-release autorelease tarball
304 # NB: This will need to be updated as old builds expire
305 # NB: Commented out to reduce maintenance
307 # yamllint disable-line rule:line-length
308 # 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'
309 # - shell: !include-raw-escape: build-rpm.sh
310 # - install-test-uninstall-rpm
312 # Test Neon multipatch zip (no parallel tarball available)
313 # NB: This will need to be updated as old builds expire
314 # NB: Commented out to reduce maintenance
316 # yamllint disable-line rule:line-length
317 # 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'
318 # - shell: !include-raw-escape: build-rpm.sh
319 # - install-test-uninstall-rpm
321 # Test latest Neon snapshot
323 properties-content: 'STREAM=neon'
324 - shell: !include-raw: build-rpm-snap.sh
325 - install-test-uninstall-rpm
327 # Test latest Sodium snapshot
329 properties-content: 'STREAM=sodium'
330 - shell: !include-raw: build-rpm-snap.sh
331 - install-test-uninstall-rpm
336 server-name: '{gerrit-server-name}'
338 - comment-added-contains-event:
339 comment-contains-value: 'verify-rpm-full'
341 - project-compare-type: ANT
342 project-pattern: '{project}'
344 - branch-compare-type: ANT
345 branch-pattern: '**/{branch}'
352 name: 'packaging-test-rpm-master'
354 node: centos7-builder-2c-2g
357 disabled: '{disable-job}'
360 - opendaylight-infra-parameters:
361 os-cloud: '{os-cloud}'
364 refspec: 'refs/heads/{branch}'
365 artifacts: '{archive-artifacts}'
368 # yamllint disable-line rule:line-length
369 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
370 description: 'Link to .repo or .rpm file'
373 - integration-gerrit-scm:
375 refspec: '$GERRIT_REFSPEC'
379 - opendaylight-infra-wrappers:
380 build-timeout: '{build-timeout}'
384 # Install expect to interact with Karaf shell
385 # Install nmap to check status of ODL's SSH port
386 sudo yum install -y expect nmap
387 - shell: !include-raw-escape: install-rpm.sh
388 - shell: !include-raw: start-odl.sh
389 - shell: !include-raw-escape: test-ports-nofeature.sh
390 - shell: !include-raw: test-karaf-oxygensafe.expect
391 # Disable this test until ODLPARENT-139 is fixed
392 # - shell: !include-raw-escape: test-rest-ok.sh
393 - shell: !include-raw: stop-odl.sh
394 - shell: !include-raw: uninstall-rpm.sh
400 # TODO: Remove the archive publisher
401 # small data should be stored on logs.opendaylight.org
402 # large data should be stored on nexus.opendaylight.org
412 name: 'packaging-test-rpm-upgrade-master'
416 node: centos7-builder-2c-2g
417 disabled: '{disable-job}'
420 - opendaylight-infra-parameters:
421 os-cloud: '{os-cloud}'
424 refspec: 'refs/heads/{branch}'
425 artifacts: '{archive-artifacts}'
428 - integration-gerrit-scm:
430 refspec: '$GERRIT_REFSPEC'
434 - opendaylight-infra-wrappers:
435 build-timeout: '{build-timeout}'
438 # Tests (current and future):
439 # * Install latest release, stop/uninstall, install latest CD
440 # * Upgrade from latest release latest CD
441 # * TODO: Upgrade from latest release to proposed packaging/** logic
442 # * TODO: Upgrade from CD to proposed packaging/** logic
443 # * TODO: Upgrade from proposed packaging/** logic (older ODL) to
444 # proposed packaging logic (latest ODL)
446 # Test 1: Install latest release, stop/uninstall, install latest CD
448 # yamllint disable-line rule:line-length
449 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
450 - install-start-test-stop-uninstall-rpm
452 # yamllint disable-line rule:line-length
453 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
454 - install-start-test-stop-uninstall-rpm
456 # Test 2: Install latest release, stop, upgrade to latest CD
458 # yamllint disable-line rule:line-length
459 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
460 - install-start-test-stop-rpm
462 # yamllint disable-line rule:line-length
463 properties-content: 'REPO_CFG_FILE_URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
464 - installrepcfg-upgrade-start-test-stop-rpm
468 - gerrit-trigger-patch-submitted:
469 gerrit-server-name: '{gerrit-server-name}'
480 name: 'packaging-test-deb-master'
482 node: ubuntu1604-mininet-ovs-25-1c-4g
485 disabled: '{disable-job}'
488 - opendaylight-infra-parameters:
489 os-cloud: '{os-cloud}'
492 refspec: 'refs/heads/{branch}'
493 artifacts: '{archive-artifacts}'
496 default: 'ppa:odl-team/oxygen'
497 description: 'Link to .deb package or name of PPA repo'
500 - integration-gerrit-scm:
502 refspec: '$GERRIT_REFSPEC'
506 - opendaylight-infra-wrappers:
507 build-timeout: '{build-timeout}'
510 - shell: !include-raw-escape: install-deb.sh
511 - shell: !include-raw: start-odl.sh
512 - shell: !include-raw-escape: test-ports-nofeature.sh
514 # Install expect to interact with Karaf shell
515 # Install nmap to check status of ODL's SSH port
516 sudo apt-get install -y expect nmap
517 - shell: !include-raw: test-karaf-oxygensafe.expect
518 # Disable this test until ODLPARENT-139 is fixed
519 # - shell: !include-raw-escape: test-rest-ok.sh
520 - shell: !include-raw: stop-odl.sh
521 - shell: !include-raw-escape: uninstall-deb.sh
531 name: 'packaging-build-deb-{stream}'
533 node: ubuntu1604-mininet-ovs-25-1c-4g
536 project-type: freestyle
537 disabled: '{disable-job}'
544 - opendaylight-infra-properties:
545 build-days-to-keep: 7
548 - opendaylight-infra-parameters:
549 os-cloud: '{os-cloud}'
552 refspec: 'refs/heads/{branch}'
553 artifacts: '{archive-artifacts}'
554 - lf-infra-maven-parameters:
555 mvn-opts: '{mvn-opts}'
556 mvn-params: '{mvn-params}'
557 mvn-version: '{mvn-version}'
558 staging-profile-id: ''
561 # FIXME: Update the default value to an active stream.
562 # yamllint disable-line rule:line-length
563 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'
564 description: 'URL to ODL tarball artifact to repackage into .deb'
568 description: 'Name of person who defined .deb'
570 name: CHANGELOG_EMAIL
571 default: 'jenkins-donotreply@opendaylight.org'
572 description: 'Email of person who defined .deb'
574 name: PKG_VERSION_OVERRIDE
576 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
579 - integration-gerrit-scm:
581 refspec: '$GERRIT_REFSPEC'
585 - opendaylight-infra-wrappers:
586 build-timeout: '{build-timeout}'
590 - shell: !include-raw: build-deb.sh
591 - install-test-uninstall-deb
592 - lf-infra-deploy-maven-file:
593 global-settings-file: 'global-settings'
594 settings-file: 'packaging-settings'
595 mvn-version: '{mvn-version}'
596 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
597 group-id: '{group-id}'
598 upload-files-dir: '{upload-files-dir}'
599 maven-repo-url: '{maven-repo-url}'
611 project-name: packaging