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-builder-2c-8g
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
85 properties-content: 'URL=/home/$USER/rpmbuild/RPMS/noarch/*.rpm'
86 - shell: !include-raw: install-rpm.sh
87 - shell: !include-raw: start-odl.sh
89 # Install expect to interact with Karaf shell
90 sudo yum install -y expect
91 # Install nmap to check status of ODL's SSH port
92 sudo yum install -y nmap
93 - shell: !include-raw: test-karaf.expect
94 - shell: !include-raw: stop-odl.sh
95 - shell: !include-raw: uninstall-rpm.sh
96 - lf-infra-deploy-maven-file:
97 global-settings-file: 'global-settings'
98 settings-file: 'packaging-settings'
99 mvn-version: '{mvn-version}'
100 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
101 group-id: '{group-id}'
102 upload-files-dir: '{upload-files-dir}'
103 maven-repo-url: '{maven-repo-url}'
110 name: 'packaging-build-rpm-snap-{stream}'
112 node: centos7-builder-2c-8g
114 project-type: freestyle
121 - opendaylight-infra-properties:
122 build-days-to-keep: 7
125 - opendaylight-infra-parameters:
126 os-cloud: '{os-cloud}'
129 refspec: 'refs/heads/{branch}'
130 artifacts: '{archive-artifacts}'
131 - lf-infra-maven-parameters:
132 mvn-opts: '{mvn-opts}'
133 mvn-params: '{mvn-params}'
134 mvn-version: '{mvn-version}'
135 staging-profile-id: ''
139 description: 'Name of person who defined RPM'
141 name: CHANGELOG_EMAIL
142 default: 'jenkins-donotreply@opendaylight.org'
143 description: 'Email of person who defined RPM'
146 - integration-gerrit-scm:
148 refspec: '$GERRIT_REFSPEC'
152 - opendaylight-infra-wrappers:
153 build-timeout: '{build-timeout}'
157 properties-content: 'STREAM={stream}'
158 - shell: !include-raw: build-rpm-snap.sh
159 - shell: !include-raw: test-rpm-deps.sh
160 - lf-infra-deploy-maven-file:
161 global-settings-file: 'global-settings'
162 settings-file: 'packaging-settings'
163 mvn-version: '{mvn-version}'
164 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
165 group-id: '{group-id}'
166 upload-files-dir: '{upload-files-dir}'
167 maven-repo-url: '{maven-repo-url}'
177 name: 'packaging-verify-rpm-master'
179 node: centos7-builder-2c-8g
181 project-type: freestyle
184 - opendaylight-infra-parameters:
185 os-cloud: '{os-cloud}'
188 refspec: 'refs/heads/{branch}'
189 artifacts: '{archive-artifacts}'
192 - integration-gerrit-scm:
194 refspec: '$GERRIT_REFSPEC'
198 - opendaylight-infra-wrappers:
199 build-timeout: '{build-timeout}'
202 # TODO: Install/test each RPM? Will require builder script changes.
203 # Test Nitrogen tarball
205 # yamllint disable-line rule:line-length
206 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'
207 - shell: !include-raw: build-rpm.sh
209 # Test Oxygen pre-release autorelease tarball
211 # yamllint disable-line rule:line-length
212 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'
213 - shell: !include-raw: build-rpm.sh
215 # Test Oxygen multipatch zip (no parallel tarball available)
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-20171128.175421-68.zip'
219 - shell: !include-raw: build-rpm.sh
221 # Test latest Oxygen snapshot
223 properties-content: 'STREAM=oxygen'
224 - shell: !include-raw: build-rpm-snap.sh
228 server-name: '{gerrit-server-name}'
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 # TODO: Install/test each RPM. Will require builder script changes.
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: build-rpm.sh
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: build-rpm.sh
283 # Test latest Carbon snapshot
285 properties-content: 'STREAM=carbon'
286 - shell: !include-raw: build-rpm-snap.sh
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: build-rpm.sh
294 # Test Nitrogen SR1 tarball
296 # yamllint disable-line rule:line-length
297 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'
298 - shell: !include-raw: build-rpm.sh
300 # Test Nitrogen multipatch zip (no parallel tarball available)
301 # NB: This will need to be updated as old builds expire
303 # yamllint disable-line rule:line-length
304 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'
305 - shell: !include-raw: build-rpm.sh
307 # Test latest Nitrogen snapshot
309 properties-content: 'STREAM=nitrogen'
310 - shell: !include-raw: build-rpm-snap.sh
312 # Test Oxygen pre-release autorelease tarball
313 # NB: This will need to be updated as old builds expire
315 # yamllint disable-line rule:line-length
316 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'
317 - shell: !include-raw: build-rpm.sh
319 # Test Oxygen multipatch zip (no parallel tarball available)
320 # NB: This will need to be updated as old builds expire
322 # yamllint disable-line rule:line-length
323 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-20180111.030942-90.zip'
324 - shell: !include-raw: build-rpm.sh
326 # Test latest Oxygen snapshot
328 properties-content: 'STREAM=oxygen'
329 - shell: !include-raw: build-rpm-snap.sh
334 server-name: '{gerrit-server-name}'
336 - comment-added-contains-event:
337 comment-contains-value: 'verify-rpm-full'
339 - project-compare-type: ANT
340 project-pattern: '{project}'
342 - branch-compare-type: ANT
343 branch-pattern: '**/{branch}'
350 name: 'packaging-test-rpm-master'
352 node: centos7-builder-2c-8g
355 - opendaylight-infra-parameters:
356 os-cloud: '{os-cloud}'
359 refspec: 'refs/heads/{branch}'
360 artifacts: '{archive-artifacts}'
363 # yamllint disable-line rule:line-length
364 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
365 description: 'Link to .repo or .rpm file'
368 - integration-gerrit-scm:
370 refspec: '$GERRIT_REFSPEC'
374 - opendaylight-infra-wrappers:
375 build-timeout: '{build-timeout}'
378 - shell: !include-raw: install-rpm.sh
379 - shell: !include-raw: start-odl.sh
381 # Install expect to interact with Karaf shell
382 sudo yum install -y expect
383 # Install nmap to check status of ODL's SSH port
384 sudo yum install -y nmap
385 - shell: !include-raw: test-karaf.expect
386 - shell: !include-raw: stop-odl.sh
387 - shell: !include-raw: uninstall-rpm.sh
390 # TODO: Remove the archive publisher
391 # small data should be stored on logs.opendaylight.org
392 # large data should be stored on nexus.opendaylight.org
402 name: 'packaging-test-rpm-upgrade-master'
404 node: centos7-builder-2c-8g
407 - opendaylight-infra-parameters:
408 os-cloud: '{os-cloud}'
411 refspec: 'refs/heads/{branch}'
412 artifacts: '{archive-artifacts}'
415 # yamllint disable-line rule:line-length
416 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
417 description: 'Link to .repo or .rpm file'
420 # yamllint disable-line rule:line-length
421 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
422 description: 'Link to .repo or .rpm file'
425 - integration-gerrit-scm:
427 refspec: '$GERRIT_REFSPEC'
431 - opendaylight-infra-wrappers:
432 build-timeout: '{build-timeout}'
435 - shell: !include-raw: install-rpm.sh
436 - shell: !include-raw: start-odl.sh
438 # Install expect to interact with Karaf shell
439 sudo yum install -y expect
440 # Install nmap to check status of ODL's SSH port
441 sudo yum install -y nmap
442 - shell: !include-raw: test-karaf.expect
443 - shell: !include-raw: stop-odl.sh
444 - shell: !include-raw: test-rpm-upgrade.sh
445 - shell: !include-raw: start-odl.sh
446 - shell: !include-raw: test-karaf.expect
447 - shell: !include-raw: stop-odl.sh
448 - shell: !include-raw: uninstall-rpm.sh
455 name: 'packaging-test-deb-master'
457 node: ubuntu1604-mininet-ovs-25-1c-4g
460 - opendaylight-infra-parameters:
461 os-cloud: '{os-cloud}'
464 refspec: 'refs/heads/{branch}'
465 artifacts: '{archive-artifacts}'
468 default: 'ppa:odl-team/carbon'
469 description: 'Link to .deb package or name of PPA repo'
472 - integration-gerrit-scm:
474 refspec: '$GERRIT_REFSPEC'
478 - opendaylight-infra-wrappers:
479 build-timeout: '{build-timeout}'
482 - shell: !include-raw: install-deb.sh
483 - shell: !include-raw: start-odl.sh
485 # Install expect to interact with Karaf shell
486 sudo apt-get install -y expect
487 # Install nmap to check status of ODL's SSH port
488 sudo apt-get install -y nmap
489 - shell: !include-raw: test-karaf.expect
490 - shell: !include-raw: stop-odl.sh
497 name: 'packaging-build-deb-{stream}'
499 node: ubuntu1604-mininet-ovs-25-1c-4g
501 project-type: freestyle
508 - opendaylight-infra-properties:
509 build-days-to-keep: 7
512 - opendaylight-infra-parameters:
513 os-cloud: '{os-cloud}'
516 refspec: 'refs/heads/{branch}'
517 artifacts: '{archive-artifacts}'
518 - lf-infra-maven-parameters:
519 mvn-opts: '{mvn-opts}'
520 mvn-params: '{mvn-params}'
521 mvn-version: '{mvn-version}'
522 staging-profile-id: ''
525 # FIXME: Update the default value to an active stream.
526 # yamllint disable-line rule:line-length
527 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'
528 description: 'URL to ODL tarball artifact to repackage into .deb'
532 description: 'Name of person who defined .deb'
534 name: CHANGELOG_EMAIL
535 default: 'jenkins-donotreply@opendaylight.org'
536 description: 'Email of person who defined .deb'
539 - integration-gerrit-scm:
541 refspec: '$GERRIT_REFSPEC'
545 - opendaylight-infra-wrappers:
546 build-timeout: '{build-timeout}'
549 - shell: !include-raw: build-deb.sh
550 - lf-infra-deploy-maven-file:
551 global-settings-file: 'global-settings'
552 settings-file: 'packaging-settings'
553 mvn-version: '{mvn-version}'
554 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
555 group-id: '{group-id}'
556 upload-files-dir: '{upload-files-dir}'
557 maven-repo-url: '{maven-repo-url}'