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'
87 - integration-gerrit-scm:
89 refspec: '$GERRIT_REFSPEC'
93 - opendaylight-infra-wrappers:
94 build-timeout: '{build-timeout}'
97 - shell: !include-raw-escape: build-rpm.sh
98 - install-test-uninstall-rpm
99 - lf-infra-deploy-maven-file:
100 global-settings-file: 'global-settings'
101 settings-file: 'packaging-settings'
102 mvn-version: '{mvn-version}'
103 repo-id: '$DEPLOY_TO_REPO'
104 group-id: '{group-id}'
105 upload-files-dir: '{upload-files-dir}'
106 maven-repo-url: '{maven-repo-url}'
113 name: 'packaging-build-rpm-{distro}-snap-{stream}'
115 node: centos7-docker-2c-2g
117 project-type: freestyle
124 - opendaylight-infra-properties:
125 build-days-to-keep: 7
128 - opendaylight-infra-parameters:
129 os-cloud: '{os-cloud}'
132 refspec: 'refs/heads/{branch}'
133 artifacts: '{archive-artifacts}'
134 - lf-infra-maven-parameters:
135 mvn-opts: '{mvn-opts}'
136 mvn-params: '{mvn-params}'
137 mvn-version: '{mvn-version}'
138 staging-profile-id: ''
142 description: 'Name of person who defined RPM'
144 name: CHANGELOG_EMAIL
145 default: 'jenkins-donotreply@opendaylight.org'
146 description: 'Email of person who defined RPM'
149 - integration-gerrit-scm:
151 refspec: '$GERRIT_REFSPEC'
155 - opendaylight-infra-wrappers:
156 build-timeout: '{build-timeout}'
160 properties-content: |
163 - shell: !include-raw: build-rpm-snap-docker.sh
164 - shell: !include-raw: test-rpm-docker.sh
165 - lf-infra-deploy-maven-file:
166 global-settings-file: 'global-settings'
167 settings-file: 'packaging-settings'
168 mvn-version: '{mvn-version}'
169 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
170 group-id: '{group-id}'
171 upload-files-dir: '{upload-files-dir}'
172 maven-repo-url: '{maven-repo-url}'
182 name: 'packaging-verify-rpm-master'
184 node: centos7-builder-2c-2g
186 project-type: freestyle
189 - opendaylight-infra-parameters:
190 os-cloud: '{os-cloud}'
193 refspec: 'refs/heads/{branch}'
194 artifacts: '{archive-artifacts}'
197 - integration-gerrit-scm:
199 refspec: '$GERRIT_REFSPEC'
203 - opendaylight-infra-wrappers:
204 build-timeout: '{build-timeout}'
207 # Test Oxygen SR3 release tarball
209 # yamllint disable-line rule:line-length
210 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'
211 - shell: !include-raw-escape: build-rpm.sh
212 - install-test-uninstall-rpm
214 # Test latest Oxygen snapshot
216 properties-content: 'STREAM=oxygen'
217 - shell: !include-raw: build-rpm-snap.sh
218 - install-test-uninstall-rpm
220 # Test Fluorine pre-release autorelease tarball
221 # NB: This will need to be updated as old builds expire
223 # yamllint disable-line rule:line-length
224 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'
225 - shell: !include-raw-escape: build-rpm.sh
226 - install-test-uninstall-rpm
228 # Test Fluorine multipatch zip (no parallel tarball available)
229 # NB: This will need to be updated as old builds expire
231 # yamllint disable-line rule:line-length
232 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'
233 - shell: !include-raw-escape: build-rpm.sh
234 - install-test-uninstall-rpm
236 # Test latest Fluorine snapshot
238 properties-content: 'STREAM=fluorine'
239 - shell: !include-raw: build-rpm-snap.sh
240 - install-test-uninstall-rpm
243 - gerrit-trigger-patch-submitted:
244 gerrit-server-name: '{gerrit-server-name}'
255 name: 'packaging-verify-full-rpm-master'
257 node: centos7-builder-2c-2g
259 project-type: freestyle
262 - opendaylight-infra-parameters:
263 os-cloud: '{os-cloud}'
266 refspec: 'refs/heads/{branch}'
267 artifacts: '{archive-artifacts}'
270 - integration-gerrit-scm:
272 refspec: '$GERRIT_REFSPEC'
276 - opendaylight-infra-wrappers:
277 build-timeout: '{build-timeout}'
280 # Test Oxygen SR3 release tarball
282 # yamllint disable-line rule:line-length
283 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'
284 - shell: !include-raw-escape: build-rpm.sh
285 - install-test-uninstall-rpm
287 # Test Oxygen pre-release autorelease tarball
288 # NB: This will need to be updated as old builds expire
290 # yamllint disable-line rule:line-length
291 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'
292 - shell: !include-raw-escape: build-rpm.sh
293 - install-test-uninstall-rpm
295 # Test latest Oxygen snapshot
297 properties-content: 'STREAM=oxygen'
298 - shell: !include-raw: build-rpm-snap.sh
299 - install-test-uninstall-rpm
301 # Test Fluorine pre-release autorelease tarball
302 # NB: This will need to be updated as old builds expire
304 # yamllint disable-line rule:line-length
305 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'
306 - shell: !include-raw-escape: build-rpm.sh
307 - install-test-uninstall-rpm
309 # Test Fluorine multipatch zip (no parallel tarball available)
310 # NB: This will need to be updated as old builds expire
312 # yamllint disable-line rule:line-length
313 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'
314 - shell: !include-raw-escape: build-rpm.sh
315 - install-test-uninstall-rpm
317 # Test latest Fluorine snapshot
319 properties-content: 'STREAM=fluorine'
320 - shell: !include-raw: build-rpm-snap.sh
321 - install-test-uninstall-rpm
326 server-name: '{gerrit-server-name}'
328 - comment-added-contains-event:
329 comment-contains-value: 'verify-rpm-full'
331 - project-compare-type: ANT
332 project-pattern: '{project}'
334 - branch-compare-type: ANT
335 branch-pattern: '**/{branch}'
342 name: 'packaging-test-rpm-master'
344 node: centos7-builder-2c-2g
347 - opendaylight-infra-parameters:
348 os-cloud: '{os-cloud}'
351 refspec: 'refs/heads/{branch}'
352 artifacts: '{archive-artifacts}'
355 # yamllint disable-line rule:line-length
356 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
357 description: 'Link to .repo or .rpm file'
360 - integration-gerrit-scm:
362 refspec: '$GERRIT_REFSPEC'
366 - opendaylight-infra-wrappers:
367 build-timeout: '{build-timeout}'
371 # Install expect to interact with Karaf shell
372 # Install nmap to check status of ODL's SSH port
373 sudo yum install -y expect nmap
374 - shell: !include-raw-escape: install-rpm.sh
375 - shell: !include-raw: start-odl.sh
376 - shell: !include-raw-escape: test-ports-nofeature.sh
377 - shell: !include-raw: test-karaf-oxygensafe.expect
378 # Disable this test until ODLPARENT-139 is fixed
379 # - shell: !include-raw-escape: test-rest-ok.sh
380 - shell: !include-raw: stop-odl.sh
381 - shell: !include-raw: uninstall-rpm.sh
384 # TODO: Remove the archive publisher
385 # small data should be stored on logs.opendaylight.org
386 # large data should be stored on nexus.opendaylight.org
396 name: 'packaging-test-rpm-upgrade-master'
398 node: centos7-builder-2c-2g
401 - opendaylight-infra-parameters:
402 os-cloud: '{os-cloud}'
405 refspec: 'refs/heads/{branch}'
406 artifacts: '{archive-artifacts}'
409 # yamllint disable-line rule:line-length
410 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-release.repo'
411 description: 'Link to .repo or .rpm file'
414 # yamllint disable-line rule:line-length
415 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
416 description: 'Link to .repo or .rpm file'
419 - integration-gerrit-scm:
421 refspec: '$GERRIT_REFSPEC'
425 - opendaylight-infra-wrappers:
426 build-timeout: '{build-timeout}'
429 - shell: !include-raw-escape: install-rpm.sh
430 - shell: !include-raw: start-odl.sh
432 # Install expect to interact with Karaf shell
433 sudo yum install -y expect
434 # Install nmap to check status of ODL's SSH port
435 sudo yum install -y nmap
436 - shell: !include-raw: test-karaf-oxygensafe.expect
437 - shell: !include-raw: stop-odl.sh
438 - shell: !include-raw: test-rpm-upgrade.sh
439 - shell: !include-raw: start-odl.sh
440 - shell: !include-raw: test-karaf-oxygensafe.expect
441 - shell: !include-raw: stop-odl.sh
442 - shell: !include-raw: uninstall-rpm.sh
449 name: 'packaging-test-deb-master'
451 node: ubuntu1604-mininet-ovs-25-1c-4g
454 - opendaylight-infra-parameters:
455 os-cloud: '{os-cloud}'
458 refspec: 'refs/heads/{branch}'
459 artifacts: '{archive-artifacts}'
462 default: 'ppa:odl-team/oxygen'
463 description: 'Link to .deb package or name of PPA repo'
466 - integration-gerrit-scm:
468 refspec: '$GERRIT_REFSPEC'
472 - opendaylight-infra-wrappers:
473 build-timeout: '{build-timeout}'
476 - shell: !include-raw-escape: install-deb.sh
477 - shell: !include-raw: start-odl.sh
478 - shell: !include-raw-escape: test-ports-nofeature.sh
480 # Install expect to interact with Karaf shell
481 # Install nmap to check status of ODL's SSH port
482 sudo apt-get install -y expect nmap
483 - shell: !include-raw: test-karaf-oxygensafe.expect
484 # Disable this test until ODLPARENT-139 is fixed
485 # - shell: !include-raw-escape: test-rest-ok.sh
486 - shell: !include-raw: stop-odl.sh
487 - shell: !include-raw-escape: uninstall-deb.sh
494 name: 'packaging-build-deb-{stream}'
496 node: ubuntu1604-mininet-ovs-25-1c-4g
498 project-type: freestyle
505 - opendaylight-infra-properties:
506 build-days-to-keep: 7
509 - opendaylight-infra-parameters:
510 os-cloud: '{os-cloud}'
513 refspec: 'refs/heads/{branch}'
514 artifacts: '{archive-artifacts}'
515 - lf-infra-maven-parameters:
516 mvn-opts: '{mvn-opts}'
517 mvn-params: '{mvn-params}'
518 mvn-version: '{mvn-version}'
519 staging-profile-id: ''
522 # FIXME: Update the default value to an active stream.
523 # yamllint disable-line rule:line-length
524 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'
525 description: 'URL to ODL tarball artifact to repackage into .deb'
529 description: 'Name of person who defined .deb'
531 name: CHANGELOG_EMAIL
532 default: 'jenkins-donotreply@opendaylight.org'
533 description: 'Email of person who defined .deb'
536 - integration-gerrit-scm:
538 refspec: '$GERRIT_REFSPEC'
542 - opendaylight-infra-wrappers:
543 build-timeout: '{build-timeout}'
546 - shell: !include-raw: build-deb.sh
547 - install-test-uninstall-deb
548 - lf-infra-deploy-maven-file:
549 global-settings-file: 'global-settings'
550 settings-file: 'packaging-settings'
551 mvn-version: '{mvn-version}'
552 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
553 group-id: '{group-id}'
554 upload-files-dir: '{upload-files-dir}'
555 maven-repo-url: '{maven-repo-url}'
562 description: 'List of packaging, ansible and puppet jobs'
563 regex: '^packaging.*|ansible.*|puppet.*'
564 <<: *releng_view_common