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 latest Oxygen snapshot
220 properties-content: 'STREAM=oxygen'
221 - shell: !include-raw: build-rpm-snap.sh
222 - install-test-uninstall-rpm
224 # Test Fluorine ('Managed Release Common Distro') release tarball
226 # yamllint disable-line rule:line-length
227 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
228 - shell: !include-raw-escape: build-rpm.sh
229 - install-test-uninstall-rpm
231 # Test Fluorine pre-release autorelease tarball
232 # NB: This will need to be updated as old builds expire
234 # yamllint disable-line rule:line-length
235 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2394/org/opendaylight/integration/karaf/0.9.1/karaf-0.9.1.tar.gz'
236 - shell: !include-raw-escape: build-rpm.sh
237 - install-test-uninstall-rpm
239 # Test Fluorine multipatch zip (no parallel tarball available)
240 # NB: This will need to be updated as old builds expire
242 # yamllint disable-line rule:line-length
243 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-20181001.192848-2.zip'
244 - shell: !include-raw-escape: build-rpm.sh
245 - install-test-uninstall-rpm
247 # Test latest Fluorine snapshot
249 properties-content: 'STREAM=fluorine'
250 - shell: !include-raw: build-rpm-snap.sh
251 - install-test-uninstall-rpm
253 # Test Neon pre-release autorelease tarball
254 # NB: This will need to be updated as old builds expire
256 # yamllint disable-line rule:line-length
257 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2393/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
258 - shell: !include-raw-escape: build-rpm.sh
259 - install-test-uninstall-rpm
261 # Test Neon multipatch zip (no parallel tarball available)
262 # NB: This will need to be updated as old builds expire
264 # yamllint disable-line rule:line-length
265 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-20180925.093600-5.zip'
266 - shell: !include-raw-escape: build-rpm.sh
267 - install-test-uninstall-rpm
269 # Test latest Neon snapshot
271 properties-content: 'STREAM=neon'
272 - shell: !include-raw: build-rpm-snap.sh
273 - install-test-uninstall-rpm
276 - gerrit-trigger-patch-submitted:
277 gerrit-server-name: '{gerrit-server-name}'
288 name: 'packaging-verify-full-rpm-master'
290 node: centos7-builder-2c-2g
292 project-type: freestyle
295 - opendaylight-infra-parameters:
296 os-cloud: '{os-cloud}'
299 refspec: 'refs/heads/{branch}'
300 artifacts: '{archive-artifacts}'
303 - integration-gerrit-scm:
305 refspec: '$GERRIT_REFSPEC'
309 - opendaylight-infra-wrappers:
310 build-timeout: '{build-timeout}'
313 # Test Oxygen SR3 release tarball
315 # yamllint disable-line rule:line-length
316 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'
317 - shell: !include-raw-escape: build-rpm.sh
318 - install-test-uninstall-rpm
320 # Test Oxygen pre-release autorelease tarball
321 # NB: This will need to be updated as old builds expire
323 # yamllint disable-line rule:line-length
324 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2395/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
325 - shell: !include-raw-escape: build-rpm.sh
326 - install-test-uninstall-rpm
328 # Test latest Oxygen snapshot
330 properties-content: 'STREAM=oxygen'
331 - shell: !include-raw: build-rpm-snap.sh
332 - install-test-uninstall-rpm
334 # Test Fluorine ('Managed Release Common Distro') release tarball
336 # yamllint disable-line rule:line-length
337 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
338 - shell: !include-raw-escape: build-rpm.sh
339 - install-test-uninstall-rpm
341 # Test Fluorine pre-release autorelease tarball
342 # NB: This will need to be updated as old builds expire
344 # yamllint disable-line rule:line-length
345 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2394/org/opendaylight/integration/karaf/0.9.1/karaf-0.9.1.tar.gz'
346 - shell: !include-raw-escape: build-rpm.sh
347 - install-test-uninstall-rpm
349 # Test Fluorine multipatch zip (no parallel tarball available)
350 # NB: This will need to be updated as old builds expire
352 # yamllint disable-line rule:line-length
353 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-20181001.192848-2.zip'
354 - shell: !include-raw-escape: build-rpm.sh
355 - install-test-uninstall-rpm
357 # Test latest Fluorine snapshot
359 properties-content: 'STREAM=fluorine'
360 - shell: !include-raw: build-rpm-snap.sh
361 - install-test-uninstall-rpm
363 # Test Neon pre-release autorelease tarball
364 # NB: This will need to be updated as old builds expire
366 # yamllint disable-line rule:line-length
367 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2393/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
368 - shell: !include-raw-escape: build-rpm.sh
369 - install-test-uninstall-rpm
371 # Test Neon multipatch zip (no parallel tarball available)
372 # NB: This will need to be updated as old builds expire
374 # yamllint disable-line rule:line-length
375 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-20180925.093600-5.zip'
376 - shell: !include-raw-escape: build-rpm.sh
377 - install-test-uninstall-rpm
379 # Test latest Neon snapshot
381 properties-content: 'STREAM=neon'
382 - shell: !include-raw: build-rpm-snap.sh
383 - install-test-uninstall-rpm
388 server-name: '{gerrit-server-name}'
390 - comment-added-contains-event:
391 comment-contains-value: 'verify-rpm-full'
393 - project-compare-type: ANT
394 project-pattern: '{project}'
396 - branch-compare-type: ANT
397 branch-pattern: '**/{branch}'
404 name: 'packaging-test-rpm-master'
406 node: centos7-builder-2c-2g
409 - opendaylight-infra-parameters:
410 os-cloud: '{os-cloud}'
413 refspec: 'refs/heads/{branch}'
414 artifacts: '{archive-artifacts}'
417 # yamllint disable-line rule:line-length
418 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
419 description: 'Link to .repo or .rpm file'
422 - integration-gerrit-scm:
424 refspec: '$GERRIT_REFSPEC'
428 - opendaylight-infra-wrappers:
429 build-timeout: '{build-timeout}'
433 # Install expect to interact with Karaf shell
434 # Install nmap to check status of ODL's SSH port
435 sudo yum install -y expect nmap
436 - shell: !include-raw-escape: install-rpm.sh
437 - shell: !include-raw: start-odl.sh
438 - shell: !include-raw-escape: test-ports-nofeature.sh
439 - shell: !include-raw: test-karaf-oxygensafe.expect
440 # Disable this test until ODLPARENT-139 is fixed
441 # - shell: !include-raw-escape: test-rest-ok.sh
442 - shell: !include-raw: stop-odl.sh
443 - shell: !include-raw: uninstall-rpm.sh
446 # TODO: Remove the archive publisher
447 # small data should be stored on logs.opendaylight.org
448 # large data should be stored on nexus.opendaylight.org
458 name: 'packaging-test-rpm-upgrade-master'
460 node: centos7-builder-2c-2g
463 - opendaylight-infra-parameters:
464 os-cloud: '{os-cloud}'
467 refspec: 'refs/heads/{branch}'
468 artifacts: '{archive-artifacts}'
471 # yamllint disable-line rule:line-length
472 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-release.repo'
473 description: 'Link to .repo or .rpm file'
476 # yamllint disable-line rule:line-length
477 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
478 description: 'Link to .repo or .rpm file'
481 - integration-gerrit-scm:
483 refspec: '$GERRIT_REFSPEC'
487 - opendaylight-infra-wrappers:
488 build-timeout: '{build-timeout}'
491 - shell: !include-raw-escape: install-rpm.sh
492 - shell: !include-raw: start-odl.sh
494 # Install expect to interact with Karaf shell
495 sudo yum install -y expect
496 # Install nmap to check status of ODL's SSH port
497 sudo yum install -y nmap
498 - shell: !include-raw: test-karaf-oxygensafe.expect
499 - shell: !include-raw: stop-odl.sh
500 - shell: !include-raw: test-rpm-upgrade.sh
501 - shell: !include-raw: start-odl.sh
502 - shell: !include-raw: test-karaf-oxygensafe.expect
503 - shell: !include-raw: stop-odl.sh
504 - shell: !include-raw: uninstall-rpm.sh
511 name: 'packaging-test-deb-master'
513 node: ubuntu1604-mininet-ovs-25-1c-4g
516 - opendaylight-infra-parameters:
517 os-cloud: '{os-cloud}'
520 refspec: 'refs/heads/{branch}'
521 artifacts: '{archive-artifacts}'
524 default: 'ppa:odl-team/oxygen'
525 description: 'Link to .deb package or name of PPA repo'
528 - integration-gerrit-scm:
530 refspec: '$GERRIT_REFSPEC'
534 - opendaylight-infra-wrappers:
535 build-timeout: '{build-timeout}'
538 - shell: !include-raw-escape: install-deb.sh
539 - shell: !include-raw: start-odl.sh
540 - shell: !include-raw-escape: test-ports-nofeature.sh
542 # Install expect to interact with Karaf shell
543 # Install nmap to check status of ODL's SSH port
544 sudo apt-get install -y expect nmap
545 - shell: !include-raw: test-karaf-oxygensafe.expect
546 # Disable this test until ODLPARENT-139 is fixed
547 # - shell: !include-raw-escape: test-rest-ok.sh
548 - shell: !include-raw: stop-odl.sh
549 - shell: !include-raw-escape: uninstall-deb.sh
556 name: 'packaging-build-deb-{stream}'
558 node: ubuntu1604-mininet-ovs-25-1c-4g
560 project-type: freestyle
567 - opendaylight-infra-properties:
568 build-days-to-keep: 7
571 - opendaylight-infra-parameters:
572 os-cloud: '{os-cloud}'
575 refspec: 'refs/heads/{branch}'
576 artifacts: '{archive-artifacts}'
577 - lf-infra-maven-parameters:
578 mvn-opts: '{mvn-opts}'
579 mvn-params: '{mvn-params}'
580 mvn-version: '{mvn-version}'
581 staging-profile-id: ''
584 # FIXME: Update the default value to an active stream.
585 # yamllint disable-line rule:line-length
586 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'
587 description: 'URL to ODL tarball artifact to repackage into .deb'
591 description: 'Name of person who defined .deb'
593 name: CHANGELOG_EMAIL
594 default: 'jenkins-donotreply@opendaylight.org'
595 description: 'Email of person who defined .deb'
597 name: PKG_VERSION_OVERRIDE
599 description: 'Override autodetected package component of RPM version (maj.min.pat-pkg)'
602 - integration-gerrit-scm:
604 refspec: '$GERRIT_REFSPEC'
608 - opendaylight-infra-wrappers:
609 build-timeout: '{build-timeout}'
612 - shell: !include-raw: build-deb.sh
613 - install-test-uninstall-deb
614 - lf-infra-deploy-maven-file:
615 global-settings-file: 'global-settings'
616 settings-file: 'packaging-settings'
617 mvn-version: '{mvn-version}'
618 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
619 group-id: '{group-id}'
620 upload-files-dir: '{upload-files-dir}'
621 maven-repo-url: '{maven-repo-url}'
628 description: 'List of packaging, ansible and puppet jobs'
629 regex: '^packaging.*|ansible.*|puppet.*'
630 <<: *releng_view_common