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-2052/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-20171128.175421-68.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-20171128.221258-1.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 SR1 tarball
281 # yamllint disable-line rule:line-length
282 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'
283 - shell: !include-raw: build-rpm.sh
285 # Test Nitrogen multipatch zip (no parallel tarball available)
287 # yamllint disable-line rule:line-length
288 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'
289 - shell: !include-raw: build-rpm.sh
291 # Test latest Nitrogen snapshot
293 properties-content: 'STREAM=nitrogen'
294 - shell: !include-raw: build-rpm-snap.sh
296 # Test Oxygen pre-release autorelease tarball
298 # yamllint disable-line rule:line-length
299 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'
300 - shell: !include-raw: build-rpm.sh
302 # Test Oxygen multipatch zip (no parallel tarball available)
304 # yamllint disable-line rule:line-length
305 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'
306 - shell: !include-raw: build-rpm.sh
308 # Test latest Oxygen snapshot
310 properties-content: 'STREAM=oxygen'
311 - shell: !include-raw: build-rpm-snap.sh
316 server-name: '{gerrit-server-name}'
318 - comment-added-contains-event:
319 comment-contains-value: 'verify-rpm-full'
321 - project-compare-type: ANT
322 project-pattern: '{project}'
324 - branch-compare-type: ANT
325 branch-pattern: '**/{branch}'
332 name: 'packaging-test-rpm-master'
334 node: centos7-java-builder-2c-4g
337 - opendaylight-infra-parameters:
338 os-cloud: '{os-cloud}'
341 refspec: 'refs/heads/{branch}'
342 artifacts: '{archive-artifacts}'
345 # yamllint disable-line rule:line-length
346 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-60-release.repo'
347 description: 'Link to .repo or .rpm file'
350 - integration-gerrit-scm:
352 refspec: '$GERRIT_REFSPEC'
356 - opendaylight-infra-wrappers:
357 build-timeout: '{build-timeout}'
360 - shell: !include-raw: install-rpm.sh
361 - shell: !include-raw: start-odl.sh
363 # Install expect to interact with Karaf shell
364 sudo yum install -y expect
365 # Install nmap to check status of ODL's SSH port
366 sudo yum install -y nmap
367 - shell: !include-raw: test-karaf.expect
368 - shell: !include-raw: stop-odl.sh
371 # TODO: Remove the archive publisher
372 # small data should be stored on logs.opendaylight.org
373 # large data should be stored on nexus.opendaylight.org
383 name: 'packaging-test-rpm-upgrade-master'
385 node: centos7-java-builder-2c-4g
388 - opendaylight-infra-parameters:
389 os-cloud: '{os-cloud}'
392 refspec: 'refs/heads/{branch}'
393 artifacts: '{archive-artifacts}'
396 # yamllint disable-line rule:line-length
397 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
398 description: 'Link to .repo or .rpm file'
401 # yamllint disable-line rule:line-length
402 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
403 description: 'Link to .repo or .rpm file'
406 - integration-gerrit-scm:
408 refspec: '$GERRIT_REFSPEC'
412 - opendaylight-infra-wrappers:
413 build-timeout: '{build-timeout}'
416 - shell: !include-raw: install-rpm.sh
417 - shell: !include-raw: start-odl.sh
419 # Install expect to interact with Karaf shell
420 sudo yum install -y expect
421 # Install nmap to check status of ODL's SSH port
422 sudo yum install -y nmap
423 - shell: !include-raw: test-karaf.expect
424 - shell: !include-raw: stop-odl.sh
425 - shell: !include-raw: test-rpm-upgrade.sh
426 - shell: !include-raw: start-odl.sh
427 - shell: !include-raw: test-karaf.expect
428 - shell: !include-raw: stop-odl.sh
435 name: 'packaging-test-deb-master'
437 node: ubuntu1604-mininet-ovs-25-2c-4g
440 - opendaylight-infra-parameters:
441 os-cloud: '{os-cloud}'
444 refspec: 'refs/heads/{branch}'
445 artifacts: '{archive-artifacts}'
448 default: 'ppa:odl-team/carbon'
449 description: 'Link to .deb package or name of PPA repo'
452 - integration-gerrit-scm:
454 refspec: '$GERRIT_REFSPEC'
458 - opendaylight-infra-wrappers:
459 build-timeout: '{build-timeout}'
462 - shell: !include-raw: install-deb.sh
463 - shell: !include-raw: start-odl.sh
465 # Install expect to interact with Karaf shell
466 sudo apt-get install -y expect
467 # Install nmap to check status of ODL's SSH port
468 sudo apt-get install -y nmap
469 - shell: !include-raw: test-karaf.expect
470 - shell: !include-raw: stop-odl.sh
477 name: 'packaging-build-deb-{stream}'
479 node: ubuntu1604-mininet-ovs-25-2c-4g
481 project-type: freestyle
488 - opendaylight-infra-properties:
489 build-days-to-keep: 7
492 - opendaylight-infra-parameters:
493 os-cloud: '{os-cloud}'
496 refspec: 'refs/heads/{branch}'
497 artifacts: '{archive-artifacts}'
498 - lf-infra-maven-parameters:
499 mvn-opts: '{mvn-opts}'
500 mvn-params: '{mvn-params}'
501 mvn-version: '{mvn-version}'
502 staging-profile-id: ''
505 # FIXME: Update the default value to an active stream.
506 # yamllint disable-line rule:line-length
507 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'
508 description: 'URL to ODL tarball artifact to repackage into .deb'
512 description: 'Name of person who defined .deb'
514 name: CHANGELOG_EMAIL
515 default: 'jenkins-donotreply@opendaylight.org'
516 description: 'Email of person who defined .deb'
519 - integration-gerrit-scm:
521 refspec: '$GERRIT_REFSPEC'
525 - opendaylight-infra-wrappers:
526 build-timeout: '{build-timeout}'
529 - shell: !include-raw: build-deb.sh
530 - lf-infra-deploy-maven-file:
531 global-settings-file: 'global-settings'
532 settings-file: 'packaging-settings'
533 mvn-version: '{mvn-version}'
534 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
535 group-id: '{group-id}'
536 upload-files-dir: '{upload-files-dir}'
537 maven-repo-url: '{maven-repo-url}'