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'
37 # common parameters required for 'lf-infra-deploy-maven-file' builder
38 group-id: 'org.opendaylight.integration-packaging'
39 upload-files-dir: '$WORKSPACE/upload_files'
40 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
43 name: 'packaging-build-rpm-{stream}'
47 node: centos7-builder-2c-2g
49 project-type: freestyle
50 disabled: '{disable-job}'
57 - opendaylight-infra-properties:
61 - opendaylight-infra-parameters:
62 os-cloud: '{os-cloud}'
65 refspec: 'refs/heads/{branch}'
66 artifacts: '{archive-artifacts}'
67 - lf-infra-maven-parameters:
68 mvn-opts: '{mvn-opts}'
69 mvn-params: '{mvn-params}'
70 mvn-version: '{mvn-version}'
71 staging-profile-id: ''
74 # yamllint disable-line rule:line-length
75 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
76 description: 'URL to ODL tarball artifact to repackage into RPM'
80 description: 'Name of person who defined RPM'
83 default: 'jenkins-donotreply@opendaylight.org'
84 description: 'Email of person who defined RPM'
87 default: 'opendaylight-{stream}-epel-7-x86_64-devel'
88 description: 'Repository to deploy resulting package to'
90 name: PKG_VERSION_OVERRIDE
92 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
95 - integration-gerrit-scm:
97 refspec: '$GERRIT_REFSPEC'
101 - opendaylight-infra-wrappers:
102 build-timeout: '{build-timeout}'
106 - shell: !include-raw-escape: build-rpm.sh
107 - install-test-uninstall-rpm
108 - lf-infra-deploy-maven-file:
109 global-settings-file: 'global-settings'
110 settings-file: 'packaging-settings'
111 mvn-version: '{mvn-version}'
112 repo-id: '$DEPLOY_TO_REPO'
113 group-id: '{group-id}'
114 upload-files-dir: '{upload-files-dir}'
115 maven-repo-url: '{maven-repo-url}'
122 name: 'packaging-build-rpm-{distro}-snap-{stream}'
124 node: centos7-docker-2c-2g
127 project-type: freestyle
128 disabled: '{disable-job}'
135 - opendaylight-infra-properties:
136 build-days-to-keep: 7
139 - opendaylight-infra-parameters:
140 os-cloud: '{os-cloud}'
143 refspec: 'refs/heads/{branch}'
144 artifacts: '{archive-artifacts}'
145 - lf-infra-maven-parameters:
146 mvn-opts: '{mvn-opts}'
147 mvn-params: '{mvn-params}'
148 mvn-version: '{mvn-version}'
149 staging-profile-id: ''
153 description: 'Name of person who defined RPM'
155 name: CHANGELOG_EMAIL
156 default: 'jenkins-donotreply@opendaylight.org'
157 description: 'Email of person who defined RPM'
160 - integration-gerrit-scm:
162 refspec: '$GERRIT_REFSPEC'
166 - opendaylight-infra-wrappers:
167 build-timeout: '{build-timeout}'
172 properties-content: |
175 - shell: !include-raw: build-rpm-snap-docker.sh
176 - shell: !include-raw: test-rpm-docker.sh
177 - lf-infra-deploy-maven-file:
178 global-settings-file: 'global-settings'
179 settings-file: 'packaging-settings'
180 mvn-version: '{mvn-version}'
181 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
182 group-id: '{group-id}'
183 upload-files-dir: '{upload-files-dir}'
184 maven-repo-url: '{maven-repo-url}'
194 name: 'packaging-verify-rpm-master'
196 node: centos7-builder-2c-2g
199 project-type: freestyle
200 disabled: '{disable-job}'
203 - opendaylight-infra-parameters:
204 os-cloud: '{os-cloud}'
207 refspec: 'refs/heads/{branch}'
208 artifacts: '{archive-artifacts}'
211 - integration-gerrit-scm:
213 refspec: '$GERRIT_REFSPEC'
217 - opendaylight-infra-wrappers:
218 build-timeout: '{build-timeout}'
221 # Test Sodium ('Managed Release Common Distro') release tarball
223 # yamllint disable-line rule:line-length
224 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.11.0/opendaylight-0.11.0.tar.gz'
225 - shell: !include-raw-escape: build-rpm.sh
226 - install-test-uninstall-rpm
228 # Test latest Sodium snapshot
230 properties-content: 'STREAM=sodium'
231 - shell: !include-raw: build-rpm-snap.sh
232 - install-test-uninstall-rpm
236 - gerrit-trigger-patch-submitted:
237 gerrit-server-name: '{gerrit-server-name}'
248 name: 'packaging-verify-full-rpm-master'
250 node: centos7-builder-2c-2g
253 project-type: freestyle
254 disabled: '{disable-job}'
257 - opendaylight-infra-parameters:
258 os-cloud: '{os-cloud}'
261 refspec: 'refs/heads/{branch}'
262 artifacts: '{archive-artifacts}'
265 - integration-gerrit-scm:
267 refspec: '$GERRIT_REFSPEC'
271 - opendaylight-infra-wrappers:
272 build-timeout: '{build-timeout}'
275 # Test Sodium release tarball
277 # yamllint disable-line rule:line-length
278 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'
279 - shell: !include-raw-escape: build-rpm.sh
280 - install-test-uninstall-rpm
282 - shell: !include-raw: build-rpm-snap.sh
283 - install-test-uninstall-rpm
285 # Test latest Sodium snapshot
287 properties-content: 'STREAM=sodium'
288 - shell: !include-raw: build-rpm-snap.sh
289 - install-test-uninstall-rpm
294 server-name: '{gerrit-server-name}'
296 - comment-added-contains-event:
297 comment-contains-value: 'verify-rpm-full'
299 - project-compare-type: ANT
300 project-pattern: '{project}'
302 - branch-compare-type: ANT
303 branch-pattern: '**/{branch}'
310 name: 'packaging-test-rpm-master'
312 node: centos7-builder-2c-2g
315 disabled: '{disable-job}'
318 - opendaylight-infra-parameters:
319 os-cloud: '{os-cloud}'
322 refspec: 'refs/heads/{branch}'
323 artifacts: '{archive-artifacts}'
326 # yamllint disable-line rule:line-length
327 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
328 description: 'Link to .repo or .rpm file'
331 - integration-gerrit-scm:
333 refspec: '$GERRIT_REFSPEC'
337 - opendaylight-infra-wrappers:
338 build-timeout: '{build-timeout}'
342 # Install expect to interact with Karaf shell
343 # Install nmap to check status of ODL's SSH port
344 sudo yum install -y expect nmap
345 - shell: !include-raw-escape: install-rpm.sh
346 - shell: !include-raw: start-odl.sh
347 - shell: !include-raw-escape: test-ports-nofeature.sh
348 - shell: !include-raw: test-karaf-oxygensafe.expect
349 # Disable this test until ODLPARENT-139 is fixed
350 # - shell: !include-raw-escape: test-rest-ok.sh
351 - shell: !include-raw: stop-odl.sh
352 - shell: !include-raw: uninstall-rpm.sh
358 # TODO: Remove the archive publisher
359 # small data should be stored on logs.opendaylight.org
360 # large data should be stored on nexus.opendaylight.org
370 name: 'packaging-test-rpm-upgrade-master'
374 node: centos7-builder-2c-2g
375 disabled: '{disable-job}'
378 - opendaylight-infra-parameters:
379 os-cloud: '{os-cloud}'
382 refspec: 'refs/heads/{branch}'
383 artifacts: '{archive-artifacts}'
386 - integration-gerrit-scm:
388 refspec: '$GERRIT_REFSPEC'
392 - opendaylight-infra-wrappers:
393 build-timeout: '{build-timeout}'
396 # Tests (current and future):
397 # * Install latest release, stop/uninstall, install latest CD
398 # * Upgrade from latest release latest CD
399 # * TODO: Upgrade from latest release to proposed packaging/** logic
400 # * TODO: Upgrade from CD to proposed packaging/** logic
401 # * TODO: Upgrade from proposed packaging/** logic (older ODL) to
402 # proposed packaging logic (latest ODL)
404 # Test 1: Install latest release, stop/uninstall, install latest CD
406 # yamllint disable-line rule:line-length
407 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
408 - install-start-test-stop-uninstall-rpm
410 # yamllint disable-line rule:line-length
411 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
412 - install-start-test-stop-uninstall-rpm
414 # Test 2: Install latest release, stop, upgrade to latest CD
416 # yamllint disable-line rule:line-length
417 properties-content: 'URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo'
418 - install-start-test-stop-rpm
420 # yamllint disable-line rule:line-length
421 properties-content: 'REPO_CFG_FILE_URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
422 - installrepcfg-upgrade-start-test-stop-rpm
426 - gerrit-trigger-patch-submitted:
427 gerrit-server-name: '{gerrit-server-name}'
438 name: 'packaging-test-deb-master'
440 node: ubuntu1604-mininet-ovs-25-1c-4g
443 disabled: '{disable-job}'
446 - opendaylight-infra-parameters:
447 os-cloud: '{os-cloud}'
450 refspec: 'refs/heads/{branch}'
451 artifacts: '{archive-artifacts}'
454 default: 'ppa:odl-team/oxygen'
455 description: 'Link to .deb package or name of PPA repo'
458 - integration-gerrit-scm:
460 refspec: '$GERRIT_REFSPEC'
464 - opendaylight-infra-wrappers:
465 build-timeout: '{build-timeout}'
468 - shell: !include-raw-escape: install-deb.sh
469 - shell: !include-raw: start-odl.sh
470 - shell: !include-raw-escape: test-ports-nofeature.sh
472 # Install expect to interact with Karaf shell
473 # Install nmap to check status of ODL's SSH port
474 sudo apt-get install -y expect nmap
475 - shell: !include-raw: test-karaf-oxygensafe.expect
476 # Disable this test until ODLPARENT-139 is fixed
477 # - shell: !include-raw-escape: test-rest-ok.sh
478 - shell: !include-raw: stop-odl.sh
479 - shell: !include-raw-escape: uninstall-deb.sh
489 name: 'packaging-build-deb-{stream}'
491 node: ubuntu1604-mininet-ovs-25-1c-4g
494 project-type: freestyle
495 disabled: '{disable-job}'
502 - opendaylight-infra-properties:
503 build-days-to-keep: 7
506 - opendaylight-infra-parameters:
507 os-cloud: '{os-cloud}'
510 refspec: 'refs/heads/{branch}'
511 artifacts: '{archive-artifacts}'
512 - lf-infra-maven-parameters:
513 mvn-opts: '{mvn-opts}'
514 mvn-params: '{mvn-params}'
515 mvn-version: '{mvn-version}'
516 staging-profile-id: ''
519 # FIXME: Update the default value to an active stream.
520 # yamllint disable-line rule:line-length
521 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'
522 description: 'URL to ODL tarball artifact to repackage into .deb'
526 description: 'Name of person who defined .deb'
528 name: CHANGELOG_EMAIL
529 default: 'jenkins-donotreply@opendaylight.org'
530 description: 'Email of person who defined .deb'
532 name: PKG_VERSION_OVERRIDE
534 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
537 - integration-gerrit-scm:
539 refspec: '$GERRIT_REFSPEC'
543 - opendaylight-infra-wrappers:
544 build-timeout: '{build-timeout}'
548 - shell: !include-raw: build-deb.sh
549 - install-test-uninstall-deb
550 - lf-infra-deploy-maven-file:
551 global-settings-file: 'global-settings'
552 settings-file: 'packaging-settings'
553 mvn-version: '{mvn-version}'
554 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
555 group-id: '{group-id}'
556 upload-files-dir: '{upload-files-dir}'
557 maven-repo-url: '{maven-repo-url}'
568 - gerrit-info-yaml-verify
570 project-name: packaging
572 build-node: centos7-builder-2c-1g
578 project-name: packaging