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'
35 # common parameters required for 'lf-infra-deploy-maven-file' builder
36 group-id: 'org.opendaylight.integration-packaging'
37 upload-files-dir: '$WORKSPACE/upload_files'
38 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
41 name: 'packaging-build-rpm-{stream}'
43 node: centos7-builder-2c-8g
45 project-type: freestyle
52 - opendaylight-infra-properties:
56 - opendaylight-infra-parameters:
57 os-cloud: '{os-cloud}'
60 refspec: 'refs/heads/{branch}'
61 artifacts: '{archive-artifacts}'
62 - lf-infra-maven-parameters:
63 mvn-opts: '{mvn-opts}'
64 mvn-params: '{mvn-params}'
65 mvn-version: '{mvn-version}'
66 staging-profile-id: ''
69 # yamllint disable-line rule:line-length
70 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
71 description: 'URL to ODL tarball artifact to repackage into RPM'
75 description: 'Name of person who defined RPM'
78 default: 'jenkins-donotreply@opendaylight.org'
79 description: 'Email of person who defined RPM'
82 default: 'opendaylight-{stream}-epel-7-x86_64-devel'
83 description: 'Repository to deploy resulting package to'
86 - integration-gerrit-scm:
88 refspec: '$GERRIT_REFSPEC'
92 - opendaylight-infra-wrappers:
93 build-timeout: '{build-timeout}'
96 - shell: !include-raw-escape: build-rpm.sh
97 - install-test-uninstall-rpm
98 - lf-infra-deploy-maven-file:
99 global-settings-file: 'global-settings'
100 settings-file: 'packaging-settings'
101 mvn-version: '{mvn-version}'
102 repo-id: '$DEPLOY_TO_REPO'
103 group-id: '{group-id}'
104 upload-files-dir: '{upload-files-dir}'
105 maven-repo-url: '{maven-repo-url}'
112 name: 'packaging-build-rpm-{distro}-snap-{stream}'
114 node: centos7-docker-2c-8g
116 project-type: freestyle
123 - opendaylight-infra-properties:
124 build-days-to-keep: 7
127 - opendaylight-infra-parameters:
128 os-cloud: '{os-cloud}'
131 refspec: 'refs/heads/{branch}'
132 artifacts: '{archive-artifacts}'
133 - lf-infra-maven-parameters:
134 mvn-opts: '{mvn-opts}'
135 mvn-params: '{mvn-params}'
136 mvn-version: '{mvn-version}'
137 staging-profile-id: ''
141 description: 'Name of person who defined RPM'
143 name: CHANGELOG_EMAIL
144 default: 'jenkins-donotreply@opendaylight.org'
145 description: 'Email of person who defined RPM'
148 - integration-gerrit-scm:
150 refspec: '$GERRIT_REFSPEC'
154 - opendaylight-infra-wrappers:
155 build-timeout: '{build-timeout}'
159 properties-content: |
162 - shell: !include-raw: build-rpm-snap-docker.sh
163 - shell: !include-raw: test-rpm-docker.sh
164 - lf-infra-deploy-maven-file:
165 global-settings-file: 'global-settings'
166 settings-file: 'packaging-settings'
167 mvn-version: '{mvn-version}'
168 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
169 group-id: '{group-id}'
170 upload-files-dir: '{upload-files-dir}'
171 maven-repo-url: '{maven-repo-url}'
181 name: 'packaging-verify-rpm-master'
183 node: centos7-builder-2c-8g
185 project-type: freestyle
188 - opendaylight-infra-parameters:
189 os-cloud: '{os-cloud}'
192 refspec: 'refs/heads/{branch}'
193 artifacts: '{archive-artifacts}'
196 - integration-gerrit-scm:
198 refspec: '$GERRIT_REFSPEC'
202 - opendaylight-infra-wrappers:
203 build-timeout: '{build-timeout}'
206 # Test Oxygen SR2 release tarball
208 # yamllint disable-line rule:line-length
209 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
210 - shell: !include-raw-escape: build-rpm.sh
211 - install-test-uninstall-rpm
213 # Test latest Oxygen snapshot
215 properties-content: 'STREAM=oxygen'
216 - shell: !include-raw: build-rpm-snap.sh
217 - install-test-uninstall-rpm
219 # Test Fluorine pre-release autorelease tarball
220 # NB: This will need to be updated as old builds expire
222 # yamllint disable-line rule:line-length
223 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2209/org/opendaylight/integration/karaf/0.9.0/karaf-0.9.0.tar.gz'
224 - shell: !include-raw-escape: build-rpm.sh
225 - install-test-uninstall-rpm
227 # Test Fluorine multipatch zip (no parallel tarball available)
228 # NB: This will need to be updated as old builds expire
230 # yamllint disable-line rule:line-length
231 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.0-SNAPSHOT/karaf-0.9.0-20180626.171605-65.zip'
232 - shell: !include-raw-escape: build-rpm.sh
233 - install-test-uninstall-rpm
235 # Test latest Fluorine snapshot
237 properties-content: 'STREAM=fluorine'
238 - shell: !include-raw: build-rpm-snap.sh
239 - install-test-uninstall-rpm
242 - gerrit-trigger-patch-submitted:
243 gerrit-server-name: '{gerrit-server-name}'
253 name: 'packaging-verify-full-rpm-master'
255 node: centos7-builder-2c-8g
257 project-type: freestyle
260 - opendaylight-infra-parameters:
261 os-cloud: '{os-cloud}'
264 refspec: 'refs/heads/{branch}'
265 artifacts: '{archive-artifacts}'
268 - integration-gerrit-scm:
270 refspec: '$GERRIT_REFSPEC'
274 - opendaylight-infra-wrappers:
275 build-timeout: '{build-timeout}'
278 # Test Oxygen SR2 release tarball
280 # yamllint disable-line rule:line-length
281 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
282 - shell: !include-raw-escape: build-rpm.sh
283 - install-test-uninstall-rpm
285 # Test Oxygen pre-release autorelease tarball
286 # NB: This will need to be updated as old builds expire
288 # yamllint disable-line rule:line-length
289 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2210/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 multipatch zip (no parallel tarball available)
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/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.3-SNAPSHOT/karaf-0.8.3-20180627.184938-10.zip'
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 pre-release autorelease tarball
308 # NB: This will need to be updated as old builds expire
310 # yamllint disable-line rule:line-length
311 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2209/org/opendaylight/integration/karaf/0.9.0/karaf-0.9.0.tar.gz'
312 - shell: !include-raw-escape: build-rpm.sh
313 - install-test-uninstall-rpm
315 # Test Fluorine multipatch zip (no parallel tarball available)
316 # NB: This will need to be updated as old builds expire
318 # yamllint disable-line rule:line-length
319 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.0-SNAPSHOT/karaf-0.9.0-20180626.171605-65.zip'
320 - shell: !include-raw-escape: build-rpm.sh
321 - install-test-uninstall-rpm
323 # Test latest Fluorine snapshot
325 properties-content: 'STREAM=fluorine'
326 - shell: !include-raw: build-rpm-snap.sh
327 - install-test-uninstall-rpm
332 server-name: '{gerrit-server-name}'
334 - comment-added-contains-event:
335 comment-contains-value: 'verify-rpm-full'
337 - project-compare-type: ANT
338 project-pattern: '{project}'
340 - branch-compare-type: ANT
341 branch-pattern: '**/{branch}'
348 name: 'packaging-test-rpm-master'
350 node: centos7-builder-2c-8g
353 - opendaylight-infra-parameters:
354 os-cloud: '{os-cloud}'
357 refspec: 'refs/heads/{branch}'
358 artifacts: '{archive-artifacts}'
361 # yamllint disable-line rule:line-length
362 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
363 description: 'Link to .repo or .rpm file'
366 - integration-gerrit-scm:
368 refspec: '$GERRIT_REFSPEC'
372 - opendaylight-infra-wrappers:
373 build-timeout: '{build-timeout}'
377 # Install expect to interact with Karaf shell
378 # Install nmap to check status of ODL's SSH port
379 sudo yum install -y expect nmap
380 - shell: !include-raw-escape: install-rpm.sh
381 - shell: !include-raw: start-odl.sh
382 - shell: !include-raw-escape: test-ports-nofeature.sh
383 - shell: !include-raw: test-karaf-oxygensafe.expect
384 # Disable this test until ODLPARENT-139 is fixed
385 # - shell: !include-raw-escape: test-rest-ok.sh
386 - shell: !include-raw: stop-odl.sh
387 - shell: !include-raw: uninstall-rpm.sh
390 # TODO: Remove the archive publisher
391 # small data should be stored on logs.opendaylight.org
392 # large data should be stored on nexus.opendaylight.org
402 name: 'packaging-test-rpm-upgrade-master'
404 node: centos7-builder-2c-8g
407 - opendaylight-infra-parameters:
408 os-cloud: '{os-cloud}'
411 refspec: 'refs/heads/{branch}'
412 artifacts: '{archive-artifacts}'
415 # yamllint disable-line rule:line-length
416 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-release.repo'
417 description: 'Link to .repo or .rpm file'
420 # yamllint disable-line rule:line-length
421 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
422 description: 'Link to .repo or .rpm file'
425 - integration-gerrit-scm:
427 refspec: '$GERRIT_REFSPEC'
431 - opendaylight-infra-wrappers:
432 build-timeout: '{build-timeout}'
435 - shell: !include-raw-escape: install-rpm.sh
436 - shell: !include-raw: start-odl.sh
438 # Install expect to interact with Karaf shell
439 sudo yum install -y expect
440 # Install nmap to check status of ODL's SSH port
441 sudo yum install -y nmap
442 - shell: !include-raw: test-karaf-oxygensafe.expect
443 - shell: !include-raw: stop-odl.sh
444 - shell: !include-raw: test-rpm-upgrade.sh
445 - shell: !include-raw: start-odl.sh
446 - shell: !include-raw: test-karaf-oxygensafe.expect
447 - shell: !include-raw: stop-odl.sh
448 - shell: !include-raw: uninstall-rpm.sh
455 name: 'packaging-test-deb-master'
457 node: ubuntu1604-mininet-ovs-25-1c-4g
460 - opendaylight-infra-parameters:
461 os-cloud: '{os-cloud}'
464 refspec: 'refs/heads/{branch}'
465 artifacts: '{archive-artifacts}'
468 default: 'ppa:odl-team/oxygen'
469 description: 'Link to .deb package or name of PPA repo'
472 - integration-gerrit-scm:
474 refspec: '$GERRIT_REFSPEC'
478 - opendaylight-infra-wrappers:
479 build-timeout: '{build-timeout}'
482 - shell: !include-raw-escape: install-deb.sh
483 - shell: !include-raw: start-odl.sh
484 - shell: !include-raw-escape: test-ports-nofeature.sh
486 # Install expect to interact with Karaf shell
487 # Install nmap to check status of ODL's SSH port
488 sudo apt-get install -y expect nmap
489 - shell: !include-raw: test-karaf-oxygensafe.expect
490 # Disable this test until ODLPARENT-139 is fixed
491 # - shell: !include-raw-escape: test-rest-ok.sh
492 - shell: !include-raw: stop-odl.sh
493 - shell: !include-raw-escape: uninstall-deb.sh
500 name: 'packaging-build-deb-{stream}'
502 node: ubuntu1604-mininet-ovs-25-1c-4g
504 project-type: freestyle
511 - opendaylight-infra-properties:
512 build-days-to-keep: 7
515 - opendaylight-infra-parameters:
516 os-cloud: '{os-cloud}'
519 refspec: 'refs/heads/{branch}'
520 artifacts: '{archive-artifacts}'
521 - lf-infra-maven-parameters:
522 mvn-opts: '{mvn-opts}'
523 mvn-params: '{mvn-params}'
524 mvn-version: '{mvn-version}'
525 staging-profile-id: ''
528 # FIXME: Update the default value to an active stream.
529 # yamllint disable-line rule:line-length
530 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'
531 description: 'URL to ODL tarball artifact to repackage into .deb'
535 description: 'Name of person who defined .deb'
537 name: CHANGELOG_EMAIL
538 default: 'jenkins-donotreply@opendaylight.org'
539 description: 'Email of person who defined .deb'
542 - integration-gerrit-scm:
544 refspec: '$GERRIT_REFSPEC'
548 - opendaylight-infra-wrappers:
549 build-timeout: '{build-timeout}'
552 - shell: !include-raw: build-deb.sh
553 - install-test-uninstall-deb
554 - lf-infra-deploy-maven-file:
555 global-settings-file: 'global-settings'
556 settings-file: 'packaging-settings'
557 mvn-version: '{mvn-version}'
558 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
559 group-id: '{group-id}'
560 upload-files-dir: '{upload-files-dir}'
561 maven-repo-url: '{maven-repo-url}'
568 description: 'List of packaging, ansible and puppet jobs'
569 regex: '^packaging.*|ansible.*|puppet.*'
570 <<: *releng_view_common