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-project: odl-integrationpackaging
12 - 'packaging-build-rpm-{stream}'
13 - 'packaging-build-rpm-{distro}-snap-{stream}'
14 - 'packaging-build-deb-{stream}'
15 - 'packaging-verify-full-rpm-master'
16 - 'packaging-verify-rpm-master'
17 - 'packaging-test-rpm-master'
18 - 'packaging-test-rpm-upgrade-master'
19 - 'packaging-test-deb-master'
24 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-8g
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.7.0/karaf-0.7.0.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 - integration-gerrit-scm:
85 refspec: '$GERRIT_REFSPEC'
89 - opendaylight-infra-wrappers:
90 build-timeout: '{build-timeout}'
93 - shell: !include-raw-escape: build-rpm.sh
94 - install-test-uninstall-rpm
95 - lf-infra-deploy-maven-file:
96 global-settings-file: 'global-settings'
97 settings-file: 'packaging-settings'
98 mvn-version: '{mvn-version}'
99 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
100 group-id: '{group-id}'
101 upload-files-dir: '{upload-files-dir}'
102 maven-repo-url: '{maven-repo-url}'
109 name: 'packaging-build-rpm-{distro}-snap-{stream}'
111 node: centos7-docker-2c-8g
113 project-type: freestyle
120 - opendaylight-infra-properties:
121 build-days-to-keep: 7
124 - opendaylight-infra-parameters:
125 os-cloud: '{os-cloud}'
128 refspec: 'refs/heads/{branch}'
129 artifacts: '{archive-artifacts}'
130 - lf-infra-maven-parameters:
131 mvn-opts: '{mvn-opts}'
132 mvn-params: '{mvn-params}'
133 mvn-version: '{mvn-version}'
134 staging-profile-id: ''
138 description: 'Name of person who defined RPM'
140 name: CHANGELOG_EMAIL
141 default: 'jenkins-donotreply@opendaylight.org'
142 description: 'Email of person who defined RPM'
145 - integration-gerrit-scm:
147 refspec: '$GERRIT_REFSPEC'
151 - opendaylight-infra-wrappers:
152 build-timeout: '{build-timeout}'
156 properties-content: |
159 - shell: !include-raw: build-rpm-snap-docker.sh
160 - shell: !include-raw: test-rpm-docker.sh
161 - lf-infra-deploy-maven-file:
162 global-settings-file: 'global-settings'
163 settings-file: 'packaging-settings'
164 mvn-version: '{mvn-version}'
165 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
166 group-id: '{group-id}'
167 upload-files-dir: '{upload-files-dir}'
168 maven-repo-url: '{maven-repo-url}'
178 name: 'packaging-verify-rpm-master'
180 node: centos7-builder-2c-8g
182 project-type: freestyle
185 - opendaylight-infra-parameters:
186 os-cloud: '{os-cloud}'
189 refspec: 'refs/heads/{branch}'
190 artifacts: '{archive-artifacts}'
193 - integration-gerrit-scm:
195 refspec: '$GERRIT_REFSPEC'
199 - opendaylight-infra-wrappers:
200 build-timeout: '{build-timeout}'
203 # Test Nitrogen tarball
205 # yamllint disable-line rule:line-length
206 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
207 - shell: !include-raw-escape: build-rpm.sh
208 - install-test-uninstall-rpm
210 # Test Oxygen pre-release autorelease tarball
212 # yamllint disable-line rule:line-length
213 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2106/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
214 - shell: !include-raw-escape: build-rpm.sh
215 - install-test-uninstall-rpm
217 # Test Oxygen multipatch zip (no parallel tarball available)
219 # yamllint disable-line rule:line-length
220 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.0-SNAPSHOT/karaf-0.8.0-20180305.133042-180.zip'
221 - shell: !include-raw-escape: build-rpm.sh
222 - install-test-uninstall-rpm
224 # Test latest Oxygen snapshot
226 properties-content: 'STREAM=oxygen'
227 - shell: !include-raw: build-rpm-snap.sh
228 - install-test-uninstall-rpm
232 server-name: '{gerrit-server-name}'
234 - comment-added-contains-event:
235 comment-contains-value: 'rpm-verify'
237 - project-compare-type: ANT
238 project-pattern: '{project}'
240 - branch-compare-type: ANT
241 branch-pattern: '**/{branch}'
244 pattern: 'packages/**'
251 name: 'packaging-verify-full-rpm-master'
253 node: centos7-builder-2c-8g
255 project-type: freestyle
258 - opendaylight-infra-parameters:
259 os-cloud: '{os-cloud}'
262 refspec: 'refs/heads/{branch}'
263 artifacts: '{archive-artifacts}'
266 - integration-gerrit-scm:
268 refspec: '$GERRIT_REFSPEC'
272 - opendaylight-infra-wrappers:
273 build-timeout: '{build-timeout}'
276 # Test Carbon SR2 tarball
278 # yamllint disable-line rule:line-length
279 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.2-Carbon/distribution-karaf-0.6.2-Carbon.tar.gz'
280 - shell: !include-raw-escape: build-rpm.sh
281 - install-test-uninstall-rpm
283 # Test Carbon multipatch zip (no parallel tarball available)
284 # NB: This will need to be updated as old builds expire
286 # yamllint disable-line rule:line-length
287 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/distribution-karaf/0.6.4-SNAPSHOT/distribution-karaf-0.6.4-20180305.151247-2.zip'
288 - shell: !include-raw-escape: build-rpm.sh
289 - install-test-uninstall-rpm
291 # Test latest Carbon snapshot
293 properties-content: 'STREAM=carbon'
294 - shell: !include-raw: build-rpm-snap.sh
295 - install-test-uninstall-rpm
297 # Test Nitrogen tarball
299 # yamllint disable-line rule:line-length
300 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
301 - shell: !include-raw-escape: build-rpm.sh
302 - install-test-uninstall-rpm
304 # Test Nitrogen SR1 tarball
306 # yamllint disable-line rule:line-length
307 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.1/karaf-0.7.1.tar.gz'
308 - shell: !include-raw-escape: build-rpm.sh
309 - install-test-uninstall-rpm
311 # Test Nitrogen multipatch zip (no parallel tarball available)
312 # NB: This will need to be updated as old builds expire
314 # yamllint disable-line rule:line-length
315 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.7.3-SNAPSHOT/karaf-0.7.3-20180305.153647-3.zip'
316 - shell: !include-raw-escape: build-rpm.sh
317 - install-test-uninstall-rpm
319 # Test latest Nitrogen snapshot
321 properties-content: 'STREAM=nitrogen'
322 - shell: !include-raw: build-rpm-snap.sh
323 - install-test-uninstall-rpm
325 # Test Oxygen pre-release autorelease tarball
326 # NB: This will need to be updated as old builds expire
328 # yamllint disable-line rule:line-length
329 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2106/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
330 - shell: !include-raw-escape: build-rpm.sh
331 - install-test-uninstall-rpm
333 # Test Oxygen multipatch zip (no parallel tarball available)
334 # NB: This will need to be updated as old builds expire
336 # yamllint disable-line rule:line-length
337 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.0-SNAPSHOT/karaf-0.8.0-20180305.133042-180.zip'
338 - shell: !include-raw-escape: build-rpm.sh
339 - install-test-uninstall-rpm
341 # Test latest Oxygen snapshot
343 properties-content: 'STREAM=oxygen'
344 - shell: !include-raw: build-rpm-snap.sh
345 - install-test-uninstall-rpm
350 server-name: '{gerrit-server-name}'
352 - comment-added-contains-event:
353 comment-contains-value: 'verify-rpm-full'
355 - project-compare-type: ANT
356 project-pattern: '{project}'
358 - branch-compare-type: ANT
359 branch-pattern: '**/{branch}'
366 name: 'packaging-test-rpm-master'
368 node: centos7-builder-2c-8g
371 - opendaylight-infra-parameters:
372 os-cloud: '{os-cloud}'
375 refspec: 'refs/heads/{branch}'
376 artifacts: '{archive-artifacts}'
379 # yamllint disable-line rule:line-length
380 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
381 description: 'Link to .repo or .rpm file'
384 - integration-gerrit-scm:
386 refspec: '$GERRIT_REFSPEC'
390 - opendaylight-infra-wrappers:
391 build-timeout: '{build-timeout}'
395 # Install expect to interact with Karaf shell
396 # Install nmap to check status of ODL's SSH port
397 sudo yum install -y expect nmap
398 - shell: !include-raw-escape: install-rpm.sh
399 - shell: !include-raw: start-odl.sh
400 - shell: !include-raw-escape: test-ports-nofeature.sh
401 - shell: !include-raw: test-karaf-oxygensafe.expect
402 # Disable this test until ODLPARENT-139 is fixed
403 # - shell: !include-raw-escape: test-rest-ok.sh
404 - shell: !include-raw: stop-odl.sh
405 - shell: !include-raw: uninstall-rpm.sh
408 # TODO: Remove the archive publisher
409 # small data should be stored on logs.opendaylight.org
410 # large data should be stored on nexus.opendaylight.org
420 name: 'packaging-test-rpm-upgrade-master'
422 node: centos7-builder-2c-8g
425 - opendaylight-infra-parameters:
426 os-cloud: '{os-cloud}'
429 refspec: 'refs/heads/{branch}'
430 artifacts: '{archive-artifacts}'
433 # yamllint disable-line rule:line-length
434 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
435 description: 'Link to .repo or .rpm file'
438 # yamllint disable-line rule:line-length
439 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
440 description: 'Link to .repo or .rpm file'
443 - integration-gerrit-scm:
445 refspec: '$GERRIT_REFSPEC'
449 - opendaylight-infra-wrappers:
450 build-timeout: '{build-timeout}'
453 - shell: !include-raw-escape: install-rpm.sh
454 - shell: !include-raw: start-odl.sh
456 # Install expect to interact with Karaf shell
457 sudo yum install -y expect
458 # Install nmap to check status of ODL's SSH port
459 sudo yum install -y nmap
460 - shell: !include-raw: test-karaf-oxygensafe.expect
461 - shell: !include-raw: stop-odl.sh
462 - shell: !include-raw: test-rpm-upgrade.sh
463 - shell: !include-raw: start-odl.sh
464 - shell: !include-raw: test-karaf-oxygensafe.expect
465 - shell: !include-raw: stop-odl.sh
466 - shell: !include-raw: uninstall-rpm.sh
473 name: 'packaging-test-deb-master'
475 node: ubuntu1604-mininet-ovs-25-1c-4g
478 - opendaylight-infra-parameters:
479 os-cloud: '{os-cloud}'
482 refspec: 'refs/heads/{branch}'
483 artifacts: '{archive-artifacts}'
486 default: 'ppa:odl-team/nitrogen'
487 description: 'Link to .deb package or name of PPA repo'
490 - integration-gerrit-scm:
492 refspec: '$GERRIT_REFSPEC'
496 - opendaylight-infra-wrappers:
497 build-timeout: '{build-timeout}'
500 - shell: !include-raw-escape: install-deb.sh
501 - shell: !include-raw: start-odl.sh
502 - shell: !include-raw-escape: test-ports-nofeature.sh
504 # Install expect to interact with Karaf shell
505 # Install nmap to check status of ODL's SSH port
506 sudo apt-get install -y expect nmap
507 - shell: !include-raw: test-karaf-oxygensafe.expect
508 # Disable this test until ODLPARENT-139 is fixed
509 # - shell: !include-raw-escape: test-rest-ok.sh
510 - shell: !include-raw: stop-odl.sh
511 - shell: !include-raw-escape: uninstall-deb.sh
518 name: 'packaging-build-deb-{stream}'
520 node: ubuntu1604-mininet-ovs-25-1c-4g
522 project-type: freestyle
529 - opendaylight-infra-properties:
530 build-days-to-keep: 7
533 - opendaylight-infra-parameters:
534 os-cloud: '{os-cloud}'
537 refspec: 'refs/heads/{branch}'
538 artifacts: '{archive-artifacts}'
539 - lf-infra-maven-parameters:
540 mvn-opts: '{mvn-opts}'
541 mvn-params: '{mvn-params}'
542 mvn-version: '{mvn-version}'
543 staging-profile-id: ''
546 # FIXME: Update the default value to an active stream.
547 # yamllint disable-line rule:line-length
548 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'
549 description: 'URL to ODL tarball artifact to repackage into .deb'
553 description: 'Name of person who defined .deb'
555 name: CHANGELOG_EMAIL
556 default: 'jenkins-donotreply@opendaylight.org'
557 description: 'Email of person who defined .deb'
560 - integration-gerrit-scm:
562 refspec: '$GERRIT_REFSPEC'
566 - opendaylight-infra-wrappers:
567 build-timeout: '{build-timeout}'
570 - shell: !include-raw: build-deb.sh
571 - install-test-uninstall-deb
572 - lf-infra-deploy-maven-file:
573 global-settings-file: 'global-settings'
574 settings-file: 'packaging-settings'
575 mvn-version: '{mvn-version}'
576 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
577 group-id: '{group-id}'
578 upload-files-dir: '{upload-files-dir}'
579 maven-repo-url: '{maven-repo-url}'