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'
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}'
45 node: centos7-builder-2c-8g
47 project-type: freestyle
54 - opendaylight-infra-properties:
58 - opendaylight-infra-parameters:
59 os-cloud: '{os-cloud}'
62 refspec: 'refs/heads/{branch}'
63 artifacts: '{archive-artifacts}'
64 - lf-infra-maven-parameters:
65 mvn-opts: '{mvn-opts}'
66 mvn-params: '{mvn-params}'
67 mvn-version: '{mvn-version}'
68 staging-profile-id: ''
71 # yamllint disable-line rule:line-length
72 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
73 description: 'URL to ODL tarball artifact to repackage into RPM'
77 description: 'Name of person who defined RPM'
80 default: 'jenkins-donotreply@opendaylight.org'
81 description: 'Email of person who defined RPM'
84 - integration-gerrit-scm:
86 refspec: '$GERRIT_REFSPEC'
90 - opendaylight-infra-wrappers:
91 build-timeout: '{build-timeout}'
94 - shell: !include-raw-escape: build-rpm.sh
95 - install-test-uninstall-rpm
96 - lf-infra-deploy-maven-file:
97 global-settings-file: 'global-settings'
98 settings-file: 'packaging-settings'
99 mvn-version: '{mvn-version}'
100 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
101 group-id: '{group-id}'
102 upload-files-dir: '{upload-files-dir}'
103 maven-repo-url: '{maven-repo-url}'
110 name: 'packaging-build-rpm-{distro}-snap-{stream}'
112 node: centos7-docker-2c-8g
114 project-type: freestyle
121 - opendaylight-infra-properties:
122 build-days-to-keep: 7
125 - opendaylight-infra-parameters:
126 os-cloud: '{os-cloud}'
129 refspec: 'refs/heads/{branch}'
130 artifacts: '{archive-artifacts}'
131 - lf-infra-maven-parameters:
132 mvn-opts: '{mvn-opts}'
133 mvn-params: '{mvn-params}'
134 mvn-version: '{mvn-version}'
135 staging-profile-id: ''
139 description: 'Name of person who defined RPM'
141 name: CHANGELOG_EMAIL
142 default: 'jenkins-donotreply@opendaylight.org'
143 description: 'Email of person who defined RPM'
146 - integration-gerrit-scm:
148 refspec: '$GERRIT_REFSPEC'
152 - opendaylight-infra-wrappers:
153 build-timeout: '{build-timeout}'
157 properties-content: |
160 - shell: !include-raw: build-rpm-snap-docker.sh
161 - shell: !include-raw: test-rpm-docker.sh
162 - lf-infra-deploy-maven-file:
163 global-settings-file: 'global-settings'
164 settings-file: 'packaging-settings'
165 mvn-version: '{mvn-version}'
166 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
167 group-id: '{group-id}'
168 upload-files-dir: '{upload-files-dir}'
169 maven-repo-url: '{maven-repo-url}'
179 name: 'packaging-verify-rpm-master'
181 node: centos7-builder-2c-8g
183 project-type: freestyle
186 - opendaylight-infra-parameters:
187 os-cloud: '{os-cloud}'
190 refspec: 'refs/heads/{branch}'
191 artifacts: '{archive-artifacts}'
194 - integration-gerrit-scm:
196 refspec: '$GERRIT_REFSPEC'
200 - opendaylight-infra-wrappers:
201 build-timeout: '{build-timeout}'
204 # Test Nitrogen tarball
206 # yamllint disable-line rule:line-length
207 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'
208 - shell: !include-raw-escape: build-rpm.sh
209 - install-test-uninstall-rpm
211 # Test Oxygen pre-release autorelease tarball
213 # yamllint disable-line rule:line-length
214 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'
215 - shell: !include-raw-escape: build-rpm.sh
216 - install-test-uninstall-rpm
218 # Test Oxygen multipatch zip (no parallel tarball available)
220 # yamllint disable-line rule:line-length
221 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'
222 - shell: !include-raw-escape: build-rpm.sh
223 - install-test-uninstall-rpm
225 # Test latest Oxygen snapshot
227 properties-content: 'STREAM=oxygen'
228 - shell: !include-raw: build-rpm-snap.sh
229 - install-test-uninstall-rpm
233 server-name: '{gerrit-server-name}'
235 - comment-added-contains-event:
236 comment-contains-value: 'rpm-verify'
238 - project-compare-type: ANT
239 project-pattern: '{project}'
241 - branch-compare-type: ANT
242 branch-pattern: '**/{branch}'
245 pattern: 'packages/**'
252 name: 'packaging-verify-full-rpm-master'
254 node: centos7-builder-2c-8g
256 project-type: freestyle
259 - opendaylight-infra-parameters:
260 os-cloud: '{os-cloud}'
263 refspec: 'refs/heads/{branch}'
264 artifacts: '{archive-artifacts}'
267 - integration-gerrit-scm:
269 refspec: '$GERRIT_REFSPEC'
273 - opendaylight-infra-wrappers:
274 build-timeout: '{build-timeout}'
277 # Test Carbon SR2 tarball
279 # yamllint disable-line rule:line-length
280 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'
281 - shell: !include-raw-escape: build-rpm.sh
282 - install-test-uninstall-rpm
284 # Test Carbon multipatch zip (no parallel tarball available)
285 # NB: This will need to be updated as old builds expire
287 # yamllint disable-line rule:line-length
288 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'
289 - shell: !include-raw-escape: build-rpm.sh
290 - install-test-uninstall-rpm
292 # Test latest Carbon snapshot
294 properties-content: 'STREAM=carbon'
295 - shell: !include-raw: build-rpm-snap.sh
296 - install-test-uninstall-rpm
298 # Test Nitrogen tarball
300 # yamllint disable-line rule:line-length
301 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'
302 - shell: !include-raw-escape: build-rpm.sh
303 - install-test-uninstall-rpm
305 # Test Nitrogen SR1 tarball
307 # yamllint disable-line rule:line-length
308 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'
309 - shell: !include-raw-escape: build-rpm.sh
310 - install-test-uninstall-rpm
312 # Test Nitrogen multipatch zip (no parallel tarball available)
313 # NB: This will need to be updated as old builds expire
315 # yamllint disable-line rule:line-length
316 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'
317 - shell: !include-raw-escape: build-rpm.sh
318 - install-test-uninstall-rpm
320 # Test latest Nitrogen snapshot
322 properties-content: 'STREAM=nitrogen'
323 - shell: !include-raw: build-rpm-snap.sh
324 - install-test-uninstall-rpm
326 # Test Oxygen pre-release autorelease tarball
327 # NB: This will need to be updated as old builds expire
329 # yamllint disable-line rule:line-length
330 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'
331 - shell: !include-raw-escape: build-rpm.sh
332 - install-test-uninstall-rpm
334 # Test Oxygen multipatch zip (no parallel tarball available)
335 # NB: This will need to be updated as old builds expire
337 # yamllint disable-line rule:line-length
338 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'
339 - shell: !include-raw-escape: build-rpm.sh
340 - install-test-uninstall-rpm
342 # Test latest Oxygen snapshot
344 properties-content: 'STREAM=oxygen'
345 - shell: !include-raw: build-rpm-snap.sh
346 - install-test-uninstall-rpm
351 server-name: '{gerrit-server-name}'
353 - comment-added-contains-event:
354 comment-contains-value: 'verify-rpm-full'
356 - project-compare-type: ANT
357 project-pattern: '{project}'
359 - branch-compare-type: ANT
360 branch-pattern: '**/{branch}'
367 name: 'packaging-test-rpm-master'
369 node: centos7-builder-2c-8g
372 - opendaylight-infra-parameters:
373 os-cloud: '{os-cloud}'
376 refspec: 'refs/heads/{branch}'
377 artifacts: '{archive-artifacts}'
380 # yamllint disable-line rule:line-length
381 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
382 description: 'Link to .repo or .rpm file'
385 - integration-gerrit-scm:
387 refspec: '$GERRIT_REFSPEC'
391 - opendaylight-infra-wrappers:
392 build-timeout: '{build-timeout}'
396 # Install expect to interact with Karaf shell
397 # Install nmap to check status of ODL's SSH port
398 sudo yum install -y expect nmap
399 - shell: !include-raw-escape: install-rpm.sh
400 - shell: !include-raw: start-odl.sh
401 - shell: !include-raw-escape: test-ports-nofeature.sh
402 - shell: !include-raw: test-karaf-oxygensafe.expect
403 # Disable this test until ODLPARENT-139 is fixed
404 # - shell: !include-raw-escape: test-rest-ok.sh
405 - shell: !include-raw: stop-odl.sh
406 - shell: !include-raw: uninstall-rpm.sh
409 # TODO: Remove the archive publisher
410 # small data should be stored on logs.opendaylight.org
411 # large data should be stored on nexus.opendaylight.org
421 name: 'packaging-test-rpm-upgrade-master'
423 node: centos7-builder-2c-8g
426 - opendaylight-infra-parameters:
427 os-cloud: '{os-cloud}'
430 refspec: 'refs/heads/{branch}'
431 artifacts: '{archive-artifacts}'
434 # yamllint disable-line rule:line-length
435 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
436 description: 'Link to .repo or .rpm file'
439 # yamllint disable-line rule:line-length
440 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
441 description: 'Link to .repo or .rpm file'
444 - integration-gerrit-scm:
446 refspec: '$GERRIT_REFSPEC'
450 - opendaylight-infra-wrappers:
451 build-timeout: '{build-timeout}'
454 - shell: !include-raw-escape: install-rpm.sh
455 - shell: !include-raw: start-odl.sh
457 # Install expect to interact with Karaf shell
458 sudo yum install -y expect
459 # Install nmap to check status of ODL's SSH port
460 sudo yum install -y nmap
461 - shell: !include-raw: test-karaf-oxygensafe.expect
462 - shell: !include-raw: stop-odl.sh
463 - shell: !include-raw: test-rpm-upgrade.sh
464 - shell: !include-raw: start-odl.sh
465 - shell: !include-raw: test-karaf-oxygensafe.expect
466 - shell: !include-raw: stop-odl.sh
467 - shell: !include-raw: uninstall-rpm.sh
474 name: 'packaging-test-deb-master'
476 node: ubuntu1604-mininet-ovs-25-1c-4g
479 - opendaylight-infra-parameters:
480 os-cloud: '{os-cloud}'
483 refspec: 'refs/heads/{branch}'
484 artifacts: '{archive-artifacts}'
487 default: 'ppa:odl-team/nitrogen'
488 description: 'Link to .deb package or name of PPA repo'
491 - integration-gerrit-scm:
493 refspec: '$GERRIT_REFSPEC'
497 - opendaylight-infra-wrappers:
498 build-timeout: '{build-timeout}'
501 - shell: !include-raw-escape: install-deb.sh
502 - shell: !include-raw: start-odl.sh
503 - shell: !include-raw-escape: test-ports-nofeature.sh
505 # Install expect to interact with Karaf shell
506 # Install nmap to check status of ODL's SSH port
507 sudo apt-get install -y expect nmap
508 - shell: !include-raw: test-karaf-oxygensafe.expect
509 # Disable this test until ODLPARENT-139 is fixed
510 # - shell: !include-raw-escape: test-rest-ok.sh
511 - shell: !include-raw: stop-odl.sh
512 - shell: !include-raw-escape: uninstall-deb.sh
519 name: 'packaging-build-deb-{stream}'
521 node: ubuntu1604-mininet-ovs-25-1c-4g
523 project-type: freestyle
530 - opendaylight-infra-properties:
531 build-days-to-keep: 7
534 - opendaylight-infra-parameters:
535 os-cloud: '{os-cloud}'
538 refspec: 'refs/heads/{branch}'
539 artifacts: '{archive-artifacts}'
540 - lf-infra-maven-parameters:
541 mvn-opts: '{mvn-opts}'
542 mvn-params: '{mvn-params}'
543 mvn-version: '{mvn-version}'
544 staging-profile-id: ''
547 # FIXME: Update the default value to an active stream.
548 # yamllint disable-line rule:line-length
549 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'
550 description: 'URL to ODL tarball artifact to repackage into .deb'
554 description: 'Name of person who defined .deb'
556 name: CHANGELOG_EMAIL
557 default: 'jenkins-donotreply@opendaylight.org'
558 description: 'Email of person who defined .deb'
561 - integration-gerrit-scm:
563 refspec: '$GERRIT_REFSPEC'
567 - opendaylight-infra-wrappers:
568 build-timeout: '{build-timeout}'
571 - shell: !include-raw: build-deb.sh
572 - install-test-uninstall-deb
573 - lf-infra-deploy-maven-file:
574 global-settings-file: 'global-settings'
575 settings-file: 'packaging-settings'
576 mvn-version: '{mvn-version}'
577 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
578 group-id: '{group-id}'
579 upload-files-dir: '{upload-files-dir}'
580 maven-repo-url: '{maven-repo-url}'