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 - lf-infra-deploy-maven-file:
96 global-settings-file: 'global-settings'
97 settings-file: 'packaging-settings'
98 mvn-version: '{mvn-version}'
99 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
100 group-id: '{group-id}'
101 upload-files-dir: '{upload-files-dir}'
102 maven-repo-url: '{maven-repo-url}'
109 name: 'packaging-build-rpm-snap-{stream}'
111 node: centos7-builder-2c-8g
113 project-type: freestyle
120 - opendaylight-infra-properties:
121 build-days-to-keep: 7
124 - opendaylight-infra-parameters:
125 os-cloud: '{os-cloud}'
128 refspec: 'refs/heads/{branch}'
129 artifacts: '{archive-artifacts}'
130 - lf-infra-maven-parameters:
131 mvn-opts: '{mvn-opts}'
132 mvn-params: '{mvn-params}'
133 mvn-version: '{mvn-version}'
134 staging-profile-id: ''
138 description: 'Name of person who defined RPM'
140 name: CHANGELOG_EMAIL
141 default: 'jenkins-donotreply@opendaylight.org'
142 description: 'Email of person who defined RPM'
145 - integration-gerrit-scm:
147 refspec: '$GERRIT_REFSPEC'
151 - opendaylight-infra-wrappers:
152 build-timeout: '{build-timeout}'
156 properties-content: 'STREAM={stream}'
157 - shell: !include-raw: build-rpm-snap.sh
158 - shell: !include-raw: test-rpm-deps.sh
159 - lf-infra-deploy-maven-file:
160 global-settings-file: 'global-settings'
161 settings-file: 'packaging-settings'
162 mvn-version: '{mvn-version}'
163 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
164 group-id: '{group-id}'
165 upload-files-dir: '{upload-files-dir}'
166 maven-repo-url: '{maven-repo-url}'
176 name: 'packaging-verify-rpm-master'
178 node: centos7-builder-2c-8g
180 project-type: freestyle
183 - opendaylight-infra-parameters:
184 os-cloud: '{os-cloud}'
187 refspec: 'refs/heads/{branch}'
188 artifacts: '{archive-artifacts}'
191 - integration-gerrit-scm:
193 refspec: '$GERRIT_REFSPEC'
197 - opendaylight-infra-wrappers:
198 build-timeout: '{build-timeout}'
201 # TODO: Install/test each RPM? Will require builder script changes.
202 # Test Nitrogen tarball
204 # yamllint disable-line rule:line-length
205 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'
206 - shell: !include-raw: build-rpm.sh
208 # Test Oxygen pre-release autorelease tarball
210 # yamllint disable-line rule:line-length
211 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'
212 - shell: !include-raw: build-rpm.sh
214 # Test Oxygen multipatch zip (no parallel tarball available)
216 # yamllint disable-line rule:line-length
217 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'
218 - shell: !include-raw: build-rpm.sh
220 # Test latest Oxygen snapshot
222 properties-content: 'STREAM=oxygen'
223 - shell: !include-raw: build-rpm-snap.sh
227 server-name: '{gerrit-server-name}'
229 - project-compare-type: ANT
230 project-pattern: '{project}'
232 - branch-compare-type: ANT
233 branch-pattern: '**/{branch}'
236 pattern: 'packages/**'
243 name: 'packaging-verify-full-rpm-master'
245 node: centos7-builder-2c-8g
247 project-type: freestyle
250 - opendaylight-infra-parameters:
251 os-cloud: '{os-cloud}'
254 refspec: 'refs/heads/{branch}'
255 artifacts: '{archive-artifacts}'
258 - integration-gerrit-scm:
260 refspec: '$GERRIT_REFSPEC'
264 - opendaylight-infra-wrappers:
265 build-timeout: '{build-timeout}'
268 # TODO: Install/test each RPM. Will require builder script changes.
269 # Test Carbon SR2 tarball
271 # yamllint disable-line rule:line-length
272 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'
273 - shell: !include-raw: build-rpm.sh
275 # Test Carbon multipatch zip (no parallel tarball available)
276 # NB: This will need to be updated as old builds expire
278 # yamllint disable-line rule:line-length
279 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'
280 - shell: !include-raw: build-rpm.sh
282 # Test latest Carbon snapshot
284 properties-content: 'STREAM=carbon'
285 - shell: !include-raw: build-rpm-snap.sh
287 # Test Nitrogen tarball
289 # yamllint disable-line rule:line-length
290 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'
291 - shell: !include-raw: build-rpm.sh
293 # Test Nitrogen SR1 tarball
295 # yamllint disable-line rule:line-length
296 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'
297 - shell: !include-raw: build-rpm.sh
299 # Test Nitrogen multipatch zip (no parallel tarball available)
300 # NB: This will need to be updated as old builds expire
302 # yamllint disable-line rule:line-length
303 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'
304 - shell: !include-raw: build-rpm.sh
306 # Test latest Nitrogen snapshot
308 properties-content: 'STREAM=nitrogen'
309 - shell: !include-raw: build-rpm-snap.sh
311 # Test Oxygen pre-release autorelease tarball
312 # NB: This will need to be updated as old builds expire
314 # yamllint disable-line rule:line-length
315 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'
316 - shell: !include-raw: build-rpm.sh
318 # Test Oxygen multipatch zip (no parallel tarball available)
319 # NB: This will need to be updated as old builds expire
321 # yamllint disable-line rule:line-length
322 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'
323 - shell: !include-raw: build-rpm.sh
325 # Test latest Oxygen snapshot
327 properties-content: 'STREAM=oxygen'
328 - shell: !include-raw: build-rpm-snap.sh
333 server-name: '{gerrit-server-name}'
335 - comment-added-contains-event:
336 comment-contains-value: 'verify-rpm-full'
338 - project-compare-type: ANT
339 project-pattern: '{project}'
341 - branch-compare-type: ANT
342 branch-pattern: '**/{branch}'
349 name: 'packaging-test-rpm-master'
351 node: centos7-builder-2c-8g
354 - opendaylight-infra-parameters:
355 os-cloud: '{os-cloud}'
358 refspec: 'refs/heads/{branch}'
359 artifacts: '{archive-artifacts}'
362 # yamllint disable-line rule:line-length
363 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
364 description: 'Link to .repo or .rpm file'
367 - integration-gerrit-scm:
369 refspec: '$GERRIT_REFSPEC'
373 - opendaylight-infra-wrappers:
374 build-timeout: '{build-timeout}'
377 - shell: !include-raw: install-rpm.sh
378 - shell: !include-raw: start-odl.sh
380 # Install expect to interact with Karaf shell
381 sudo yum install -y expect
382 # Install nmap to check status of ODL's SSH port
383 sudo yum install -y nmap
384 - shell: !include-raw: test-karaf.expect
385 - shell: !include-raw: stop-odl.sh
388 # TODO: Remove the archive publisher
389 # small data should be stored on logs.opendaylight.org
390 # large data should be stored on nexus.opendaylight.org
400 name: 'packaging-test-rpm-upgrade-master'
402 node: centos7-builder-2c-8g
405 - opendaylight-infra-parameters:
406 os-cloud: '{os-cloud}'
409 refspec: 'refs/heads/{branch}'
410 artifacts: '{archive-artifacts}'
413 # yamllint disable-line rule:line-length
414 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
415 description: 'Link to .repo or .rpm file'
418 # yamllint disable-line rule:line-length
419 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
420 description: 'Link to .repo or .rpm file'
423 - integration-gerrit-scm:
425 refspec: '$GERRIT_REFSPEC'
429 - opendaylight-infra-wrappers:
430 build-timeout: '{build-timeout}'
433 - shell: !include-raw: install-rpm.sh
434 - shell: !include-raw: start-odl.sh
436 # Install expect to interact with Karaf shell
437 sudo yum install -y expect
438 # Install nmap to check status of ODL's SSH port
439 sudo yum install -y nmap
440 - shell: !include-raw: test-karaf.expect
441 - shell: !include-raw: stop-odl.sh
442 - shell: !include-raw: test-rpm-upgrade.sh
443 - shell: !include-raw: start-odl.sh
444 - shell: !include-raw: test-karaf.expect
445 - shell: !include-raw: stop-odl.sh
452 name: 'packaging-test-deb-master'
454 node: ubuntu1604-mininet-ovs-25-1c-4g
457 - opendaylight-infra-parameters:
458 os-cloud: '{os-cloud}'
461 refspec: 'refs/heads/{branch}'
462 artifacts: '{archive-artifacts}'
465 default: 'ppa:odl-team/carbon'
466 description: 'Link to .deb package or name of PPA repo'
469 - integration-gerrit-scm:
471 refspec: '$GERRIT_REFSPEC'
475 - opendaylight-infra-wrappers:
476 build-timeout: '{build-timeout}'
479 - shell: !include-raw: install-deb.sh
480 - shell: !include-raw: start-odl.sh
482 # Install expect to interact with Karaf shell
483 sudo apt-get install -y expect
484 # Install nmap to check status of ODL's SSH port
485 sudo apt-get install -y nmap
486 - shell: !include-raw: test-karaf.expect
487 - shell: !include-raw: stop-odl.sh
494 name: 'packaging-build-deb-{stream}'
496 node: ubuntu1604-mininet-ovs-25-1c-4g
498 project-type: freestyle
505 - opendaylight-infra-properties:
506 build-days-to-keep: 7
509 - opendaylight-infra-parameters:
510 os-cloud: '{os-cloud}'
513 refspec: 'refs/heads/{branch}'
514 artifacts: '{archive-artifacts}'
515 - lf-infra-maven-parameters:
516 mvn-opts: '{mvn-opts}'
517 mvn-params: '{mvn-params}'
518 mvn-version: '{mvn-version}'
519 staging-profile-id: ''
522 # FIXME: Update the default value to an active stream.
523 # yamllint disable-line rule:line-length
524 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'
525 description: 'URL to ODL tarball artifact to repackage into .deb'
529 description: 'Name of person who defined .deb'
531 name: CHANGELOG_EMAIL
532 default: 'jenkins-donotreply@opendaylight.org'
533 description: 'Email of person who defined .deb'
536 - integration-gerrit-scm:
538 refspec: '$GERRIT_REFSPEC'
542 - opendaylight-infra-wrappers:
543 build-timeout: '{build-timeout}'
546 - shell: !include-raw: build-deb.sh
547 - lf-infra-deploy-maven-file:
548 global-settings-file: 'global-settings'
549 settings-file: 'packaging-settings'
550 mvn-version: '{mvn-version}'
551 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
552 group-id: '{group-id}'
553 upload-files-dir: '{upload-files-dir}'
554 maven-repo-url: '{maven-repo-url}'