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
219 properties-content: 'STREAM=oxygen'
220 - shell: !include-raw: build-rpm-snap.sh
221 - install-test-uninstall-rpm
225 server-name: '{gerrit-server-name}'
227 - comment-added-contains-event:
228 comment-contains-value: 'rpm-verify'
230 - project-compare-type: ANT
231 project-pattern: '{project}'
233 - branch-compare-type: ANT
234 branch-pattern: '**/{branch}'
237 pattern: 'packages/**'
244 name: 'packaging-verify-full-rpm-master'
246 node: centos7-builder-2c-8g
248 project-type: freestyle
251 - opendaylight-infra-parameters:
252 os-cloud: '{os-cloud}'
255 refspec: 'refs/heads/{branch}'
256 artifacts: '{archive-artifacts}'
259 - integration-gerrit-scm:
261 refspec: '$GERRIT_REFSPEC'
265 - opendaylight-infra-wrappers:
266 build-timeout: '{build-timeout}'
269 # Test Carbon SR2 tarball
271 # yamllint disable-line rule:line-length
272 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'
273 - shell: !include-raw-escape: build-rpm.sh
274 - install-test-uninstall-rpm
276 # Test Carbon multipatch zip (no parallel tarball available)
277 # NB: This will need to be updated as old builds expire
279 # yamllint disable-line rule:line-length
280 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'
281 - shell: !include-raw-escape: build-rpm.sh
282 - install-test-uninstall-rpm
284 # Test latest Carbon snapshot
286 properties-content: 'STREAM=carbon'
287 - shell: !include-raw: build-rpm-snap.sh
288 - install-test-uninstall-rpm
290 # Test Nitrogen tarball
292 # yamllint disable-line rule:line-length
293 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'
294 - shell: !include-raw-escape: build-rpm.sh
295 - install-test-uninstall-rpm
297 # Test Nitrogen SR1 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.1/karaf-0.7.1.tar.gz'
301 - shell: !include-raw-escape: build-rpm.sh
302 - install-test-uninstall-rpm
304 # Test Nitrogen multipatch zip (no parallel tarball available)
305 # NB: This will need to be updated as old builds expire
307 # yamllint disable-line rule:line-length
308 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'
309 - shell: !include-raw-escape: build-rpm.sh
310 - install-test-uninstall-rpm
312 # Test latest Nitrogen snapshot
314 properties-content: 'STREAM=nitrogen'
315 - shell: !include-raw: build-rpm-snap.sh
316 - install-test-uninstall-rpm
318 # Test Oxygen pre-release autorelease tarball
319 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
320 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
321 # NB: This will need to be updated as old builds expire
323 # yamllint disable-line rule:line-length
324 # 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'
325 # - shell: !include-raw-escape: build-rpm.sh
326 # - install-test-uninstall-rpm
328 # Test Oxygen multipatch zip (no parallel tarball available)
329 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
330 # NB: This will need to be updated as old builds expire
332 # yamllint disable-line rule:line-length
333 # 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'
334 # - shell: !include-raw: build-rpm.sh
335 # - install-test-uninstall-rpm
337 # Test latest Oxygen snapshot
339 properties-content: 'STREAM=oxygen'
340 - shell: !include-raw: build-rpm-snap.sh
341 - install-test-uninstall-rpm
346 server-name: '{gerrit-server-name}'
348 - comment-added-contains-event:
349 comment-contains-value: 'verify-rpm-full'
351 - project-compare-type: ANT
352 project-pattern: '{project}'
354 - branch-compare-type: ANT
355 branch-pattern: '**/{branch}'
362 name: 'packaging-test-rpm-master'
364 node: centos7-builder-2c-8g
367 - opendaylight-infra-parameters:
368 os-cloud: '{os-cloud}'
371 refspec: 'refs/heads/{branch}'
372 artifacts: '{archive-artifacts}'
375 # yamllint disable-line rule:line-length
376 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
377 description: 'Link to .repo or .rpm file'
380 - integration-gerrit-scm:
382 refspec: '$GERRIT_REFSPEC'
386 - opendaylight-infra-wrappers:
387 build-timeout: '{build-timeout}'
391 # Install expect to interact with Karaf shell
392 # Install nmap to check status of ODL's SSH port
393 sudo yum install -y expect nmap
394 - shell: !include-raw-escape: install-rpm.sh
395 - shell: !include-raw: start-odl.sh
396 - shell: !include-raw-escape: test-ports-nofeature.sh
397 - shell: !include-raw: test-karaf-oxygensafe.expect
398 # Disable this test until ODLPARENT-139 is fixed
399 # - shell: !include-raw-escape: test-rest-ok.sh
400 - shell: !include-raw: stop-odl.sh
401 - shell: !include-raw: uninstall-rpm.sh
404 # TODO: Remove the archive publisher
405 # small data should be stored on logs.opendaylight.org
406 # large data should be stored on nexus.opendaylight.org
416 name: 'packaging-test-rpm-upgrade-master'
418 node: centos7-builder-2c-8g
421 - opendaylight-infra-parameters:
422 os-cloud: '{os-cloud}'
425 refspec: 'refs/heads/{branch}'
426 artifacts: '{archive-artifacts}'
429 # yamllint disable-line rule:line-length
430 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
431 description: 'Link to .repo or .rpm file'
434 # yamllint disable-line rule:line-length
435 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
436 description: 'Link to .repo or .rpm file'
439 - integration-gerrit-scm:
441 refspec: '$GERRIT_REFSPEC'
445 - opendaylight-infra-wrappers:
446 build-timeout: '{build-timeout}'
449 - shell: !include-raw-escape: install-rpm.sh
450 - shell: !include-raw: start-odl.sh
452 # Install expect to interact with Karaf shell
453 sudo yum install -y expect
454 # Install nmap to check status of ODL's SSH port
455 sudo yum install -y nmap
456 - shell: !include-raw: test-karaf-oxygensafe.expect
457 - shell: !include-raw: stop-odl.sh
458 - shell: !include-raw: test-rpm-upgrade.sh
459 - shell: !include-raw: start-odl.sh
460 - shell: !include-raw: test-karaf-oxygensafe.expect
461 - shell: !include-raw: stop-odl.sh
462 - shell: !include-raw: uninstall-rpm.sh
469 name: 'packaging-test-deb-master'
471 node: ubuntu1604-mininet-ovs-25-1c-4g
474 - opendaylight-infra-parameters:
475 os-cloud: '{os-cloud}'
478 refspec: 'refs/heads/{branch}'
479 artifacts: '{archive-artifacts}'
482 default: 'ppa:odl-team/carbon'
483 description: 'Link to .deb package or name of PPA repo'
486 - integration-gerrit-scm:
488 refspec: '$GERRIT_REFSPEC'
492 - opendaylight-infra-wrappers:
493 build-timeout: '{build-timeout}'
496 - shell: !include-raw: install-deb.sh
497 - shell: !include-raw: start-odl.sh
499 # Install expect to interact with Karaf shell
500 sudo apt-get install -y expect
501 # Install nmap to check status of ODL's SSH port
502 sudo apt-get install -y nmap
503 - shell: !include-raw: test-karaf-oxygensafe.expect
504 - shell: !include-raw: stop-odl.sh
511 name: 'packaging-build-deb-{stream}'
513 node: ubuntu1604-mininet-ovs-25-1c-4g
515 project-type: freestyle
522 - opendaylight-infra-properties:
523 build-days-to-keep: 7
526 - opendaylight-infra-parameters:
527 os-cloud: '{os-cloud}'
530 refspec: 'refs/heads/{branch}'
531 artifacts: '{archive-artifacts}'
532 - lf-infra-maven-parameters:
533 mvn-opts: '{mvn-opts}'
534 mvn-params: '{mvn-params}'
535 mvn-version: '{mvn-version}'
536 staging-profile-id: ''
539 # FIXME: Update the default value to an active stream.
540 # yamllint disable-line rule:line-length
541 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'
542 description: 'URL to ODL tarball artifact to repackage into .deb'
546 description: 'Name of person who defined .deb'
548 name: CHANGELOG_EMAIL
549 default: 'jenkins-donotreply@opendaylight.org'
550 description: 'Email of person who defined .deb'
553 - integration-gerrit-scm:
555 refspec: '$GERRIT_REFSPEC'
559 - opendaylight-infra-wrappers:
560 build-timeout: '{build-timeout}'
563 - shell: !include-raw: build-deb.sh
564 - lf-infra-deploy-maven-file:
565 global-settings-file: 'global-settings'
566 settings-file: 'packaging-settings'
567 mvn-version: '{mvn-version}'
568 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
569 group-id: '{group-id}'
570 upload-files-dir: '{upload-files-dir}'
571 maven-repo-url: '{maven-repo-url}'