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}'
143 - shell: !include-raw: build-rpm-snap.sh
144 - lf-infra-deploy-maven-file:
145 global-settings-file: 'global-settings'
146 settings-file: 'packaging-settings'
147 mvn-version: '{mvn-version}'
148 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
149 group-id: '{group-id}'
150 upload-files-dir: '{upload-files-dir}'
151 maven-repo-url: '{maven-repo-url}'
161 name: 'packaging-verify-rpm-master'
163 node: centos7-java-builder-2c-4g
165 project-type: freestyle
168 - opendaylight-infra-parameters:
169 os-cloud: '{os-cloud}'
172 refspec: 'refs/heads/{branch}'
173 artifacts: '{archive-artifacts}'
176 - integration-gerrit-scm:
178 refspec: '$GERRIT_REFSPEC'
182 - opendaylight-infra-wrappers:
183 build-timeout: '{build-timeout}'
186 # TODO: Install/test each RPM? Will require builder script changes.
187 # Test Nitrogen tarball
189 # yamllint disable-line rule:line-length
190 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'
191 - shell: !include-raw: build-rpm.sh
193 # Test Oxygen pre-release autorelease tarball
195 # yamllint disable-line rule:line-length
196 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'
197 - shell: !include-raw: build-rpm.sh
199 # Test Oxygen multipatch zip (no parallel tarball available)
201 # yamllint disable-line rule:line-length
202 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'
203 - shell: !include-raw: build-rpm.sh
205 # Test latest Oxygen snapshot
207 properties-content: 'STREAM=oxygen'
208 - shell: !include-raw: build-rpm-snap.sh
212 server-name: '{server-name}'
214 - project-compare-type: ANT
215 project-pattern: '{project}'
217 - branch-compare-type: ANT
218 branch-pattern: '**/{branch}'
221 pattern: 'packages/**'
228 name: 'packaging-verify-full-rpm-master'
230 node: centos7-java-builder-2c-4g
232 project-type: freestyle
235 - opendaylight-infra-parameters:
236 os-cloud: '{os-cloud}'
239 refspec: 'refs/heads/{branch}'
240 artifacts: '{archive-artifacts}'
243 - integration-gerrit-scm:
245 refspec: '$GERRIT_REFSPEC'
249 - opendaylight-infra-wrappers:
250 build-timeout: '{build-timeout}'
253 # TODO: Install/test each RPM. Will require builder script changes.
254 # Test Carbon SR2 tarball
256 # yamllint disable-line rule:line-length
257 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'
258 - shell: !include-raw: build-rpm.sh
260 # Test Carbon multipatch zip (no parallel tarball available)
262 # yamllint disable-line rule:line-length
263 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'
264 - shell: !include-raw: build-rpm.sh
266 # Test latest Carbon snapshot
268 properties-content: 'STREAM=carbon'
269 - shell: !include-raw: build-rpm-snap.sh
271 # Test Nitrogen tarball
273 # yamllint disable-line rule:line-length
274 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'
275 - shell: !include-raw: build-rpm.sh
277 # Test Nitrogen multipatch zip (no parallel tarball available)
279 # yamllint disable-line rule:line-length
280 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'
281 - shell: !include-raw: build-rpm.sh
283 # Test latest Nitrogen snapshot
285 properties-content: 'STREAM=nitrogen'
286 - shell: !include-raw: build-rpm-snap.sh
288 # Test Oxygen pre-release autorelease tarball
290 # yamllint disable-line rule:line-length
291 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'
292 - shell: !include-raw: build-rpm.sh
294 # Test Oxygen multipatch zip (no parallel tarball available)
296 # yamllint disable-line rule:line-length
297 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'
298 - shell: !include-raw: build-rpm.sh
300 # Test latest Oxygen snapshot
302 properties-content: 'STREAM=oxygen'
303 - shell: !include-raw: build-rpm-snap.sh
308 server-name: '{server-name}'
310 - comment-added-contains-event:
311 comment-contains-value: 'verify-rpm-full'
313 - project-compare-type: ANT
314 project-pattern: '{project}'
316 - branch-compare-type: ANT
317 branch-pattern: '**/{branch}'
324 name: 'packaging-test-rpm-master'
326 node: centos7-java-builder-2c-4g
329 - opendaylight-infra-parameters:
330 os-cloud: '{os-cloud}'
333 refspec: 'refs/heads/{branch}'
334 artifacts: '{archive-artifacts}'
337 # yamllint disable-line rule:line-length
338 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-60-release.repo'
339 description: 'Link to .repo or .rpm file'
342 - integration-gerrit-scm:
344 refspec: '$GERRIT_REFSPEC'
348 - opendaylight-infra-wrappers:
349 build-timeout: '{build-timeout}'
352 - shell: !include-raw: install-rpm.sh
353 - shell: !include-raw: start-odl.sh
355 # Install expect to interact with Karaf shell
356 sudo yum install -y expect
357 # Install nmap to check status of ODL's SSH port
358 sudo yum install -y nmap
359 - shell: !include-raw: test-karaf.expect
360 - shell: !include-raw: stop-odl.sh
363 # TODO: Remove the archive publisher
364 # small data should be stored on logs.opendaylight.org
365 # large data should be stored on nexus.opendaylight.org
375 name: 'packaging-test-rpm-upgrade-master'
377 node: centos7-java-builder-2c-4g
380 - opendaylight-infra-parameters:
381 os-cloud: '{os-cloud}'
384 refspec: 'refs/heads/{branch}'
385 artifacts: '{archive-artifacts}'
388 # yamllint disable-line rule:line-length
389 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
390 description: 'Link to .repo or .rpm file'
393 # yamllint disable-line rule:line-length
394 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
395 description: 'Link to .repo or .rpm file'
398 - integration-gerrit-scm:
400 refspec: '$GERRIT_REFSPEC'
404 - opendaylight-infra-wrappers:
405 build-timeout: '{build-timeout}'
408 - shell: !include-raw: install-rpm.sh
409 - shell: !include-raw: start-odl.sh
411 # Install expect to interact with Karaf shell
412 sudo yum install -y expect
413 # Install nmap to check status of ODL's SSH port
414 sudo yum install -y nmap
415 - shell: !include-raw: test-karaf.expect
416 - shell: !include-raw: stop-odl.sh
417 - shell: !include-raw: test-rpm-upgrade.sh
418 - shell: !include-raw: start-odl.sh
419 - shell: !include-raw: test-karaf.expect
420 - shell: !include-raw: stop-odl.sh
427 name: 'packaging-test-deb-master'
429 node: ubuntu1604-mininet-ovs-25-2c-4g
432 - opendaylight-infra-parameters:
433 os-cloud: '{os-cloud}'
436 refspec: 'refs/heads/{branch}'
437 artifacts: '{archive-artifacts}'
440 default: 'ppa:odl-team/carbon'
441 description: 'Link to .deb package or name of PPA repo'
444 - integration-gerrit-scm:
446 refspec: '$GERRIT_REFSPEC'
450 - opendaylight-infra-wrappers:
451 build-timeout: '{build-timeout}'
454 - shell: !include-raw: install-deb.sh
455 - shell: !include-raw: start-odl.sh
457 # Install expect to interact with Karaf shell
458 sudo apt-get install -y expect
459 # Install nmap to check status of ODL's SSH port
460 sudo apt-get install -y nmap
461 - shell: !include-raw: test-karaf.expect
462 - shell: !include-raw: stop-odl.sh
469 name: 'packaging-build-deb-{stream}'
471 node: ubuntu1604-mininet-ovs-25-2c-4g
473 project-type: freestyle
480 - opendaylight-infra-properties:
481 build-days-to-keep: 7
484 - opendaylight-infra-parameters:
485 os-cloud: '{os-cloud}'
488 refspec: 'refs/heads/{branch}'
489 artifacts: '{archive-artifacts}'
490 - lf-infra-maven-parameters:
491 mvn-opts: '{mvn-opts}'
492 mvn-params: '{mvn-params}'
493 mvn-version: '{mvn-version}'
494 staging-profile-id: ''
497 # FIXME: Update the default value to an active stream.
498 # yamllint disable-line rule:line-length
499 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'
500 description: 'URL to ODL tarball artifact to repackage into .deb'
504 description: 'Name of person who defined .deb'
506 name: CHANGELOG_EMAIL
507 default: 'jenkins-donotreply@opendaylight.org'
508 description: 'Email of person who defined .deb'
511 - integration-gerrit-scm:
513 refspec: '$GERRIT_REFSPEC'
517 - opendaylight-infra-wrappers:
518 build-timeout: '{build-timeout}'
521 - shell: !include-raw: build-deb.sh
522 - lf-infra-deploy-maven-file:
523 global-settings-file: 'global-settings'
524 settings-file: 'packaging-settings'
525 mvn-version: '{mvn-version}'
526 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
527 group-id: '{group-id}'
528 upload-files-dir: '{upload-files-dir}'
529 maven-repo-url: '{maven-repo-url}'