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'
17 project: 'integration/packaging'
25 # common parameters required for 'lf-infra-deploy-maven-file' builder
26 group-id: 'org.opendaylight.integration-packaging'
27 upload-files-dir: '$WORKSPACE/upload_files'
28 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
31 name: 'packaging-build-rpm-{stream}'
33 node: centos7-java-builder-2c-4g
35 project-type: freestyle
42 - opendaylight-infra-properties:
46 - opendaylight-infra-parameters:
47 os-cloud: '{os-cloud}'
50 refspec: 'refs/heads/{branch}'
51 artifacts: '{archive-artifacts}'
52 - lf-infra-maven-parameters:
53 mvn-opts: '{mvn-opts}'
54 mvn-params: '{mvn-params}'
55 mvn-version: '{mvn-version}'
56 staging-profile-id: ''
59 # yamllint disable-line rule:line-length
60 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
61 description: 'URL to ODL tarball artifact to repackage into RPM'
65 description: 'Name of person who defined RPM'
68 default: 'jenkins-donotreply@opendaylight.org'
69 description: 'Email of person who defined RPM'
72 - integration-gerrit-scm:
74 refspec: '$GERRIT_REFSPEC'
78 - opendaylight-infra-wrappers:
79 build-timeout: '{build-timeout}'
82 - shell: !include-raw: build-rpm.sh
83 - shell: !include-raw: test-rpm-deps.sh
84 - lf-infra-deploy-maven-file:
85 global-settings-file: 'global-settings'
86 settings-file: 'packaging-settings'
87 mvn-version: '{mvn-version}'
88 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
89 group-id: '{group-id}'
90 upload-files-dir: '{upload-files-dir}'
91 maven-repo-url: '{maven-repo-url}'
98 name: 'packaging-build-rpm-snap-{stream}'
100 node: centos7-java-builder-2c-4g
102 project-type: freestyle
109 - opendaylight-infra-properties:
110 build-days-to-keep: 7
113 - opendaylight-infra-parameters:
114 os-cloud: '{os-cloud}'
117 refspec: 'refs/heads/{branch}'
118 artifacts: '{archive-artifacts}'
119 - lf-infra-maven-parameters:
120 mvn-opts: '{mvn-opts}'
121 mvn-params: '{mvn-params}'
122 mvn-version: '{mvn-version}'
123 staging-profile-id: ''
127 description: 'Name of person who defined RPM'
129 name: CHANGELOG_EMAIL
130 default: 'jenkins-donotreply@opendaylight.org'
131 description: 'Email of person who defined RPM'
134 - integration-gerrit-scm:
136 refspec: '$GERRIT_REFSPEC'
140 - opendaylight-infra-wrappers:
141 build-timeout: '{build-timeout}'
145 properties-content: 'STREAM={stream}'
146 - shell: !include-raw: build-rpm-snap.sh
147 - lf-infra-deploy-maven-file:
148 global-settings-file: 'global-settings'
149 settings-file: 'packaging-settings'
150 mvn-version: '{mvn-version}'
151 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
152 group-id: '{group-id}'
153 upload-files-dir: '{upload-files-dir}'
154 maven-repo-url: '{maven-repo-url}'
164 name: 'packaging-verify-rpm-master'
166 node: centos7-java-builder-2c-4g
168 project-type: freestyle
171 - opendaylight-infra-parameters:
172 os-cloud: '{os-cloud}'
175 refspec: 'refs/heads/{branch}'
176 artifacts: '{archive-artifacts}'
179 - integration-gerrit-scm:
181 refspec: '$GERRIT_REFSPEC'
185 - opendaylight-infra-wrappers:
186 build-timeout: '{build-timeout}'
189 # TODO: Install/test each RPM? Will require builder script changes.
190 # Test Nitrogen tarball
192 # yamllint disable-line rule:line-length
193 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'
194 - shell: !include-raw: build-rpm.sh
196 # Test Oxygen pre-release autorelease tarball
198 # yamllint disable-line rule:line-length
199 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'
200 - shell: !include-raw: build-rpm.sh
202 # Test Oxygen multipatch zip (no parallel tarball available)
204 # yamllint disable-line rule:line-length
205 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-20171128.175421-68.zip'
206 - shell: !include-raw: build-rpm.sh
208 # Test latest Oxygen snapshot
210 properties-content: 'STREAM=oxygen'
211 - shell: !include-raw: build-rpm-snap.sh
215 server-name: '{gerrit-server-name}'
217 - project-compare-type: ANT
218 project-pattern: '{project}'
220 - branch-compare-type: ANT
221 branch-pattern: '**/{branch}'
224 pattern: 'packages/**'
231 name: 'packaging-verify-full-rpm-master'
233 node: centos7-java-builder-2c-4g
235 project-type: freestyle
238 - opendaylight-infra-parameters:
239 os-cloud: '{os-cloud}'
242 refspec: 'refs/heads/{branch}'
243 artifacts: '{archive-artifacts}'
246 - integration-gerrit-scm:
248 refspec: '$GERRIT_REFSPEC'
252 - opendaylight-infra-wrappers:
253 build-timeout: '{build-timeout}'
256 # TODO: Install/test each RPM. Will require builder script changes.
257 # Test Carbon SR2 tarball
259 # yamllint disable-line rule:line-length
260 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'
261 - shell: !include-raw: build-rpm.sh
263 # Test Carbon multipatch zip (no parallel tarball available)
265 # yamllint disable-line rule:line-length
266 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-20171128.221258-1.zip'
267 - shell: !include-raw: build-rpm.sh
269 # Test latest Carbon snapshot
271 properties-content: 'STREAM=carbon'
272 - shell: !include-raw: build-rpm-snap.sh
274 # Test Nitrogen tarball
276 # yamllint disable-line rule:line-length
277 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'
278 - shell: !include-raw: build-rpm.sh
280 # Test Nitrogen SR1 tarball
282 # yamllint disable-line rule:line-length
283 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'
284 - shell: !include-raw: build-rpm.sh
286 # Test Nitrogen multipatch zip (no parallel tarball available)
288 # yamllint disable-line rule:line-length
289 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-20171128.223150-2.zip'
290 - shell: !include-raw: build-rpm.sh
292 # Test latest Nitrogen snapshot
294 properties-content: 'STREAM=nitrogen'
295 - shell: !include-raw: build-rpm-snap.sh
297 # Test Oxygen pre-release autorelease tarball
299 # yamllint disable-line rule:line-length
300 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'
301 - shell: !include-raw: build-rpm.sh
303 # Test Oxygen multipatch zip (no parallel tarball available)
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.8.0-SNAPSHOT/karaf-0.8.0-20171128.175421-68.zip'
307 - shell: !include-raw: build-rpm.sh
309 # Test latest Oxygen snapshot
311 properties-content: 'STREAM=oxygen'
312 - shell: !include-raw: build-rpm-snap.sh
317 server-name: '{gerrit-server-name}'
319 - comment-added-contains-event:
320 comment-contains-value: 'verify-rpm-full'
322 - project-compare-type: ANT
323 project-pattern: '{project}'
325 - branch-compare-type: ANT
326 branch-pattern: '**/{branch}'
333 name: 'packaging-test-rpm-master'
335 node: centos7-java-builder-2c-4g
338 - opendaylight-infra-parameters:
339 os-cloud: '{os-cloud}'
342 refspec: 'refs/heads/{branch}'
343 artifacts: '{archive-artifacts}'
346 # yamllint disable-line rule:line-length
347 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-testing.repo'
348 description: 'Link to .repo or .rpm file'
351 - integration-gerrit-scm:
353 refspec: '$GERRIT_REFSPEC'
357 - opendaylight-infra-wrappers:
358 build-timeout: '{build-timeout}'
361 - shell: !include-raw: install-rpm.sh
362 - shell: !include-raw: start-odl.sh
364 # Install expect to interact with Karaf shell
365 sudo yum install -y expect
366 # Install nmap to check status of ODL's SSH port
367 sudo yum install -y nmap
368 - shell: !include-raw: test-karaf.expect
369 - shell: !include-raw: stop-odl.sh
372 # TODO: Remove the archive publisher
373 # small data should be stored on logs.opendaylight.org
374 # large data should be stored on nexus.opendaylight.org
384 name: 'packaging-test-rpm-upgrade-master'
386 node: centos7-java-builder-2c-4g
389 - opendaylight-infra-parameters:
390 os-cloud: '{os-cloud}'
393 refspec: 'refs/heads/{branch}'
394 artifacts: '{archive-artifacts}'
397 # yamllint disable-line rule:line-length
398 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
399 description: 'Link to .repo or .rpm file'
402 # yamllint disable-line rule:line-length
403 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
404 description: 'Link to .repo or .rpm file'
407 - integration-gerrit-scm:
409 refspec: '$GERRIT_REFSPEC'
413 - opendaylight-infra-wrappers:
414 build-timeout: '{build-timeout}'
417 - shell: !include-raw: install-rpm.sh
418 - shell: !include-raw: start-odl.sh
420 # Install expect to interact with Karaf shell
421 sudo yum install -y expect
422 # Install nmap to check status of ODL's SSH port
423 sudo yum install -y nmap
424 - shell: !include-raw: test-karaf.expect
425 - shell: !include-raw: stop-odl.sh
426 - shell: !include-raw: test-rpm-upgrade.sh
427 - shell: !include-raw: start-odl.sh
428 - shell: !include-raw: test-karaf.expect
429 - shell: !include-raw: stop-odl.sh
436 name: 'packaging-test-deb-master'
438 node: ubuntu1604-mininet-ovs-25-2c-4g
441 - opendaylight-infra-parameters:
442 os-cloud: '{os-cloud}'
445 refspec: 'refs/heads/{branch}'
446 artifacts: '{archive-artifacts}'
449 default: 'ppa:odl-team/carbon'
450 description: 'Link to .deb package or name of PPA repo'
453 - integration-gerrit-scm:
455 refspec: '$GERRIT_REFSPEC'
459 - opendaylight-infra-wrappers:
460 build-timeout: '{build-timeout}'
463 - shell: !include-raw: install-deb.sh
464 - shell: !include-raw: start-odl.sh
466 # Install expect to interact with Karaf shell
467 sudo apt-get install -y expect
468 # Install nmap to check status of ODL's SSH port
469 sudo apt-get install -y nmap
470 - shell: !include-raw: test-karaf.expect
471 - shell: !include-raw: stop-odl.sh
478 name: 'packaging-build-deb-{stream}'
480 node: ubuntu1604-mininet-ovs-25-2c-4g
482 project-type: freestyle
489 - opendaylight-infra-properties:
490 build-days-to-keep: 7
493 - opendaylight-infra-parameters:
494 os-cloud: '{os-cloud}'
497 refspec: 'refs/heads/{branch}'
498 artifacts: '{archive-artifacts}'
499 - lf-infra-maven-parameters:
500 mvn-opts: '{mvn-opts}'
501 mvn-params: '{mvn-params}'
502 mvn-version: '{mvn-version}'
503 staging-profile-id: ''
506 # FIXME: Update the default value to an active stream.
507 # yamllint disable-line rule:line-length
508 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'
509 description: 'URL to ODL tarball artifact to repackage into .deb'
513 description: 'Name of person who defined .deb'
515 name: CHANGELOG_EMAIL
516 default: 'jenkins-donotreply@opendaylight.org'
517 description: 'Email of person who defined .deb'
520 - integration-gerrit-scm:
522 refspec: '$GERRIT_REFSPEC'
526 - opendaylight-infra-wrappers:
527 build-timeout: '{build-timeout}'
530 - shell: !include-raw: build-deb.sh
531 - lf-infra-deploy-maven-file:
532 global-settings-file: 'global-settings'
533 settings-file: 'packaging-settings'
534 mvn-version: '{mvn-version}'
535 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
536 group-id: '{group-id}'
537 upload-files-dir: '{upload-files-dir}'
538 maven-repo-url: '{maven-repo-url}'