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}'
44 node: centos7-builder-2c-2g
46 project-type: freestyle
53 - opendaylight-infra-properties:
57 - opendaylight-infra-parameters:
58 os-cloud: '{os-cloud}'
61 refspec: 'refs/heads/{branch}'
62 artifacts: '{archive-artifacts}'
63 - lf-infra-maven-parameters:
64 mvn-opts: '{mvn-opts}'
65 mvn-params: '{mvn-params}'
66 mvn-version: '{mvn-version}'
67 staging-profile-id: ''
70 # yamllint disable-line rule:line-length
71 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
72 description: 'URL to ODL tarball artifact to repackage into RPM'
76 description: 'Name of person who defined RPM'
79 default: 'jenkins-donotreply@opendaylight.org'
80 description: 'Email of person who defined RPM'
83 default: 'opendaylight-{stream}-epel-7-x86_64-devel'
84 description: 'Repository to deploy resulting package to'
86 name: PKG_VERSION_OVERRIDE
88 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
91 - integration-gerrit-scm:
93 refspec: '$GERRIT_REFSPEC'
97 - opendaylight-infra-wrappers:
98 build-timeout: '{build-timeout}'
102 - shell: !include-raw-escape: build-rpm.sh
103 - install-test-uninstall-rpm
104 - lf-infra-deploy-maven-file:
105 global-settings-file: 'global-settings'
106 settings-file: 'packaging-settings'
107 mvn-version: '{mvn-version}'
108 repo-id: '$DEPLOY_TO_REPO'
109 group-id: '{group-id}'
110 upload-files-dir: '{upload-files-dir}'
111 maven-repo-url: '{maven-repo-url}'
118 name: 'packaging-build-rpm-{distro}-snap-{stream}'
120 node: centos7-docker-2c-2g
122 project-type: freestyle
129 - opendaylight-infra-properties:
130 build-days-to-keep: 7
133 - opendaylight-infra-parameters:
134 os-cloud: '{os-cloud}'
137 refspec: 'refs/heads/{branch}'
138 artifacts: '{archive-artifacts}'
139 - lf-infra-maven-parameters:
140 mvn-opts: '{mvn-opts}'
141 mvn-params: '{mvn-params}'
142 mvn-version: '{mvn-version}'
143 staging-profile-id: ''
147 description: 'Name of person who defined RPM'
149 name: CHANGELOG_EMAIL
150 default: 'jenkins-donotreply@opendaylight.org'
151 description: 'Email of person who defined RPM'
154 - integration-gerrit-scm:
156 refspec: '$GERRIT_REFSPEC'
160 - opendaylight-infra-wrappers:
161 build-timeout: '{build-timeout}'
165 properties-content: |
168 - shell: !include-raw: build-rpm-snap-docker.sh
169 - shell: !include-raw: test-rpm-docker.sh
170 - lf-infra-deploy-maven-file:
171 global-settings-file: 'global-settings'
172 settings-file: 'packaging-settings'
173 mvn-version: '{mvn-version}'
174 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
175 group-id: '{group-id}'
176 upload-files-dir: '{upload-files-dir}'
177 maven-repo-url: '{maven-repo-url}'
187 name: 'packaging-verify-rpm-master'
189 node: centos7-builder-2c-2g
191 project-type: freestyle
194 - opendaylight-infra-parameters:
195 os-cloud: '{os-cloud}'
198 refspec: 'refs/heads/{branch}'
199 artifacts: '{archive-artifacts}'
202 - integration-gerrit-scm:
204 refspec: '$GERRIT_REFSPEC'
208 - opendaylight-infra-wrappers:
209 build-timeout: '{build-timeout}'
212 # Test Oxygen SR3 release tarball
214 # yamllint disable-line rule:line-length
215 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.3/karaf-0.8.3.tar.gz'
216 - shell: !include-raw-escape: build-rpm.sh
217 - install-test-uninstall-rpm
219 # Test Fluorine ('Managed Release Common Distro') release tarball
221 # yamllint disable-line rule:line-length
222 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
223 - shell: !include-raw-escape: build-rpm.sh
224 - install-test-uninstall-rpm
226 # Test Neon pre-release autorelease tarball
227 # NB: This will need to be updated as old builds expire
229 # yamllint disable-line rule:line-length
230 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2473/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
231 - shell: !include-raw-escape: build-rpm.sh
232 - install-test-uninstall-rpm
234 # Test Neon multipatch zip (no parallel tarball available)
235 # NB: This will need to be updated as old builds expire
237 # yamllint disable-line rule:line-length
238 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-20181106.150120-17.zip'
239 - shell: !include-raw-escape: build-rpm.sh
240 - install-test-uninstall-rpm
242 # Test latest Neon snapshot
244 properties-content: 'STREAM=neon'
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
266 project-type: freestyle
269 - opendaylight-infra-parameters:
270 os-cloud: '{os-cloud}'
273 refspec: 'refs/heads/{branch}'
274 artifacts: '{archive-artifacts}'
277 - integration-gerrit-scm:
279 refspec: '$GERRIT_REFSPEC'
283 - opendaylight-infra-wrappers:
284 build-timeout: '{build-timeout}'
287 # Test Oxygen SR3 release tarball
289 # yamllint disable-line rule:line-length
290 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.3/karaf-0.8.3.tar.gz'
291 - shell: !include-raw-escape: build-rpm.sh
292 - install-test-uninstall-rpm
294 # Test Oxygen pre-release autorelease tarball
295 # NB: This will need to be updated as old builds expire
297 # yamllint disable-line rule:line-length
298 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2472/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
299 - shell: !include-raw-escape: build-rpm.sh
300 - install-test-uninstall-rpm
302 # Test latest Oxygen snapshot
304 properties-content: 'STREAM=oxygen'
305 - shell: !include-raw: build-rpm-snap.sh
306 - install-test-uninstall-rpm
308 # Test Fluorine ('Managed Release Common Distro') release tarball
310 # yamllint disable-line rule:line-length
311 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
312 - shell: !include-raw-escape: build-rpm.sh
313 - install-test-uninstall-rpm
315 # Test Fluorine pre-release autorelease tarball
316 # NB: This will need to be updated as old builds expire
318 # yamllint disable-line rule:line-length
319 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2474/org/opendaylight/integration/karaf/0.9.1/karaf-0.9.1.tar.gz'
320 - shell: !include-raw-escape: build-rpm.sh
321 - install-test-uninstall-rpm
323 # Test Fluorine multipatch zip (no parallel tarball available)
324 # NB: This will need to be updated as old builds expire
326 # yamllint disable-line rule:line-length
327 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.1-SNAPSHOT/karaf-0.9.1-20181112.140627-11.zip'
328 - shell: !include-raw-escape: build-rpm.sh
329 - install-test-uninstall-rpm
331 # Test latest Fluorine snapshot
333 properties-content: 'STREAM=fluorine'
334 - shell: !include-raw: build-rpm-snap.sh
335 - install-test-uninstall-rpm
337 # Test Neon pre-release autorelease tarball
338 # NB: This will need to be updated as old builds expire
340 # yamllint disable-line rule:line-length
341 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2473/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
342 - shell: !include-raw-escape: build-rpm.sh
343 - install-test-uninstall-rpm
345 # Test Neon multipatch zip (no parallel tarball available)
346 # NB: This will need to be updated as old builds expire
348 # yamllint disable-line rule:line-length
349 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-20181106.150120-17.zip'
350 - shell: !include-raw-escape: build-rpm.sh
351 - install-test-uninstall-rpm
353 # Test latest Neon snapshot
355 properties-content: 'STREAM=neon'
356 - shell: !include-raw: build-rpm-snap.sh
357 - install-test-uninstall-rpm
362 server-name: '{gerrit-server-name}'
364 - comment-added-contains-event:
365 comment-contains-value: 'verify-rpm-full'
367 - project-compare-type: ANT
368 project-pattern: '{project}'
370 - branch-compare-type: ANT
371 branch-pattern: '**/{branch}'
378 name: 'packaging-test-rpm-master'
380 node: centos7-builder-2c-2g
383 - opendaylight-infra-parameters:
384 os-cloud: '{os-cloud}'
387 refspec: 'refs/heads/{branch}'
388 artifacts: '{archive-artifacts}'
391 # yamllint disable-line rule:line-length
392 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
393 description: 'Link to .repo or .rpm file'
396 - integration-gerrit-scm:
398 refspec: '$GERRIT_REFSPEC'
402 - opendaylight-infra-wrappers:
403 build-timeout: '{build-timeout}'
407 # Install expect to interact with Karaf shell
408 # Install nmap to check status of ODL's SSH port
409 sudo yum install -y expect nmap
410 - shell: !include-raw-escape: install-rpm.sh
411 - shell: !include-raw: start-odl.sh
412 - shell: !include-raw-escape: test-ports-nofeature.sh
413 - shell: !include-raw: test-karaf-oxygensafe.expect
414 # Disable this test until ODLPARENT-139 is fixed
415 # - shell: !include-raw-escape: test-rest-ok.sh
416 - shell: !include-raw: stop-odl.sh
417 - shell: !include-raw: uninstall-rpm.sh
423 # TODO: Remove the archive publisher
424 # small data should be stored on logs.opendaylight.org
425 # large data should be stored on nexus.opendaylight.org
435 name: 'packaging-test-rpm-upgrade-master'
437 node: centos7-builder-2c-2g
440 - opendaylight-infra-parameters:
441 os-cloud: '{os-cloud}'
444 refspec: 'refs/heads/{branch}'
445 artifacts: '{archive-artifacts}'
448 - integration-gerrit-scm:
450 refspec: '$GERRIT_REFSPEC'
454 - opendaylight-infra-wrappers:
455 build-timeout: '{build-timeout}'
458 # Tests (current and future):
459 # * Install latest release, stop/uninstall, install latest CD
460 # * Upgrade from latest release latest CD
461 # * TODO: Upgrade from latest release to proposed packaging/** logic
462 # * TODO: Upgrade from CD to proposed packaging/** logic
463 # * TODO: Upgrade from proposed packaging/** logic (older ODL) to
464 # proposed packaging logic (latest ODL)
466 # Test 1: Install latest release, stop/uninstall, install latest CD
468 # yamllint disable-line rule:line-length
469 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
470 - install-start-test-stop-uninstall-rpm
472 # yamllint disable-line rule:line-length
473 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
474 - install-start-test-stop-uninstall-rpm
476 # Test 2: Install latest release, stop, upgrade to latest CD
478 # yamllint disable-line rule:line-length
479 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
480 - install-start-test-stop-rpm
482 # yamllint disable-line rule:line-length
483 properties-content: 'REPO_CFG_FILE_URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
484 - installrepcfg-upgrade-start-test-stop-rpm
488 - gerrit-trigger-patch-submitted:
489 gerrit-server-name: '{gerrit-server-name}'
500 name: 'packaging-test-deb-master'
502 node: ubuntu1604-mininet-ovs-25-1c-4g
505 - opendaylight-infra-parameters:
506 os-cloud: '{os-cloud}'
509 refspec: 'refs/heads/{branch}'
510 artifacts: '{archive-artifacts}'
513 default: 'ppa:odl-team/oxygen'
514 description: 'Link to .deb package or name of PPA repo'
517 - integration-gerrit-scm:
519 refspec: '$GERRIT_REFSPEC'
523 - opendaylight-infra-wrappers:
524 build-timeout: '{build-timeout}'
527 - shell: !include-raw-escape: install-deb.sh
528 - shell: !include-raw: start-odl.sh
529 - shell: !include-raw-escape: test-ports-nofeature.sh
531 # Install expect to interact with Karaf shell
532 # Install nmap to check status of ODL's SSH port
533 sudo apt-get install -y expect nmap
534 - shell: !include-raw: test-karaf-oxygensafe.expect
535 # Disable this test until ODLPARENT-139 is fixed
536 # - shell: !include-raw-escape: test-rest-ok.sh
537 - shell: !include-raw: stop-odl.sh
538 - shell: !include-raw-escape: uninstall-deb.sh
548 name: 'packaging-build-deb-{stream}'
550 node: ubuntu1604-mininet-ovs-25-1c-4g
552 project-type: freestyle
559 - opendaylight-infra-properties:
560 build-days-to-keep: 7
563 - opendaylight-infra-parameters:
564 os-cloud: '{os-cloud}'
567 refspec: 'refs/heads/{branch}'
568 artifacts: '{archive-artifacts}'
569 - lf-infra-maven-parameters:
570 mvn-opts: '{mvn-opts}'
571 mvn-params: '{mvn-params}'
572 mvn-version: '{mvn-version}'
573 staging-profile-id: ''
576 # FIXME: Update the default value to an active stream.
577 # yamllint disable-line rule:line-length
578 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'
579 description: 'URL to ODL tarball artifact to repackage into .deb'
583 description: 'Name of person who defined .deb'
585 name: CHANGELOG_EMAIL
586 default: 'jenkins-donotreply@opendaylight.org'
587 description: 'Email of person who defined .deb'
589 name: PKG_VERSION_OVERRIDE
591 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
594 - integration-gerrit-scm:
596 refspec: '$GERRIT_REFSPEC'
600 - opendaylight-infra-wrappers:
601 build-timeout: '{build-timeout}'
604 - shell: !include-raw: build-deb.sh
605 - install-test-uninstall-deb
606 - lf-infra-deploy-maven-file:
607 global-settings-file: 'global-settings'
608 settings-file: 'packaging-settings'
609 mvn-version: '{mvn-version}'
610 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
611 group-id: '{group-id}'
612 upload-files-dir: '{upload-files-dir}'
613 maven-repo-url: '{maven-repo-url}'
625 project-name: packaging