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}"
121 name: "packaging-build-rpm-{distro}-snap-{stream}"
123 node: centos7-docker-2c-2g
126 project-type: freestyle
127 disabled: "{disable-job}"
134 - opendaylight-infra-properties:
135 build-days-to-keep: 7
138 - opendaylight-infra-parameters:
139 os-cloud: "{os-cloud}"
142 refspec: "refs/heads/{branch}"
143 artifacts: "{archive-artifacts}"
144 - lf-infra-maven-parameters:
145 mvn-opts: "{mvn-opts}"
146 mvn-params: "{mvn-params}"
147 mvn-version: "{mvn-version}"
148 staging-profile-id: ""
152 description: "Name of person who defined RPM"
154 name: CHANGELOG_EMAIL
155 default: "jenkins-donotreply@opendaylight.org"
156 description: "Email of person who defined RPM"
159 - integration-gerrit-scm:
161 refspec: "$GERRIT_REFSPEC"
165 - opendaylight-infra-wrappers:
166 build-timeout: "{build-timeout}"
171 properties-content: |
174 - shell: !include-raw: build-rpm-snap-docker.sh
175 - shell: !include-raw: test-rpm-docker.sh
176 - lf-infra-deploy-maven-file:
177 global-settings-file: "global-settings"
178 settings-file: "packaging-settings"
179 mvn-version: "{mvn-version}"
180 repo-id: "opendaylight-{stream}-{distro}-x86_64-devel"
181 group-id: "{group-id}"
182 upload-files-dir: "{upload-files-dir}"
183 maven-repo-url: "{maven-repo-url}"
192 name: "packaging-verify-rpm-master"
194 node: centos7-builder-2c-2g
197 project-type: freestyle
198 disabled: "{disable-job}"
201 - opendaylight-infra-parameters:
202 os-cloud: "{os-cloud}"
205 refspec: "refs/heads/{branch}"
206 artifacts: "{archive-artifacts}"
209 - integration-gerrit-scm:
211 refspec: "$GERRIT_REFSPEC"
215 - opendaylight-infra-wrappers:
216 build-timeout: "{build-timeout}"
219 # Test Sodium ('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.11.0/opendaylight-0.11.0.tar.gz"
223 - shell: !include-raw-escape: build-rpm.sh
224 - install-test-uninstall-rpm
226 # Test latest Sodium snapshot
228 properties-content: "STREAM=sodium"
229 - shell: !include-raw: build-rpm-snap.sh
230 - install-test-uninstall-rpm
234 - gerrit-trigger-patch-submitted:
235 gerrit-server-name: "{gerrit-server-name}"
245 name: "packaging-verify-full-rpm-master"
247 node: centos7-builder-2c-2g
250 project-type: freestyle
251 disabled: "{disable-job}"
254 - opendaylight-infra-parameters:
255 os-cloud: "{os-cloud}"
258 refspec: "refs/heads/{branch}"
259 artifacts: "{archive-artifacts}"
262 - integration-gerrit-scm:
264 refspec: "$GERRIT_REFSPEC"
268 - opendaylight-infra-wrappers:
269 build-timeout: "{build-timeout}"
272 # Test Sodium release tarball
274 # yamllint disable-line rule:line-length
275 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"
276 - shell: !include-raw-escape: build-rpm.sh
277 - install-test-uninstall-rpm
279 - shell: !include-raw: build-rpm-snap.sh
280 - install-test-uninstall-rpm
282 # Test latest Sodium snapshot
284 properties-content: "STREAM=sodium"
285 - shell: !include-raw: build-rpm-snap.sh
286 - install-test-uninstall-rpm
291 server-name: "{gerrit-server-name}"
293 - comment-added-contains-event:
294 comment-contains-value: "verify-rpm-full"
296 - project-compare-type: ANT
297 project-pattern: "{project}"
299 - branch-compare-type: ANT
300 branch-pattern: "**/{branch}"
306 name: "packaging-test-rpm-master"
308 node: centos7-builder-2c-2g
311 disabled: "{disable-job}"
314 - opendaylight-infra-parameters:
315 os-cloud: "{os-cloud}"
318 refspec: "refs/heads/{branch}"
319 artifacts: "{archive-artifacts}"
322 # yamllint disable-line rule:line-length
323 default: "https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo"
324 description: "Link to .repo or .rpm file"
327 - integration-gerrit-scm:
329 refspec: "$GERRIT_REFSPEC"
333 - opendaylight-infra-wrappers:
334 build-timeout: "{build-timeout}"
338 # Install expect to interact with Karaf shell
339 # Install nmap to check status of ODL's SSH port
340 sudo yum install -y expect nmap
341 - shell: !include-raw-escape: install-rpm.sh
342 - shell: !include-raw: start-odl.sh
343 - shell: !include-raw-escape: test-ports-nofeature.sh
344 - shell: !include-raw: test-karaf-oxygensafe.expect
345 # Disable this test until ODLPARENT-139 is fixed
346 # - shell: !include-raw-escape: test-rest-ok.sh
347 - shell: !include-raw: stop-odl.sh
348 - shell: !include-raw: uninstall-rpm.sh
354 # TODO: Remove the archive publisher
355 # small data should be stored on logs.opendaylight.org
356 # large data should be stored on nexus.opendaylight.org
365 name: "packaging-test-rpm-upgrade-master"
369 node: centos7-builder-2c-2g
370 disabled: "{disable-job}"
373 - opendaylight-infra-parameters:
374 os-cloud: "{os-cloud}"
377 refspec: "refs/heads/{branch}"
378 artifacts: "{archive-artifacts}"
381 - integration-gerrit-scm:
383 refspec: "$GERRIT_REFSPEC"
387 - opendaylight-infra-wrappers:
388 build-timeout: "{build-timeout}"
391 # Tests (current and future):
392 # * Install latest release, stop/uninstall, install latest CD
393 # * Upgrade from latest release latest CD
394 # * TODO: Upgrade from latest release to proposed packaging/** logic
395 # * TODO: Upgrade from CD to proposed packaging/** logic
396 # * TODO: Upgrade from proposed packaging/** logic (older ODL) to
397 # proposed packaging logic (latest ODL)
399 # Test 1: Install latest release, stop/uninstall, install latest CD
401 # yamllint disable-line rule:line-length
402 properties-content: "URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo"
403 - install-start-test-stop-uninstall-rpm
405 # yamllint disable-line rule:line-length
406 properties-content: "URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo"
407 - install-start-test-stop-uninstall-rpm
409 # Test 2: Install latest release, stop, upgrade to latest CD
411 # yamllint disable-line rule:line-length
412 properties-content: "URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-90-release.repo"
413 - install-start-test-stop-rpm
415 # yamllint disable-line rule:line-length
416 properties-content: "REPO_CFG_FILE_URL=https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-9-devel.repo"
417 - installrepcfg-upgrade-start-test-stop-rpm
421 - gerrit-trigger-patch-submitted:
422 gerrit-server-name: "{gerrit-server-name}"
432 name: "packaging-test-deb-master"
434 node: ubuntu1604-mininet-ovs-25-1c-4g
437 disabled: "{disable-job}"
440 - opendaylight-infra-parameters:
441 os-cloud: "{os-cloud}"
444 refspec: "refs/heads/{branch}"
445 artifacts: "{archive-artifacts}"
448 default: "ppa:odl-team/oxygen"
449 description: "Link to .deb package or name of PPA repo"
452 - integration-gerrit-scm:
454 refspec: "$GERRIT_REFSPEC"
458 - opendaylight-infra-wrappers:
459 build-timeout: "{build-timeout}"
462 - shell: !include-raw-escape: install-deb.sh
463 - shell: !include-raw: start-odl.sh
464 - shell: !include-raw-escape: test-ports-nofeature.sh
466 # Install expect to interact with Karaf shell
467 # Install nmap to check status of ODL's SSH port
468 sudo apt-get install -y expect nmap
469 - shell: !include-raw: test-karaf-oxygensafe.expect
470 # Disable this test until ODLPARENT-139 is fixed
471 # - shell: !include-raw-escape: test-rest-ok.sh
472 - shell: !include-raw: stop-odl.sh
473 - shell: !include-raw-escape: uninstall-deb.sh
482 name: "packaging-build-deb-{stream}"
484 node: ubuntu1604-mininet-ovs-25-1c-4g
487 project-type: freestyle
488 disabled: "{disable-job}"
495 - opendaylight-infra-properties:
496 build-days-to-keep: 7
499 - opendaylight-infra-parameters:
500 os-cloud: "{os-cloud}"
503 refspec: "refs/heads/{branch}"
504 artifacts: "{archive-artifacts}"
505 - lf-infra-maven-parameters:
506 mvn-opts: "{mvn-opts}"
507 mvn-params: "{mvn-params}"
508 mvn-version: "{mvn-version}"
509 staging-profile-id: ""
512 # FIXME: Update the default value to an active stream.
513 # yamllint disable-line rule:line-length
514 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"
515 description: "URL to ODL tarball artifact to repackage into .deb"
519 description: "Name of person who defined .deb"
521 name: CHANGELOG_EMAIL
522 default: "jenkins-donotreply@opendaylight.org"
523 description: "Email of person who defined .deb"
525 name: PKG_VERSION_OVERRIDE
527 description: "Override autodetected package component of RPM version (maj.min.pat-pkg)"
530 - integration-gerrit-scm:
532 refspec: "$GERRIT_REFSPEC"
536 - opendaylight-infra-wrappers:
537 build-timeout: "{build-timeout}"
541 - shell: !include-raw: build-deb.sh
542 - install-test-uninstall-deb
543 - lf-infra-deploy-maven-file:
544 global-settings-file: "global-settings"
545 settings-file: "packaging-settings"
546 mvn-version: "{mvn-version}"
547 repo-id: "opendaylight-{stream}-ubuntu-1604-x86_64-devel"
548 group-id: "{group-id}"
549 upload-files-dir: "{upload-files-dir}"
550 maven-repo-url: "{maven-repo-url}"
561 - gerrit-info-yaml-verify
563 project-name: packaging
565 build-node: centos7-builder-2c-1g
571 project-name: packaging