4 project-name: packaging
7 - 'packaging-build-rpm-{stream}'
8 - 'packaging-build-rpm-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'
28 # common parameters required for 'lf-infra-deploy-maven-file' builder
29 group-id: 'org.opendaylight.integration-packaging'
30 upload-files-dir: '$WORKSPACE/upload_files'
31 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
34 name: 'packaging-build-rpm-{stream}'
36 node: centos7-builder-2c-8g
38 project-type: freestyle
45 - opendaylight-infra-properties:
49 - opendaylight-infra-parameters:
50 os-cloud: '{os-cloud}'
53 refspec: 'refs/heads/{branch}'
54 artifacts: '{archive-artifacts}'
55 - lf-infra-maven-parameters:
56 mvn-opts: '{mvn-opts}'
57 mvn-params: '{mvn-params}'
58 mvn-version: '{mvn-version}'
59 staging-profile-id: ''
62 # yamllint disable-line rule:line-length
63 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
64 description: 'URL to ODL tarball artifact to repackage into RPM'
68 description: 'Name of person who defined RPM'
71 default: 'jenkins-donotreply@opendaylight.org'
72 description: 'Email of person who defined RPM'
75 - integration-gerrit-scm:
77 refspec: '$GERRIT_REFSPEC'
81 - opendaylight-infra-wrappers:
82 build-timeout: '{build-timeout}'
85 - shell: !include-raw-escape: build-rpm.sh
86 - install-test-uninstall-rpm
87 - lf-infra-deploy-maven-file:
88 global-settings-file: 'global-settings'
89 settings-file: 'packaging-settings'
90 mvn-version: '{mvn-version}'
91 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
92 group-id: '{group-id}'
93 upload-files-dir: '{upload-files-dir}'
94 maven-repo-url: '{maven-repo-url}'
101 name: 'packaging-build-rpm-snap-{stream}'
103 node: centos7-docker-2c-8g
105 project-type: freestyle
112 - opendaylight-infra-properties:
113 build-days-to-keep: 7
116 - opendaylight-infra-parameters:
117 os-cloud: '{os-cloud}'
120 refspec: 'refs/heads/{branch}'
121 artifacts: '{archive-artifacts}'
122 - lf-infra-maven-parameters:
123 mvn-opts: '{mvn-opts}'
124 mvn-params: '{mvn-params}'
125 mvn-version: '{mvn-version}'
126 staging-profile-id: ''
130 description: 'Name of person who defined RPM'
132 name: CHANGELOG_EMAIL
133 default: 'jenkins-donotreply@opendaylight.org'
134 description: 'Email of person who defined RPM'
137 - integration-gerrit-scm:
139 refspec: '$GERRIT_REFSPEC'
143 - opendaylight-infra-wrappers:
144 build-timeout: '{build-timeout}'
148 properties-content: 'STREAM={stream}'
149 - shell: !include-raw: build-rpm-snap-docker.sh
150 - shell: !include-raw: test-rpm-docker.sh
151 - lf-infra-deploy-maven-file:
152 global-settings-file: 'global-settings'
153 settings-file: 'packaging-settings'
154 mvn-version: '{mvn-version}'
155 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
156 group-id: '{group-id}'
157 upload-files-dir: '{upload-files-dir}'
158 maven-repo-url: '{maven-repo-url}'
168 name: 'packaging-verify-rpm-master'
170 node: centos7-builder-2c-8g
172 project-type: freestyle
175 - opendaylight-infra-parameters:
176 os-cloud: '{os-cloud}'
179 refspec: 'refs/heads/{branch}'
180 artifacts: '{archive-artifacts}'
183 - integration-gerrit-scm:
185 refspec: '$GERRIT_REFSPEC'
189 - opendaylight-infra-wrappers:
190 build-timeout: '{build-timeout}'
193 # Test Nitrogen tarball
195 # yamllint disable-line rule:line-length
196 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'
197 - shell: !include-raw-escape: build-rpm.sh
198 - install-test-uninstall-rpm
200 # Test Oxygen pre-release autorelease tarball
201 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
202 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
204 # yamllint disable-line rule:line-length
205 # 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'
206 # - shell: !include-raw-escape: build-rpm.sh
207 # - install-test-uninstall-rpm
209 # Test Oxygen multipatch zip (no parallel tarball available)
210 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
212 # yamllint disable-line rule:line-length
213 # 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'
214 # - shell: !include-raw-escape: build-rpm.sh
215 # - install-test-uninstall-rpm
217 # Test latest Oxygen snapshot
218 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
220 # properties-content: 'STREAM=oxygen'
221 # - shell: !include-raw: build-rpm-snap.sh
222 # - install-test-uninstall-rpm
226 server-name: '{gerrit-server-name}'
228 - comment-added-contains-event:
229 comment-contains-value: 'rpm-verify'
231 - project-compare-type: ANT
232 project-pattern: '{project}'
234 - branch-compare-type: ANT
235 branch-pattern: '**/{branch}'
238 pattern: 'packages/**'
245 name: 'packaging-verify-full-rpm-master'
247 node: centos7-builder-2c-8g
249 project-type: freestyle
252 - opendaylight-infra-parameters:
253 os-cloud: '{os-cloud}'
256 refspec: 'refs/heads/{branch}'
257 artifacts: '{archive-artifacts}'
260 - integration-gerrit-scm:
262 refspec: '$GERRIT_REFSPEC'
266 - opendaylight-infra-wrappers:
267 build-timeout: '{build-timeout}'
270 # Test Carbon SR2 tarball
272 # yamllint disable-line rule:line-length
273 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'
274 - shell: !include-raw-escape: build-rpm.sh
275 - install-test-uninstall-rpm
277 # Test Carbon multipatch zip (no parallel tarball available)
278 # NB: This will need to be updated as old builds expire
280 # yamllint disable-line rule:line-length
281 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'
282 - shell: !include-raw-escape: build-rpm.sh
283 - install-test-uninstall-rpm
285 # Test latest Carbon snapshot
287 properties-content: 'STREAM=carbon'
288 - shell: !include-raw: build-rpm-snap.sh
289 - install-test-uninstall-rpm
291 # Test Nitrogen tarball
293 # yamllint disable-line rule:line-length
294 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'
295 - shell: !include-raw-escape: build-rpm.sh
296 - install-test-uninstall-rpm
298 # Test Nitrogen SR1 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.1/karaf-0.7.1.tar.gz'
302 - shell: !include-raw-escape: build-rpm.sh
303 - install-test-uninstall-rpm
305 # Test Nitrogen multipatch zip (no parallel tarball available)
306 # NB: This will need to be updated as old builds expire
308 # yamllint disable-line rule:line-length
309 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'
310 - shell: !include-raw-escape: build-rpm.sh
311 - install-test-uninstall-rpm
313 # Test latest Nitrogen snapshot
315 properties-content: 'STREAM=nitrogen'
316 - shell: !include-raw: build-rpm-snap.sh
317 - install-test-uninstall-rpm
319 # Test Oxygen pre-release autorelease tarball
320 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
321 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
322 # NB: This will need to be updated as old builds expire
324 # yamllint disable-line rule:line-length
325 # 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'
326 # - shell: !include-raw-escape: build-rpm.sh
327 # - install-test-uninstall-rpm
329 # Test Oxygen multipatch zip (no parallel tarball available)
330 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
331 # NB: This will need to be updated as old builds expire
333 # yamllint disable-line rule:line-length
334 # 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'
335 # - shell: !include-raw: build-rpm.sh
336 # - install-test-uninstall-rpm
338 # Test latest Oxygen snapshot
339 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
340 # NB: Leaving this one known-failing Oxygen test running so can watch for fix
342 properties-content: 'STREAM=oxygen'
343 - shell: !include-raw: build-rpm-snap.sh
344 - install-test-uninstall-rpm
349 server-name: '{gerrit-server-name}'
351 - comment-added-contains-event:
352 comment-contains-value: 'verify-rpm-full'
354 - project-compare-type: ANT
355 project-pattern: '{project}'
357 - branch-compare-type: ANT
358 branch-pattern: '**/{branch}'
365 name: 'packaging-test-rpm-master'
367 node: centos7-builder-2c-8g
370 - opendaylight-infra-parameters:
371 os-cloud: '{os-cloud}'
374 refspec: 'refs/heads/{branch}'
375 artifacts: '{archive-artifacts}'
378 # yamllint disable-line rule:line-length
379 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
380 description: 'Link to .repo or .rpm file'
383 - integration-gerrit-scm:
385 refspec: '$GERRIT_REFSPEC'
389 - opendaylight-infra-wrappers:
390 build-timeout: '{build-timeout}'
394 # Install expect to interact with Karaf shell
395 # Install nmap to check status of ODL's SSH port
396 sudo yum install -y expect nmap
397 - shell: !include-raw-escape: install-rpm.sh
398 - shell: !include-raw: start-odl.sh
399 - shell: !include-raw-escape: test-ports-nofeature.sh
400 - shell: !include-raw: test-karaf-oxygensafe.expect
401 # Disable this test until ODLPARENT-139 is fixed
402 # - shell: !include-raw-escape: test-rest-ok.sh
403 - shell: !include-raw: stop-odl.sh
404 - shell: !include-raw: uninstall-rpm.sh
407 # TODO: Remove the archive publisher
408 # small data should be stored on logs.opendaylight.org
409 # large data should be stored on nexus.opendaylight.org
419 name: 'packaging-test-rpm-upgrade-master'
421 node: centos7-builder-2c-8g
424 - opendaylight-infra-parameters:
425 os-cloud: '{os-cloud}'
428 refspec: 'refs/heads/{branch}'
429 artifacts: '{archive-artifacts}'
432 # yamllint disable-line rule:line-length
433 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
434 description: 'Link to .repo or .rpm file'
437 # yamllint disable-line rule:line-length
438 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
439 description: 'Link to .repo or .rpm file'
442 - integration-gerrit-scm:
444 refspec: '$GERRIT_REFSPEC'
448 - opendaylight-infra-wrappers:
449 build-timeout: '{build-timeout}'
452 - shell: !include-raw-escape: install-rpm.sh
453 - shell: !include-raw: start-odl.sh
455 # Install expect to interact with Karaf shell
456 sudo yum install -y expect
457 # Install nmap to check status of ODL's SSH port
458 sudo yum install -y nmap
459 - shell: !include-raw: test-karaf-oxygensafe.expect
460 - shell: !include-raw: stop-odl.sh
461 - shell: !include-raw: test-rpm-upgrade.sh
462 - shell: !include-raw: start-odl.sh
463 - shell: !include-raw: test-karaf-oxygensafe.expect
464 - shell: !include-raw: stop-odl.sh
465 - shell: !include-raw: uninstall-rpm.sh
472 name: 'packaging-test-deb-master'
474 node: ubuntu1604-mininet-ovs-25-1c-4g
477 - opendaylight-infra-parameters:
478 os-cloud: '{os-cloud}'
481 refspec: 'refs/heads/{branch}'
482 artifacts: '{archive-artifacts}'
485 default: 'ppa:odl-team/carbon'
486 description: 'Link to .deb package or name of PPA repo'
489 - integration-gerrit-scm:
491 refspec: '$GERRIT_REFSPEC'
495 - opendaylight-infra-wrappers:
496 build-timeout: '{build-timeout}'
499 - shell: !include-raw: install-deb.sh
500 - shell: !include-raw: start-odl.sh
502 # Install expect to interact with Karaf shell
503 sudo apt-get install -y expect
504 # Install nmap to check status of ODL's SSH port
505 sudo apt-get install -y nmap
506 - shell: !include-raw: test-karaf-oxygensafe.expect
507 - shell: !include-raw: stop-odl.sh
514 name: 'packaging-build-deb-{stream}'
516 node: ubuntu1604-mininet-ovs-25-1c-4g
518 project-type: freestyle
525 - opendaylight-infra-properties:
526 build-days-to-keep: 7
529 - opendaylight-infra-parameters:
530 os-cloud: '{os-cloud}'
533 refspec: 'refs/heads/{branch}'
534 artifacts: '{archive-artifacts}'
535 - lf-infra-maven-parameters:
536 mvn-opts: '{mvn-opts}'
537 mvn-params: '{mvn-params}'
538 mvn-version: '{mvn-version}'
539 staging-profile-id: ''
542 # FIXME: Update the default value to an active stream.
543 # yamllint disable-line rule:line-length
544 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'
545 description: 'URL to ODL tarball artifact to repackage into .deb'
549 description: 'Name of person who defined .deb'
551 name: CHANGELOG_EMAIL
552 default: 'jenkins-donotreply@opendaylight.org'
553 description: 'Email of person who defined .deb'
556 - integration-gerrit-scm:
558 refspec: '$GERRIT_REFSPEC'
562 - opendaylight-infra-wrappers:
563 build-timeout: '{build-timeout}'
566 - shell: !include-raw: build-deb.sh
567 - lf-infra-deploy-maven-file:
568 global-settings-file: 'global-settings'
569 settings-file: 'packaging-settings'
570 mvn-version: '{mvn-version}'
571 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
572 group-id: '{group-id}'
573 upload-files-dir: '{upload-files-dir}'
574 maven-repo-url: '{maven-repo-url}'