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-builder-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.sh
150 - install-test-uninstall-rpm
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 - project-compare-type: ANT
229 project-pattern: '{project}'
231 - branch-compare-type: ANT
232 branch-pattern: '**/{branch}'
235 pattern: 'packages/**'
242 name: 'packaging-verify-full-rpm-master'
244 node: centos7-builder-2c-8g
246 project-type: freestyle
249 - opendaylight-infra-parameters:
250 os-cloud: '{os-cloud}'
253 refspec: 'refs/heads/{branch}'
254 artifacts: '{archive-artifacts}'
257 - integration-gerrit-scm:
259 refspec: '$GERRIT_REFSPEC'
263 - opendaylight-infra-wrappers:
264 build-timeout: '{build-timeout}'
267 # Test Carbon SR2 tarball
269 # yamllint disable-line rule:line-length
270 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'
271 - shell: !include-raw-escape: build-rpm.sh
272 - install-test-uninstall-rpm
274 # Test Carbon multipatch zip (no parallel tarball available)
275 # NB: This will need to be updated as old builds expire
277 # yamllint disable-line rule:line-length
278 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'
279 - shell: !include-raw-escape: build-rpm.sh
280 - install-test-uninstall-rpm
282 # Test latest Carbon snapshot
284 properties-content: 'STREAM=carbon'
285 - shell: !include-raw: build-rpm-snap.sh
286 - install-test-uninstall-rpm
288 # Test Nitrogen tarball
290 # yamllint disable-line rule:line-length
291 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'
292 - shell: !include-raw-escape: build-rpm.sh
293 - install-test-uninstall-rpm
295 # Test Nitrogen SR1 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.1/karaf-0.7.1.tar.gz'
299 - shell: !include-raw-escape: build-rpm.sh
300 - install-test-uninstall-rpm
302 # Test Nitrogen multipatch zip (no parallel tarball available)
303 # NB: This will need to be updated as old builds expire
305 # yamllint disable-line rule:line-length
306 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'
307 - shell: !include-raw-escape: build-rpm.sh
308 - install-test-uninstall-rpm
310 # Test latest Nitrogen snapshot
312 properties-content: 'STREAM=nitrogen'
313 - shell: !include-raw: build-rpm-snap.sh
314 - install-test-uninstall-rpm
316 # Test Oxygen pre-release autorelease tarball
317 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
318 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
319 # NB: This will need to be updated as old builds expire
321 # yamllint disable-line rule:line-length
322 # 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'
323 # - shell: !include-raw-escape: build-rpm.sh
324 # - install-test-uninstall-rpm
326 # Test Oxygen multipatch zip (no parallel tarball available)
327 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
328 # NB: This will need to be updated as old builds expire
330 # yamllint disable-line rule:line-length
331 # 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'
332 # - shell: !include-raw: build-rpm.sh
333 # - install-test-uninstall-rpm
335 # Test latest Oxygen snapshot
336 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
337 # NB: Leaving this one known-failing Oxygen test running so can watch for fix
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.expect
398 - shell: !include-raw-escape: test-rest-ok.sh
399 - shell: !include-raw: stop-odl.sh
400 - shell: !include-raw: uninstall-rpm.sh
403 # TODO: Remove the archive publisher
404 # small data should be stored on logs.opendaylight.org
405 # large data should be stored on nexus.opendaylight.org
415 name: 'packaging-test-rpm-upgrade-master'
417 node: centos7-builder-2c-8g
420 - opendaylight-infra-parameters:
421 os-cloud: '{os-cloud}'
424 refspec: 'refs/heads/{branch}'
425 artifacts: '{archive-artifacts}'
428 # yamllint disable-line rule:line-length
429 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
430 description: 'Link to .repo or .rpm file'
433 # yamllint disable-line rule:line-length
434 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
435 description: 'Link to .repo or .rpm file'
438 - integration-gerrit-scm:
440 refspec: '$GERRIT_REFSPEC'
444 - opendaylight-infra-wrappers:
445 build-timeout: '{build-timeout}'
448 - shell: !include-raw-escape: install-rpm.sh
449 - shell: !include-raw: start-odl.sh
451 # Install expect to interact with Karaf shell
452 sudo yum install -y expect
453 # Install nmap to check status of ODL's SSH port
454 sudo yum install -y nmap
455 - shell: !include-raw: test-karaf.expect
456 - shell: !include-raw: stop-odl.sh
457 - shell: !include-raw: test-rpm-upgrade.sh
458 - shell: !include-raw: start-odl.sh
459 - shell: !include-raw: test-karaf.expect
460 - shell: !include-raw: stop-odl.sh
461 - shell: !include-raw: uninstall-rpm.sh
468 name: 'packaging-test-deb-master'
470 node: ubuntu1604-mininet-ovs-25-1c-4g
473 - opendaylight-infra-parameters:
474 os-cloud: '{os-cloud}'
477 refspec: 'refs/heads/{branch}'
478 artifacts: '{archive-artifacts}'
481 default: 'ppa:odl-team/carbon'
482 description: 'Link to .deb package or name of PPA repo'
485 - integration-gerrit-scm:
487 refspec: '$GERRIT_REFSPEC'
491 - opendaylight-infra-wrappers:
492 build-timeout: '{build-timeout}'
495 - shell: !include-raw: install-deb.sh
496 - shell: !include-raw: start-odl.sh
498 # Install expect to interact with Karaf shell
499 sudo apt-get install -y expect
500 # Install nmap to check status of ODL's SSH port
501 sudo apt-get install -y nmap
502 - shell: !include-raw: test-karaf.expect
503 - shell: !include-raw: stop-odl.sh
510 name: 'packaging-build-deb-{stream}'
512 node: ubuntu1604-mininet-ovs-25-1c-4g
514 project-type: freestyle
521 - opendaylight-infra-properties:
522 build-days-to-keep: 7
525 - opendaylight-infra-parameters:
526 os-cloud: '{os-cloud}'
529 refspec: 'refs/heads/{branch}'
530 artifacts: '{archive-artifacts}'
531 - lf-infra-maven-parameters:
532 mvn-opts: '{mvn-opts}'
533 mvn-params: '{mvn-params}'
534 mvn-version: '{mvn-version}'
535 staging-profile-id: ''
538 # FIXME: Update the default value to an active stream.
539 # yamllint disable-line rule:line-length
540 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'
541 description: 'URL to ODL tarball artifact to repackage into .deb'
545 description: 'Name of person who defined .deb'
547 name: CHANGELOG_EMAIL
548 default: 'jenkins-donotreply@opendaylight.org'
549 description: 'Email of person who defined .deb'
552 - integration-gerrit-scm:
554 refspec: '$GERRIT_REFSPEC'
558 - opendaylight-infra-wrappers:
559 build-timeout: '{build-timeout}'
562 - shell: !include-raw: build-deb.sh
563 - lf-infra-deploy-maven-file:
564 global-settings-file: 'global-settings'
565 settings-file: 'packaging-settings'
566 mvn-version: '{mvn-version}'
567 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
568 group-id: '{group-id}'
569 upload-files-dir: '{upload-files-dir}'
570 maven-repo-url: '{maven-repo-url}'