4 project-name: packaging
7 - 'packaging-build-rpm-{stream}'
8 - 'packaging-build-rpm-{distro}-snap-{stream}'
9 - 'packaging-build-deb-{stream}'
10 - 'packaging-verify-full-rpm-master'
11 - 'packaging-verify-rpm-master'
12 - 'packaging-test-rpm-master'
13 - 'packaging-test-rpm-upgrade-master'
14 - 'packaging-test-deb-master'
19 project: 'integration/packaging'
31 # common parameters required for 'lf-infra-deploy-maven-file' builder
32 group-id: 'org.opendaylight.integration-packaging'
33 upload-files-dir: '$WORKSPACE/upload_files'
34 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
37 name: 'packaging-build-rpm-{stream}'
39 node: centos7-builder-2c-8g
41 project-type: freestyle
48 - opendaylight-infra-properties:
52 - opendaylight-infra-parameters:
53 os-cloud: '{os-cloud}'
56 refspec: 'refs/heads/{branch}'
57 artifacts: '{archive-artifacts}'
58 - lf-infra-maven-parameters:
59 mvn-opts: '{mvn-opts}'
60 mvn-params: '{mvn-params}'
61 mvn-version: '{mvn-version}'
62 staging-profile-id: ''
65 # yamllint disable-line rule:line-length
66 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
67 description: 'URL to ODL tarball artifact to repackage into RPM'
71 description: 'Name of person who defined RPM'
74 default: 'jenkins-donotreply@opendaylight.org'
75 description: 'Email of person who defined RPM'
78 - integration-gerrit-scm:
80 refspec: '$GERRIT_REFSPEC'
84 - opendaylight-infra-wrappers:
85 build-timeout: '{build-timeout}'
88 - shell: !include-raw-escape: build-rpm.sh
89 - install-test-uninstall-rpm
90 - lf-infra-deploy-maven-file:
91 global-settings-file: 'global-settings'
92 settings-file: 'packaging-settings'
93 mvn-version: '{mvn-version}'
94 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
95 group-id: '{group-id}'
96 upload-files-dir: '{upload-files-dir}'
97 maven-repo-url: '{maven-repo-url}'
104 name: 'packaging-build-rpm-{distro}-snap-{stream}'
106 node: centos7-docker-2c-8g
108 project-type: freestyle
115 - opendaylight-infra-properties:
116 build-days-to-keep: 7
119 - opendaylight-infra-parameters:
120 os-cloud: '{os-cloud}'
123 refspec: 'refs/heads/{branch}'
124 artifacts: '{archive-artifacts}'
125 - lf-infra-maven-parameters:
126 mvn-opts: '{mvn-opts}'
127 mvn-params: '{mvn-params}'
128 mvn-version: '{mvn-version}'
129 staging-profile-id: ''
133 description: 'Name of person who defined RPM'
135 name: CHANGELOG_EMAIL
136 default: 'jenkins-donotreply@opendaylight.org'
137 description: 'Email of person who defined RPM'
140 - integration-gerrit-scm:
142 refspec: '$GERRIT_REFSPEC'
146 - opendaylight-infra-wrappers:
147 build-timeout: '{build-timeout}'
151 properties-content: |
154 - shell: !include-raw: build-rpm-snap-docker.sh
155 - shell: !include-raw: test-rpm-docker.sh
156 - lf-infra-deploy-maven-file:
157 global-settings-file: 'global-settings'
158 settings-file: 'packaging-settings'
159 mvn-version: '{mvn-version}'
160 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
161 group-id: '{group-id}'
162 upload-files-dir: '{upload-files-dir}'
163 maven-repo-url: '{maven-repo-url}'
173 name: 'packaging-verify-rpm-master'
175 node: centos7-builder-2c-8g
177 project-type: freestyle
180 - opendaylight-infra-parameters:
181 os-cloud: '{os-cloud}'
184 refspec: 'refs/heads/{branch}'
185 artifacts: '{archive-artifacts}'
188 - integration-gerrit-scm:
190 refspec: '$GERRIT_REFSPEC'
194 - opendaylight-infra-wrappers:
195 build-timeout: '{build-timeout}'
198 # Test Nitrogen tarball
200 # yamllint disable-line rule:line-length
201 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'
202 - shell: !include-raw-escape: build-rpm.sh
203 - install-test-uninstall-rpm
205 # Test Oxygen pre-release autorelease tarball
206 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
207 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
209 # yamllint disable-line rule:line-length
210 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2052/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
211 # - shell: !include-raw-escape: build-rpm.sh
212 # - install-test-uninstall-rpm
214 # Test Oxygen multipatch zip (no parallel tarball available)
215 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
217 # yamllint disable-line rule:line-length
218 # 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-20180204.191936-134.zip'
219 # - shell: !include-raw-escape: build-rpm.sh
220 # - install-test-uninstall-rpm
222 # Test latest Oxygen snapshot
224 properties-content: 'STREAM=oxygen'
225 - shell: !include-raw: build-rpm-snap.sh
226 - install-test-uninstall-rpm
230 server-name: '{gerrit-server-name}'
232 - comment-added-contains-event:
233 comment-contains-value: 'rpm-verify'
235 - project-compare-type: ANT
236 project-pattern: '{project}'
238 - branch-compare-type: ANT
239 branch-pattern: '**/{branch}'
242 pattern: 'packages/**'
249 name: 'packaging-verify-full-rpm-master'
251 node: centos7-builder-2c-8g
253 project-type: freestyle
256 - opendaylight-infra-parameters:
257 os-cloud: '{os-cloud}'
260 refspec: 'refs/heads/{branch}'
261 artifacts: '{archive-artifacts}'
264 - integration-gerrit-scm:
266 refspec: '$GERRIT_REFSPEC'
270 - opendaylight-infra-wrappers:
271 build-timeout: '{build-timeout}'
274 # Test Carbon SR2 tarball
276 # yamllint disable-line rule:line-length
277 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'
278 - shell: !include-raw-escape: build-rpm.sh
279 - install-test-uninstall-rpm
281 # Test Carbon multipatch zip (no parallel tarball available)
282 # NB: This will need to be updated as old builds expire
284 # yamllint disable-line rule:line-length
285 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/distribution-karaf/0.6.3-SNAPSHOT/distribution-karaf-0.6.3-20180115.181738-1.zip'
286 - shell: !include-raw-escape: build-rpm.sh
287 - install-test-uninstall-rpm
289 # Test latest Carbon snapshot
291 properties-content: 'STREAM=carbon'
292 - shell: !include-raw: build-rpm-snap.sh
293 - install-test-uninstall-rpm
295 # Test Nitrogen tarball
297 # yamllint disable-line rule:line-length
298 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'
299 - shell: !include-raw-escape: build-rpm.sh
300 - install-test-uninstall-rpm
302 # Test Nitrogen SR1 tarball
304 # yamllint disable-line rule:line-length
305 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'
306 - shell: !include-raw-escape: build-rpm.sh
307 - install-test-uninstall-rpm
309 # Test Nitrogen 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.7.2-SNAPSHOT/karaf-0.7.2-20180115.183312-2.zip'
314 - shell: !include-raw-escape: build-rpm.sh
315 - install-test-uninstall-rpm
317 # Test latest Nitrogen snapshot
319 properties-content: 'STREAM=nitrogen'
320 - shell: !include-raw: build-rpm-snap.sh
321 - install-test-uninstall-rpm
323 # Test Oxygen pre-release autorelease tarball
324 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
325 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
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-2052/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 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
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-20180204.191936-134.zip'
339 # - shell: !include-raw: 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/carbon'
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: install-deb.sh
502 - shell: !include-raw: start-odl.sh
504 # Install expect to interact with Karaf shell
505 sudo apt-get install -y expect
506 # Install nmap to check status of ODL's SSH port
507 sudo apt-get install -y nmap
508 - shell: !include-raw: test-karaf-oxygensafe.expect
509 - shell: !include-raw: stop-odl.sh
516 name: 'packaging-build-deb-{stream}'
518 node: ubuntu1604-mininet-ovs-25-1c-4g
520 project-type: freestyle
527 - opendaylight-infra-properties:
528 build-days-to-keep: 7
531 - opendaylight-infra-parameters:
532 os-cloud: '{os-cloud}'
535 refspec: 'refs/heads/{branch}'
536 artifacts: '{archive-artifacts}'
537 - lf-infra-maven-parameters:
538 mvn-opts: '{mvn-opts}'
539 mvn-params: '{mvn-params}'
540 mvn-version: '{mvn-version}'
541 staging-profile-id: ''
544 # FIXME: Update the default value to an active stream.
545 # yamllint disable-line rule:line-length
546 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'
547 description: 'URL to ODL tarball artifact to repackage into .deb'
551 description: 'Name of person who defined .deb'
553 name: CHANGELOG_EMAIL
554 default: 'jenkins-donotreply@opendaylight.org'
555 description: 'Email of person who defined .deb'
558 - integration-gerrit-scm:
560 refspec: '$GERRIT_REFSPEC'
564 - opendaylight-infra-wrappers:
565 build-timeout: '{build-timeout}'
568 - shell: !include-raw: build-deb.sh
569 - lf-infra-deploy-maven-file:
570 global-settings-file: 'global-settings'
571 settings-file: 'packaging-settings'
572 mvn-version: '{mvn-version}'
573 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
574 group-id: '{group-id}'
575 upload-files-dir: '{upload-files-dir}'
576 maven-repo-url: '{maven-repo-url}'