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)
277 # yamllint disable-line rule:line-length
278 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'
279 - shell: !include-raw: build-rpm.sh
281 # Test latest Carbon snapshot
283 properties-content: 'STREAM=carbon'
284 - shell: !include-raw: build-rpm-snap.sh
286 # Test Nitrogen tarball
288 # yamllint disable-line rule:line-length
289 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'
290 - shell: !include-raw: build-rpm.sh
292 # Test Nitrogen SR1 tarball
294 # yamllint disable-line rule:line-length
295 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'
296 - shell: !include-raw: build-rpm.sh
298 # Test Nitrogen multipatch zip (no parallel tarball available)
300 # yamllint disable-line rule:line-length
301 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'
302 - shell: !include-raw: build-rpm.sh
304 # Test latest Nitrogen snapshot
306 properties-content: 'STREAM=nitrogen'
307 - shell: !include-raw: build-rpm-snap.sh
309 # Test Oxygen pre-release autorelease tarball
311 # yamllint disable-line rule:line-length
312 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'
313 - shell: !include-raw: build-rpm.sh
315 # Test Oxygen multipatch zip (no parallel tarball available)
317 # yamllint disable-line rule:line-length
318 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'
319 - shell: !include-raw: build-rpm.sh
321 # Test latest Oxygen snapshot
323 properties-content: 'STREAM=oxygen'
324 - shell: !include-raw: build-rpm-snap.sh
329 server-name: '{gerrit-server-name}'
331 - comment-added-contains-event:
332 comment-contains-value: 'verify-rpm-full'
334 - project-compare-type: ANT
335 project-pattern: '{project}'
337 - branch-compare-type: ANT
338 branch-pattern: '**/{branch}'
345 name: 'packaging-test-rpm-master'
347 node: centos7-builder-2c-8g
350 - opendaylight-infra-parameters:
351 os-cloud: '{os-cloud}'
354 refspec: 'refs/heads/{branch}'
355 artifacts: '{archive-artifacts}'
358 # yamllint disable-line rule:line-length
359 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
360 description: 'Link to .repo or .rpm file'
363 - integration-gerrit-scm:
365 refspec: '$GERRIT_REFSPEC'
369 - opendaylight-infra-wrappers:
370 build-timeout: '{build-timeout}'
373 - shell: !include-raw: install-rpm.sh
374 - shell: !include-raw: start-odl.sh
376 # Install expect to interact with Karaf shell
377 sudo yum install -y expect
378 # Install nmap to check status of ODL's SSH port
379 sudo yum install -y nmap
380 - shell: !include-raw: test-karaf.expect
381 - shell: !include-raw: stop-odl.sh
384 # TODO: Remove the archive publisher
385 # small data should be stored on logs.opendaylight.org
386 # large data should be stored on nexus.opendaylight.org
396 name: 'packaging-test-rpm-upgrade-master'
398 node: centos7-builder-2c-8g
401 - opendaylight-infra-parameters:
402 os-cloud: '{os-cloud}'
405 refspec: 'refs/heads/{branch}'
406 artifacts: '{archive-artifacts}'
409 # yamllint disable-line rule:line-length
410 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
411 description: 'Link to .repo or .rpm file'
414 # yamllint disable-line rule:line-length
415 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
416 description: 'Link to .repo or .rpm file'
419 - integration-gerrit-scm:
421 refspec: '$GERRIT_REFSPEC'
425 - opendaylight-infra-wrappers:
426 build-timeout: '{build-timeout}'
429 - shell: !include-raw: install-rpm.sh
430 - shell: !include-raw: start-odl.sh
432 # Install expect to interact with Karaf shell
433 sudo yum install -y expect
434 # Install nmap to check status of ODL's SSH port
435 sudo yum install -y nmap
436 - shell: !include-raw: test-karaf.expect
437 - shell: !include-raw: stop-odl.sh
438 - shell: !include-raw: test-rpm-upgrade.sh
439 - shell: !include-raw: start-odl.sh
440 - shell: !include-raw: test-karaf.expect
441 - shell: !include-raw: stop-odl.sh
448 name: 'packaging-test-deb-master'
450 node: ubuntu1604-mininet-ovs-25-1c-4g
453 - opendaylight-infra-parameters:
454 os-cloud: '{os-cloud}'
457 refspec: 'refs/heads/{branch}'
458 artifacts: '{archive-artifacts}'
461 default: 'ppa:odl-team/carbon'
462 description: 'Link to .deb package or name of PPA repo'
465 - integration-gerrit-scm:
467 refspec: '$GERRIT_REFSPEC'
471 - opendaylight-infra-wrappers:
472 build-timeout: '{build-timeout}'
475 - shell: !include-raw: install-deb.sh
476 - shell: !include-raw: start-odl.sh
478 # Install expect to interact with Karaf shell
479 sudo apt-get install -y expect
480 # Install nmap to check status of ODL's SSH port
481 sudo apt-get install -y nmap
482 - shell: !include-raw: test-karaf.expect
483 - shell: !include-raw: stop-odl.sh
490 name: 'packaging-build-deb-{stream}'
492 node: ubuntu1604-mininet-ovs-25-1c-4g
494 project-type: freestyle
501 - opendaylight-infra-properties:
502 build-days-to-keep: 7
505 - opendaylight-infra-parameters:
506 os-cloud: '{os-cloud}'
509 refspec: 'refs/heads/{branch}'
510 artifacts: '{archive-artifacts}'
511 - lf-infra-maven-parameters:
512 mvn-opts: '{mvn-opts}'
513 mvn-params: '{mvn-params}'
514 mvn-version: '{mvn-version}'
515 staging-profile-id: ''
518 # FIXME: Update the default value to an active stream.
519 # yamllint disable-line rule:line-length
520 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'
521 description: 'URL to ODL tarball artifact to repackage into .deb'
525 description: 'Name of person who defined .deb'
527 name: CHANGELOG_EMAIL
528 default: 'jenkins-donotreply@opendaylight.org'
529 description: 'Email of person who defined .deb'
532 - integration-gerrit-scm:
534 refspec: '$GERRIT_REFSPEC'
538 - opendaylight-infra-wrappers:
539 build-timeout: '{build-timeout}'
542 - shell: !include-raw: build-deb.sh
543 - lf-infra-deploy-maven-file:
544 global-settings-file: 'global-settings'
545 settings-file: 'packaging-settings'
546 mvn-version: '{mvn-version}'
547 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
548 group-id: '{group-id}'
549 upload-files-dir: '{upload-files-dir}'
550 maven-repo-url: '{maven-repo-url}'