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 - lf-infra-deploy-maven-file:
84 global-settings-file: 'global-settings'
85 settings-file: 'packaging-settings'
86 mvn-version: '{mvn-version}'
87 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
88 group-id: '{group-id}'
89 upload-files-dir: '{upload-files-dir}'
90 maven-repo-url: '{maven-repo-url}'
97 name: 'packaging-build-rpm-snap-{stream}'
99 node: centos7-java-builder-2c-4g
101 project-type: freestyle
108 - opendaylight-infra-properties:
109 build-days-to-keep: 7
112 - opendaylight-infra-parameters:
113 os-cloud: '{os-cloud}'
116 refspec: 'refs/heads/{branch}'
117 artifacts: '{archive-artifacts}'
118 - lf-infra-maven-parameters:
119 mvn-opts: '{mvn-opts}'
120 mvn-params: '{mvn-params}'
121 mvn-version: '{mvn-version}'
122 staging-profile-id: ''
126 description: 'Name of person who defined RPM'
128 name: CHANGELOG_EMAIL
129 default: 'jenkins-donotreply@opendaylight.org'
130 description: 'Email of person who defined RPM'
133 - integration-gerrit-scm:
135 refspec: '$GERRIT_REFSPEC'
139 - opendaylight-infra-wrappers:
140 build-timeout: '{build-timeout}'
144 properties-content: 'STREAM={stream}'
145 - shell: !include-raw: build-rpm-snap.sh
146 - lf-infra-deploy-maven-file:
147 global-settings-file: 'global-settings'
148 settings-file: 'packaging-settings'
149 mvn-version: '{mvn-version}'
150 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
151 group-id: '{group-id}'
152 upload-files-dir: '{upload-files-dir}'
153 maven-repo-url: '{maven-repo-url}'
163 name: 'packaging-verify-rpm-master'
165 node: centos7-java-builder-2c-4g
167 project-type: freestyle
170 - opendaylight-infra-parameters:
171 os-cloud: '{os-cloud}'
174 refspec: 'refs/heads/{branch}'
175 artifacts: '{archive-artifacts}'
178 - integration-gerrit-scm:
180 refspec: '$GERRIT_REFSPEC'
184 - opendaylight-infra-wrappers:
185 build-timeout: '{build-timeout}'
188 # TODO: Install/test each RPM? Will require builder script changes.
189 # Test Nitrogen tarball
191 # yamllint disable-line rule:line-length
192 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'
193 - shell: !include-raw: build-rpm.sh
195 # Test Oxygen pre-release autorelease tarball
197 # yamllint disable-line rule:line-length
198 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2011/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
199 - shell: !include-raw: build-rpm.sh
201 # Test Oxygen multipatch zip (no parallel tarball available)
203 # yamllint disable-line rule:line-length
204 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-20171030.111310-56.zip'
205 - shell: !include-raw: build-rpm.sh
207 # Test latest Oxygen snapshot
209 properties-content: 'STREAM=oxygen'
210 - shell: !include-raw: build-rpm-snap.sh
214 server-name: '{gerrit-server-name}'
216 - project-compare-type: ANT
217 project-pattern: '{project}'
219 - branch-compare-type: ANT
220 branch-pattern: '**/{branch}'
223 pattern: 'packages/**'
230 name: 'packaging-verify-full-rpm-master'
232 node: centos7-java-builder-2c-4g
234 project-type: freestyle
237 - opendaylight-infra-parameters:
238 os-cloud: '{os-cloud}'
241 refspec: 'refs/heads/{branch}'
242 artifacts: '{archive-artifacts}'
245 - integration-gerrit-scm:
247 refspec: '$GERRIT_REFSPEC'
251 - opendaylight-infra-wrappers:
252 build-timeout: '{build-timeout}'
255 # TODO: Install/test each RPM. Will require builder script changes.
256 # Test Carbon SR2 tarball
258 # yamllint disable-line rule:line-length
259 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'
260 - shell: !include-raw: build-rpm.sh
262 # Test Carbon multipatch zip (no parallel tarball available)
264 # yamllint disable-line rule:line-length
265 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-20171027.223207-3.zip'
266 - shell: !include-raw: build-rpm.sh
268 # Test latest Carbon snapshot
270 properties-content: 'STREAM=carbon'
271 - shell: !include-raw: build-rpm-snap.sh
273 # Test Nitrogen tarball
275 # yamllint disable-line rule:line-length
276 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'
277 - shell: !include-raw: build-rpm.sh
279 # Test Nitrogen multipatch zip (no parallel tarball available)
281 # yamllint disable-line rule:line-length
282 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.7.1-SNAPSHOT/karaf-0.7.1-20171027.044826-22.zip'
283 - shell: !include-raw: build-rpm.sh
285 # Test latest Nitrogen snapshot
287 properties-content: 'STREAM=nitrogen'
288 - shell: !include-raw: build-rpm-snap.sh
290 # Test Oxygen pre-release autorelease tarball
292 # yamllint disable-line rule:line-length
293 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2011/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
294 - shell: !include-raw: build-rpm.sh
296 # Test Oxygen multipatch zip (no parallel tarball available)
298 # yamllint disable-line rule:line-length
299 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-20171030.111310-56.zip'
300 - shell: !include-raw: build-rpm.sh
302 # Test latest Oxygen snapshot
304 properties-content: 'STREAM=oxygen'
305 - shell: !include-raw: build-rpm-snap.sh
310 server-name: '{gerrit-server-name}'
312 - comment-added-contains-event:
313 comment-contains-value: 'verify-rpm-full'
315 - project-compare-type: ANT
316 project-pattern: '{project}'
318 - branch-compare-type: ANT
319 branch-pattern: '**/{branch}'
326 name: 'packaging-test-rpm-master'
328 node: centos7-java-builder-2c-4g
331 - opendaylight-infra-parameters:
332 os-cloud: '{os-cloud}'
335 refspec: 'refs/heads/{branch}'
336 artifacts: '{archive-artifacts}'
339 # yamllint disable-line rule:line-length
340 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-testing.repo'
341 description: 'Link to .repo or .rpm file'
344 - integration-gerrit-scm:
346 refspec: '$GERRIT_REFSPEC'
350 - opendaylight-infra-wrappers:
351 build-timeout: '{build-timeout}'
354 - shell: !include-raw: install-rpm.sh
355 - shell: !include-raw: start-odl.sh
357 # Install expect to interact with Karaf shell
358 sudo yum install -y expect
359 # Install nmap to check status of ODL's SSH port
360 sudo yum install -y nmap
361 - shell: !include-raw: test-karaf.expect
362 - shell: !include-raw: stop-odl.sh
365 # TODO: Remove the archive publisher
366 # small data should be stored on logs.opendaylight.org
367 # large data should be stored on nexus.opendaylight.org
377 name: 'packaging-test-rpm-upgrade-master'
379 node: centos7-java-builder-2c-4g
382 - opendaylight-infra-parameters:
383 os-cloud: '{os-cloud}'
386 refspec: 'refs/heads/{branch}'
387 artifacts: '{archive-artifacts}'
390 # yamllint disable-line rule:line-length
391 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
392 description: 'Link to .repo or .rpm file'
395 # yamllint disable-line rule:line-length
396 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
397 description: 'Link to .repo or .rpm file'
400 - integration-gerrit-scm:
402 refspec: '$GERRIT_REFSPEC'
406 - opendaylight-infra-wrappers:
407 build-timeout: '{build-timeout}'
410 - shell: !include-raw: install-rpm.sh
411 - shell: !include-raw: start-odl.sh
413 # Install expect to interact with Karaf shell
414 sudo yum install -y expect
415 # Install nmap to check status of ODL's SSH port
416 sudo yum install -y nmap
417 - shell: !include-raw: test-karaf.expect
418 - shell: !include-raw: stop-odl.sh
419 - shell: !include-raw: test-rpm-upgrade.sh
420 - shell: !include-raw: start-odl.sh
421 - shell: !include-raw: test-karaf.expect
422 - shell: !include-raw: stop-odl.sh
429 name: 'packaging-test-deb-master'
431 node: ubuntu1604-mininet-ovs-25-2c-4g
434 - opendaylight-infra-parameters:
435 os-cloud: '{os-cloud}'
438 refspec: 'refs/heads/{branch}'
439 artifacts: '{archive-artifacts}'
442 default: 'ppa:odl-team/carbon'
443 description: 'Link to .deb package or name of PPA repo'
446 - integration-gerrit-scm:
448 refspec: '$GERRIT_REFSPEC'
452 - opendaylight-infra-wrappers:
453 build-timeout: '{build-timeout}'
456 - shell: !include-raw: install-deb.sh
457 - shell: !include-raw: start-odl.sh
459 # Install expect to interact with Karaf shell
460 sudo apt-get install -y expect
461 # Install nmap to check status of ODL's SSH port
462 sudo apt-get install -y nmap
463 - shell: !include-raw: test-karaf.expect
464 - shell: !include-raw: stop-odl.sh
471 name: 'packaging-build-deb-{stream}'
473 node: ubuntu1604-mininet-ovs-25-2c-4g
475 project-type: freestyle
482 - opendaylight-infra-properties:
483 build-days-to-keep: 7
486 - opendaylight-infra-parameters:
487 os-cloud: '{os-cloud}'
490 refspec: 'refs/heads/{branch}'
491 artifacts: '{archive-artifacts}'
492 - lf-infra-maven-parameters:
493 mvn-opts: '{mvn-opts}'
494 mvn-params: '{mvn-params}'
495 mvn-version: '{mvn-version}'
496 staging-profile-id: ''
499 # FIXME: Update the default value to an active stream.
500 # yamllint disable-line rule:line-length
501 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'
502 description: 'URL to ODL tarball artifact to repackage into .deb'
506 description: 'Name of person who defined .deb'
508 name: CHANGELOG_EMAIL
509 default: 'jenkins-donotreply@opendaylight.org'
510 description: 'Email of person who defined .deb'
513 - integration-gerrit-scm:
515 refspec: '$GERRIT_REFSPEC'
519 - opendaylight-infra-wrappers:
520 build-timeout: '{build-timeout}'
523 - shell: !include-raw: build-deb.sh
524 - lf-infra-deploy-maven-file:
525 global-settings-file: 'global-settings'
526 settings-file: 'packaging-settings'
527 mvn-version: '{mvn-version}'
528 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
529 group-id: '{group-id}'
530 upload-files-dir: '{upload-files-dir}'
531 maven-repo-url: '{maven-repo-url}'