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 - shell: !include-raw: test-rpm-deps.sh
148 - lf-infra-deploy-maven-file:
149 global-settings-file: 'global-settings'
150 settings-file: 'packaging-settings'
151 mvn-version: '{mvn-version}'
152 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
153 group-id: '{group-id}'
154 upload-files-dir: '{upload-files-dir}'
155 maven-repo-url: '{maven-repo-url}'
165 name: 'packaging-verify-rpm-master'
167 node: centos7-java-builder-2c-4g
169 project-type: freestyle
172 - opendaylight-infra-parameters:
173 os-cloud: '{os-cloud}'
176 refspec: 'refs/heads/{branch}'
177 artifacts: '{archive-artifacts}'
180 - integration-gerrit-scm:
182 refspec: '$GERRIT_REFSPEC'
186 - opendaylight-infra-wrappers:
187 build-timeout: '{build-timeout}'
190 # TODO: Install/test each RPM? Will require builder script changes.
191 # Test Nitrogen tarball
193 # yamllint disable-line rule:line-length
194 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'
195 - shell: !include-raw: build-rpm.sh
197 # Test Oxygen pre-release autorelease tarball
199 # yamllint disable-line rule:line-length
200 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'
201 - shell: !include-raw: build-rpm.sh
203 # Test Oxygen multipatch zip (no parallel tarball available)
205 # yamllint disable-line rule:line-length
206 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'
207 - shell: !include-raw: build-rpm.sh
209 # Test latest Oxygen snapshot
211 properties-content: 'STREAM=oxygen'
212 - shell: !include-raw: build-rpm-snap.sh
216 server-name: '{gerrit-server-name}'
218 - project-compare-type: ANT
219 project-pattern: '{project}'
221 - branch-compare-type: ANT
222 branch-pattern: '**/{branch}'
225 pattern: 'packages/**'
232 name: 'packaging-verify-full-rpm-master'
234 node: centos7-java-builder-2c-4g
236 project-type: freestyle
239 - opendaylight-infra-parameters:
240 os-cloud: '{os-cloud}'
243 refspec: 'refs/heads/{branch}'
244 artifacts: '{archive-artifacts}'
247 - integration-gerrit-scm:
249 refspec: '$GERRIT_REFSPEC'
253 - opendaylight-infra-wrappers:
254 build-timeout: '{build-timeout}'
257 # TODO: Install/test each RPM. Will require builder script changes.
258 # Test Carbon SR2 tarball
260 # yamllint disable-line rule:line-length
261 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'
262 - shell: !include-raw: build-rpm.sh
264 # Test Carbon multipatch zip (no parallel tarball available)
266 # yamllint disable-line rule:line-length
267 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'
268 - shell: !include-raw: build-rpm.sh
270 # Test latest Carbon snapshot
272 properties-content: 'STREAM=carbon'
273 - shell: !include-raw: build-rpm-snap.sh
275 # Test Nitrogen tarball
277 # yamllint disable-line rule:line-length
278 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'
279 - shell: !include-raw: build-rpm.sh
281 # Test Nitrogen SR1 tarball
283 # yamllint disable-line rule:line-length
284 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'
285 - shell: !include-raw: build-rpm.sh
287 # Test Nitrogen multipatch zip (no parallel tarball available)
289 # yamllint disable-line rule:line-length
290 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'
291 - shell: !include-raw: build-rpm.sh
293 # Test latest Nitrogen snapshot
295 properties-content: 'STREAM=nitrogen'
296 - shell: !include-raw: build-rpm-snap.sh
298 # Test Oxygen pre-release autorelease tarball
300 # yamllint disable-line rule:line-length
301 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'
302 - shell: !include-raw: build-rpm.sh
304 # Test Oxygen multipatch zip (no parallel tarball available)
306 # yamllint disable-line rule:line-length
307 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'
308 - shell: !include-raw: build-rpm.sh
310 # Test latest Oxygen snapshot
312 properties-content: 'STREAM=oxygen'
313 - shell: !include-raw: build-rpm-snap.sh
318 server-name: '{gerrit-server-name}'
320 - comment-added-contains-event:
321 comment-contains-value: 'verify-rpm-full'
323 - project-compare-type: ANT
324 project-pattern: '{project}'
326 - branch-compare-type: ANT
327 branch-pattern: '**/{branch}'
334 name: 'packaging-test-rpm-master'
336 node: centos7-java-builder-2c-4g
339 - opendaylight-infra-parameters:
340 os-cloud: '{os-cloud}'
343 refspec: 'refs/heads/{branch}'
344 artifacts: '{archive-artifacts}'
347 # yamllint disable-line rule:line-length
348 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-testing.repo'
349 description: 'Link to .repo or .rpm file'
352 - integration-gerrit-scm:
354 refspec: '$GERRIT_REFSPEC'
358 - opendaylight-infra-wrappers:
359 build-timeout: '{build-timeout}'
362 - shell: !include-raw: install-rpm.sh
363 - shell: !include-raw: start-odl.sh
365 # Install expect to interact with Karaf shell
366 sudo yum install -y expect
367 # Install nmap to check status of ODL's SSH port
368 sudo yum install -y nmap
369 - shell: !include-raw: test-karaf.expect
370 - shell: !include-raw: stop-odl.sh
373 # TODO: Remove the archive publisher
374 # small data should be stored on logs.opendaylight.org
375 # large data should be stored on nexus.opendaylight.org
385 name: 'packaging-test-rpm-upgrade-master'
387 node: centos7-java-builder-2c-4g
390 - opendaylight-infra-parameters:
391 os-cloud: '{os-cloud}'
394 refspec: 'refs/heads/{branch}'
395 artifacts: '{archive-artifacts}'
398 # yamllint disable-line rule:line-length
399 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
400 description: 'Link to .repo or .rpm file'
403 # yamllint disable-line rule:line-length
404 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
405 description: 'Link to .repo or .rpm file'
408 - integration-gerrit-scm:
410 refspec: '$GERRIT_REFSPEC'
414 - opendaylight-infra-wrappers:
415 build-timeout: '{build-timeout}'
418 - shell: !include-raw: install-rpm.sh
419 - shell: !include-raw: start-odl.sh
421 # Install expect to interact with Karaf shell
422 sudo yum install -y expect
423 # Install nmap to check status of ODL's SSH port
424 sudo yum install -y nmap
425 - shell: !include-raw: test-karaf.expect
426 - shell: !include-raw: stop-odl.sh
427 - shell: !include-raw: test-rpm-upgrade.sh
428 - shell: !include-raw: start-odl.sh
429 - shell: !include-raw: test-karaf.expect
430 - shell: !include-raw: stop-odl.sh
437 name: 'packaging-test-deb-master'
439 node: ubuntu1604-mininet-ovs-25-2c-4g
442 - opendaylight-infra-parameters:
443 os-cloud: '{os-cloud}'
446 refspec: 'refs/heads/{branch}'
447 artifacts: '{archive-artifacts}'
450 default: 'ppa:odl-team/carbon'
451 description: 'Link to .deb package or name of PPA repo'
454 - integration-gerrit-scm:
456 refspec: '$GERRIT_REFSPEC'
460 - opendaylight-infra-wrappers:
461 build-timeout: '{build-timeout}'
464 - shell: !include-raw: install-deb.sh
465 - shell: !include-raw: start-odl.sh
467 # Install expect to interact with Karaf shell
468 sudo apt-get install -y expect
469 # Install nmap to check status of ODL's SSH port
470 sudo apt-get install -y nmap
471 - shell: !include-raw: test-karaf.expect
472 - shell: !include-raw: stop-odl.sh
479 name: 'packaging-build-deb-{stream}'
481 node: ubuntu1604-mininet-ovs-25-2c-4g
483 project-type: freestyle
490 - opendaylight-infra-properties:
491 build-days-to-keep: 7
494 - opendaylight-infra-parameters:
495 os-cloud: '{os-cloud}'
498 refspec: 'refs/heads/{branch}'
499 artifacts: '{archive-artifacts}'
500 - lf-infra-maven-parameters:
501 mvn-opts: '{mvn-opts}'
502 mvn-params: '{mvn-params}'
503 mvn-version: '{mvn-version}'
504 staging-profile-id: ''
507 # FIXME: Update the default value to an active stream.
508 # yamllint disable-line rule:line-length
509 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'
510 description: 'URL to ODL tarball artifact to repackage into .deb'
514 description: 'Name of person who defined .deb'
516 name: CHANGELOG_EMAIL
517 default: 'jenkins-donotreply@opendaylight.org'
518 description: 'Email of person who defined .deb'
521 - integration-gerrit-scm:
523 refspec: '$GERRIT_REFSPEC'
527 - opendaylight-infra-wrappers:
528 build-timeout: '{build-timeout}'
531 - shell: !include-raw: build-deb.sh
532 - lf-infra-deploy-maven-file:
533 global-settings-file: 'global-settings'
534 settings-file: 'packaging-settings'
535 mvn-version: '{mvn-version}'
536 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
537 group-id: '{group-id}'
538 upload-files-dir: '{upload-files-dir}'
539 maven-repo-url: '{maven-repo-url}'