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 - lf-infra-deploy-maven-file:
148 global-settings-file: 'global-settings'
149 settings-file: 'packaging-settings'
150 mvn-version: '{mvn-version}'
151 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
152 group-id: '{group-id}'
153 upload-files-dir: '{upload-files-dir}'
154 maven-repo-url: '{maven-repo-url}'
164 name: 'packaging-verify-rpm-master'
166 node: centos7-java-builder-2c-4g
168 project-type: freestyle
171 - opendaylight-infra-parameters:
172 os-cloud: '{os-cloud}'
175 refspec: 'refs/heads/{branch}'
176 artifacts: '{archive-artifacts}'
179 - integration-gerrit-scm:
181 refspec: '$GERRIT_REFSPEC'
185 - opendaylight-infra-wrappers:
186 build-timeout: '{build-timeout}'
189 # TODO: Install/test each RPM? Will require builder script changes.
190 # Test Nitrogen tarball
192 # yamllint disable-line rule:line-length
193 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'
194 - shell: !include-raw: build-rpm.sh
196 # Test Oxygen pre-release autorelease tarball
198 # yamllint disable-line rule:line-length
199 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'
200 - shell: !include-raw: build-rpm.sh
202 # Test Oxygen multipatch zip (no parallel tarball available)
204 # yamllint disable-line rule:line-length
205 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'
206 - shell: !include-raw: build-rpm.sh
208 # Test latest Oxygen snapshot
210 properties-content: 'STREAM=oxygen'
211 - shell: !include-raw: build-rpm-snap.sh
215 server-name: '{gerrit-server-name}'
217 - project-compare-type: ANT
218 project-pattern: '{project}'
220 - branch-compare-type: ANT
221 branch-pattern: '**/{branch}'
224 pattern: 'packages/**'
231 name: 'packaging-verify-full-rpm-master'
233 node: centos7-java-builder-2c-4g
235 project-type: freestyle
238 - opendaylight-infra-parameters:
239 os-cloud: '{os-cloud}'
242 refspec: 'refs/heads/{branch}'
243 artifacts: '{archive-artifacts}'
246 - integration-gerrit-scm:
248 refspec: '$GERRIT_REFSPEC'
252 - opendaylight-infra-wrappers:
253 build-timeout: '{build-timeout}'
256 # TODO: Install/test each RPM. Will require builder script changes.
257 # Test Carbon SR2 tarball
259 # yamllint disable-line rule:line-length
260 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'
261 - shell: !include-raw: build-rpm.sh
263 # Test Carbon multipatch zip (no parallel tarball available)
265 # yamllint disable-line rule:line-length
266 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'
267 - shell: !include-raw: build-rpm.sh
269 # Test latest Carbon snapshot
271 properties-content: 'STREAM=carbon'
272 - shell: !include-raw: build-rpm-snap.sh
274 # Test Nitrogen tarball
276 # yamllint disable-line rule:line-length
277 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'
278 - shell: !include-raw: build-rpm.sh
280 # Test Nitrogen multipatch zip (no parallel tarball available)
282 # yamllint disable-line rule:line-length
283 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'
284 - shell: !include-raw: build-rpm.sh
286 # Test latest Nitrogen snapshot
288 properties-content: 'STREAM=nitrogen'
289 - shell: !include-raw: build-rpm-snap.sh
291 # Test Oxygen pre-release autorelease tarball
293 # yamllint disable-line rule:line-length
294 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'
295 - shell: !include-raw: build-rpm.sh
297 # Test Oxygen multipatch zip (no parallel tarball available)
299 # yamllint disable-line rule:line-length
300 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'
301 - shell: !include-raw: build-rpm.sh
303 # Test latest Oxygen snapshot
305 properties-content: 'STREAM=oxygen'
306 - shell: !include-raw: build-rpm-snap.sh
311 server-name: '{gerrit-server-name}'
313 - comment-added-contains-event:
314 comment-contains-value: 'verify-rpm-full'
316 - project-compare-type: ANT
317 project-pattern: '{project}'
319 - branch-compare-type: ANT
320 branch-pattern: '**/{branch}'
327 name: 'packaging-test-rpm-master'
329 node: centos7-java-builder-2c-4g
332 - opendaylight-infra-parameters:
333 os-cloud: '{os-cloud}'
336 refspec: 'refs/heads/{branch}'
337 artifacts: '{archive-artifacts}'
340 # yamllint disable-line rule:line-length
341 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-testing.repo'
342 description: 'Link to .repo or .rpm file'
345 - integration-gerrit-scm:
347 refspec: '$GERRIT_REFSPEC'
351 - opendaylight-infra-wrappers:
352 build-timeout: '{build-timeout}'
355 - shell: !include-raw: install-rpm.sh
356 - shell: !include-raw: start-odl.sh
358 # Install expect to interact with Karaf shell
359 sudo yum install -y expect
360 # Install nmap to check status of ODL's SSH port
361 sudo yum install -y nmap
362 - shell: !include-raw: test-karaf.expect
363 - shell: !include-raw: stop-odl.sh
366 # TODO: Remove the archive publisher
367 # small data should be stored on logs.opendaylight.org
368 # large data should be stored on nexus.opendaylight.org
378 name: 'packaging-test-rpm-upgrade-master'
380 node: centos7-java-builder-2c-4g
383 - opendaylight-infra-parameters:
384 os-cloud: '{os-cloud}'
387 refspec: 'refs/heads/{branch}'
388 artifacts: '{archive-artifacts}'
391 # yamllint disable-line rule:line-length
392 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
393 description: 'Link to .repo or .rpm file'
396 # yamllint disable-line rule:line-length
397 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
398 description: 'Link to .repo or .rpm file'
401 - integration-gerrit-scm:
403 refspec: '$GERRIT_REFSPEC'
407 - opendaylight-infra-wrappers:
408 build-timeout: '{build-timeout}'
411 - shell: !include-raw: install-rpm.sh
412 - shell: !include-raw: start-odl.sh
414 # Install expect to interact with Karaf shell
415 sudo yum install -y expect
416 # Install nmap to check status of ODL's SSH port
417 sudo yum install -y nmap
418 - shell: !include-raw: test-karaf.expect
419 - shell: !include-raw: stop-odl.sh
420 - shell: !include-raw: test-rpm-upgrade.sh
421 - shell: !include-raw: start-odl.sh
422 - shell: !include-raw: test-karaf.expect
423 - shell: !include-raw: stop-odl.sh
430 name: 'packaging-test-deb-master'
432 node: ubuntu1604-mininet-ovs-25-2c-4g
435 - opendaylight-infra-parameters:
436 os-cloud: '{os-cloud}'
439 refspec: 'refs/heads/{branch}'
440 artifacts: '{archive-artifacts}'
443 default: 'ppa:odl-team/carbon'
444 description: 'Link to .deb package or name of PPA repo'
447 - integration-gerrit-scm:
449 refspec: '$GERRIT_REFSPEC'
453 - opendaylight-infra-wrappers:
454 build-timeout: '{build-timeout}'
457 - shell: !include-raw: install-deb.sh
458 - shell: !include-raw: start-odl.sh
460 # Install expect to interact with Karaf shell
461 sudo apt-get install -y expect
462 # Install nmap to check status of ODL's SSH port
463 sudo apt-get install -y nmap
464 - shell: !include-raw: test-karaf.expect
465 - shell: !include-raw: stop-odl.sh
472 name: 'packaging-build-deb-{stream}'
474 node: ubuntu1604-mininet-ovs-25-2c-4g
476 project-type: freestyle
483 - opendaylight-infra-properties:
484 build-days-to-keep: 7
487 - opendaylight-infra-parameters:
488 os-cloud: '{os-cloud}'
491 refspec: 'refs/heads/{branch}'
492 artifacts: '{archive-artifacts}'
493 - lf-infra-maven-parameters:
494 mvn-opts: '{mvn-opts}'
495 mvn-params: '{mvn-params}'
496 mvn-version: '{mvn-version}'
497 staging-profile-id: ''
500 # FIXME: Update the default value to an active stream.
501 # yamllint disable-line rule:line-length
502 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'
503 description: 'URL to ODL tarball artifact to repackage into .deb'
507 description: 'Name of person who defined .deb'
509 name: CHANGELOG_EMAIL
510 default: 'jenkins-donotreply@opendaylight.org'
511 description: 'Email of person who defined .deb'
514 - integration-gerrit-scm:
516 refspec: '$GERRIT_REFSPEC'
520 - opendaylight-infra-wrappers:
521 build-timeout: '{build-timeout}'
524 - shell: !include-raw: build-deb.sh
525 - lf-infra-deploy-maven-file:
526 global-settings-file: 'global-settings'
527 settings-file: 'packaging-settings'
528 mvn-version: '{mvn-version}'
529 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
530 group-id: '{group-id}'
531 upload-files-dir: '{upload-files-dir}'
532 maven-repo-url: '{maven-repo-url}'