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}'
101 - shell: !include-raw-escape: build-rpm.sh
102 - install-test-uninstall-rpm
103 - lf-infra-deploy-maven-file:
104 global-settings-file: 'global-settings'
105 settings-file: 'packaging-settings'
106 mvn-version: '{mvn-version}'
107 repo-id: '$DEPLOY_TO_REPO'
108 group-id: '{group-id}'
109 upload-files-dir: '{upload-files-dir}'
110 maven-repo-url: '{maven-repo-url}'
117 name: 'packaging-build-rpm-{distro}-snap-{stream}'
119 node: centos7-docker-2c-2g
121 project-type: freestyle
128 - opendaylight-infra-properties:
129 build-days-to-keep: 7
132 - opendaylight-infra-parameters:
133 os-cloud: '{os-cloud}'
136 refspec: 'refs/heads/{branch}'
137 artifacts: '{archive-artifacts}'
138 - lf-infra-maven-parameters:
139 mvn-opts: '{mvn-opts}'
140 mvn-params: '{mvn-params}'
141 mvn-version: '{mvn-version}'
142 staging-profile-id: ''
146 description: 'Name of person who defined RPM'
148 name: CHANGELOG_EMAIL
149 default: 'jenkins-donotreply@opendaylight.org'
150 description: 'Email of person who defined RPM'
153 - integration-gerrit-scm:
155 refspec: '$GERRIT_REFSPEC'
159 - opendaylight-infra-wrappers:
160 build-timeout: '{build-timeout}'
164 properties-content: |
167 - shell: !include-raw: build-rpm-snap-docker.sh
168 - shell: !include-raw: test-rpm-docker.sh
169 - lf-infra-deploy-maven-file:
170 global-settings-file: 'global-settings'
171 settings-file: 'packaging-settings'
172 mvn-version: '{mvn-version}'
173 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
174 group-id: '{group-id}'
175 upload-files-dir: '{upload-files-dir}'
176 maven-repo-url: '{maven-repo-url}'
186 name: 'packaging-verify-rpm-master'
188 node: centos7-builder-2c-2g
190 project-type: freestyle
193 - opendaylight-infra-parameters:
194 os-cloud: '{os-cloud}'
197 refspec: 'refs/heads/{branch}'
198 artifacts: '{archive-artifacts}'
201 - integration-gerrit-scm:
203 refspec: '$GERRIT_REFSPEC'
207 - opendaylight-infra-wrappers:
208 build-timeout: '{build-timeout}'
211 # Test Oxygen SR3 release tarball
213 # yamllint disable-line rule:line-length
214 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'
215 - shell: !include-raw-escape: build-rpm.sh
216 - install-test-uninstall-rpm
218 # Test Fluorine ('Managed Release Common Distro') release tarball
220 # yamllint disable-line rule:line-length
221 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
222 - shell: !include-raw-escape: build-rpm.sh
223 - install-test-uninstall-rpm
225 # Test Neon pre-release autorelease tarball
226 # NB: This will need to be updated as old builds expire
228 # yamllint disable-line rule:line-length
229 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'
230 - shell: !include-raw-escape: build-rpm.sh
231 - install-test-uninstall-rpm
233 # Test Neon multipatch zip (no parallel tarball available)
234 # NB: This will need to be updated as old builds expire
236 # yamllint disable-line rule:line-length
237 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'
238 - shell: !include-raw-escape: build-rpm.sh
239 - install-test-uninstall-rpm
241 # Test latest Neon snapshot
243 properties-content: 'STREAM=neon'
244 - shell: !include-raw: build-rpm-snap.sh
245 - install-test-uninstall-rpm
249 - gerrit-trigger-patch-submitted:
250 gerrit-server-name: '{gerrit-server-name}'
261 name: 'packaging-verify-full-rpm-master'
263 node: centos7-builder-2c-2g
265 project-type: freestyle
268 - opendaylight-infra-parameters:
269 os-cloud: '{os-cloud}'
272 refspec: 'refs/heads/{branch}'
273 artifacts: '{archive-artifacts}'
276 - integration-gerrit-scm:
278 refspec: '$GERRIT_REFSPEC'
282 - opendaylight-infra-wrappers:
283 build-timeout: '{build-timeout}'
286 # Test Oxygen SR3 release tarball
288 # yamllint disable-line rule:line-length
289 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'
290 - shell: !include-raw-escape: build-rpm.sh
291 - install-test-uninstall-rpm
293 # Test Oxygen pre-release autorelease tarball
294 # NB: This will need to be updated as old builds expire
296 # yamllint disable-line rule:line-length
297 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'
298 - shell: !include-raw-escape: build-rpm.sh
299 - install-test-uninstall-rpm
301 # Test latest Oxygen snapshot
303 properties-content: 'STREAM=oxygen'
304 - shell: !include-raw: build-rpm-snap.sh
305 - install-test-uninstall-rpm
307 # Test Fluorine ('Managed Release Common Distro') release tarball
309 # yamllint disable-line rule:line-length
310 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
311 - shell: !include-raw-escape: build-rpm.sh
312 - install-test-uninstall-rpm
314 # Test Fluorine pre-release autorelease tarball
315 # NB: This will need to be updated as old builds expire
317 # yamllint disable-line rule:line-length
318 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'
319 - shell: !include-raw-escape: build-rpm.sh
320 - install-test-uninstall-rpm
322 # Test Fluorine multipatch zip (no parallel tarball available)
323 # NB: This will need to be updated as old builds expire
325 # yamllint disable-line rule:line-length
326 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'
327 - shell: !include-raw-escape: build-rpm.sh
328 - install-test-uninstall-rpm
330 # Test latest Fluorine snapshot
332 properties-content: 'STREAM=fluorine'
333 - shell: !include-raw: build-rpm-snap.sh
334 - install-test-uninstall-rpm
336 # Test Neon pre-release autorelease tarball
337 # NB: This will need to be updated as old builds expire
339 # yamllint disable-line rule:line-length
340 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'
341 - shell: !include-raw-escape: build-rpm.sh
342 - install-test-uninstall-rpm
344 # Test Neon multipatch zip (no parallel tarball available)
345 # NB: This will need to be updated as old builds expire
347 # yamllint disable-line rule:line-length
348 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'
349 - shell: !include-raw-escape: build-rpm.sh
350 - install-test-uninstall-rpm
352 # Test latest Neon snapshot
354 properties-content: 'STREAM=neon'
355 - shell: !include-raw: build-rpm-snap.sh
356 - install-test-uninstall-rpm
361 server-name: '{gerrit-server-name}'
363 - comment-added-contains-event:
364 comment-contains-value: 'verify-rpm-full'
366 - project-compare-type: ANT
367 project-pattern: '{project}'
369 - branch-compare-type: ANT
370 branch-pattern: '**/{branch}'
377 name: 'packaging-test-rpm-master'
379 node: centos7-builder-2c-2g
382 - opendaylight-infra-parameters:
383 os-cloud: '{os-cloud}'
386 refspec: 'refs/heads/{branch}'
387 artifacts: '{archive-artifacts}'
390 # yamllint disable-line rule:line-length
391 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
392 description: 'Link to .repo or .rpm file'
395 - integration-gerrit-scm:
397 refspec: '$GERRIT_REFSPEC'
401 - opendaylight-infra-wrappers:
402 build-timeout: '{build-timeout}'
406 # Install expect to interact with Karaf shell
407 # Install nmap to check status of ODL's SSH port
408 sudo yum install -y expect nmap
409 - shell: !include-raw-escape: install-rpm.sh
410 - shell: !include-raw: start-odl.sh
411 - shell: !include-raw-escape: test-ports-nofeature.sh
412 - shell: !include-raw: test-karaf-oxygensafe.expect
413 # Disable this test until ODLPARENT-139 is fixed
414 # - shell: !include-raw-escape: test-rest-ok.sh
415 - shell: !include-raw: stop-odl.sh
416 - shell: !include-raw: uninstall-rpm.sh
422 # TODO: Remove the archive publisher
423 # small data should be stored on logs.opendaylight.org
424 # large data should be stored on nexus.opendaylight.org
434 name: 'packaging-test-rpm-upgrade-master'
436 node: centos7-builder-2c-2g
439 - opendaylight-infra-parameters:
440 os-cloud: '{os-cloud}'
443 refspec: 'refs/heads/{branch}'
444 artifacts: '{archive-artifacts}'
447 - integration-gerrit-scm:
449 refspec: '$GERRIT_REFSPEC'
453 - opendaylight-infra-wrappers:
454 build-timeout: '{build-timeout}'
457 # Tests (current and future):
458 # * Install latest release, stop/uninstall, install latest CD
459 # * Upgrade from latest release latest CD
460 # * TODO: Upgrade from latest release to proposed packaging/** logic
461 # * TODO: Upgrade from CD to proposed packaging/** logic
462 # * TODO: Upgrade from proposed packaging/** logic (older ODL) to
463 # proposed packaging logic (latest ODL)
465 # Test 1: Install latest release, stop/uninstall, install latest CD
467 # yamllint disable-line rule:line-length
468 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
469 - install-start-test-stop-uninstall-rpm
471 # yamllint disable-line rule:line-length
472 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
473 - install-start-test-stop-uninstall-rpm
475 # Test 2: Install latest release, stop, upgrade to latest CD
477 # yamllint disable-line rule:line-length
478 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
479 - install-start-test-stop-rpm
481 # yamllint disable-line rule:line-length
482 properties-content: 'REPO_CFG_FILE_URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
483 - installrepcfg-upgrade-start-test-stop-rpm
487 - gerrit-trigger-patch-submitted:
488 gerrit-server-name: '{gerrit-server-name}'
499 name: 'packaging-test-deb-master'
501 node: ubuntu1604-mininet-ovs-25-1c-4g
504 - opendaylight-infra-parameters:
505 os-cloud: '{os-cloud}'
508 refspec: 'refs/heads/{branch}'
509 artifacts: '{archive-artifacts}'
512 default: 'ppa:odl-team/oxygen'
513 description: 'Link to .deb package or name of PPA repo'
516 - integration-gerrit-scm:
518 refspec: '$GERRIT_REFSPEC'
522 - opendaylight-infra-wrappers:
523 build-timeout: '{build-timeout}'
526 - shell: !include-raw-escape: install-deb.sh
527 - shell: !include-raw: start-odl.sh
528 - shell: !include-raw-escape: test-ports-nofeature.sh
530 # Install expect to interact with Karaf shell
531 # Install nmap to check status of ODL's SSH port
532 sudo apt-get install -y expect nmap
533 - shell: !include-raw: test-karaf-oxygensafe.expect
534 # Disable this test until ODLPARENT-139 is fixed
535 # - shell: !include-raw-escape: test-rest-ok.sh
536 - shell: !include-raw: stop-odl.sh
537 - shell: !include-raw-escape: uninstall-deb.sh
547 name: 'packaging-build-deb-{stream}'
549 node: ubuntu1604-mininet-ovs-25-1c-4g
551 project-type: freestyle
558 - opendaylight-infra-properties:
559 build-days-to-keep: 7
562 - opendaylight-infra-parameters:
563 os-cloud: '{os-cloud}'
566 refspec: 'refs/heads/{branch}'
567 artifacts: '{archive-artifacts}'
568 - lf-infra-maven-parameters:
569 mvn-opts: '{mvn-opts}'
570 mvn-params: '{mvn-params}'
571 mvn-version: '{mvn-version}'
572 staging-profile-id: ''
575 # FIXME: Update the default value to an active stream.
576 # yamllint disable-line rule:line-length
577 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'
578 description: 'URL to ODL tarball artifact to repackage into .deb'
582 description: 'Name of person who defined .deb'
584 name: CHANGELOG_EMAIL
585 default: 'jenkins-donotreply@opendaylight.org'
586 description: 'Email of person who defined .deb'
588 name: PKG_VERSION_OVERRIDE
590 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
593 - integration-gerrit-scm:
595 refspec: '$GERRIT_REFSPEC'
599 - opendaylight-infra-wrappers:
600 build-timeout: '{build-timeout}'
603 - shell: !include-raw: build-deb.sh
604 - install-test-uninstall-deb
605 - lf-infra-deploy-maven-file:
606 global-settings-file: 'global-settings'
607 settings-file: 'packaging-settings'
608 mvn-version: '{mvn-version}'
609 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
610 group-id: '{group-id}'
611 upload-files-dir: '{upload-files-dir}'
612 maven-repo-url: '{maven-repo-url}'
624 project-name: packaging