4 project-name: packaging
7 - '{project-name}-verify-tox-master'
8 - 'packaging-build-rpm-{stream}'
9 - 'packaging-build-rpm-snap-{stream}'
10 - 'packaging-build-deb-{stream}'
11 - 'packaging-verify-full-rpm-master'
12 - 'packaging-verify-rpm-master'
13 - 'packaging-test-rpm-master'
14 - 'packaging-test-rpm-upgrade-master'
15 - '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/distribution-karaf/0.6.0-Carbon/distribution-karaf-0.6.0-Carbon.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 Nitrogen multipatch zip (no parallel tarball available)
195 # yamllint disable-line rule:line-length
196 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-20171009.081353-13.zip'
197 - shell: !include-raw: build-rpm.sh
199 # Test latest Nitrogen snapshot
201 properties-content: 'STREAM=nitrogen'
202 - shell: !include-raw: build-rpm-snap.sh
206 server-name: '{server-name}'
208 - project-compare-type: ANT
209 project-pattern: '{project}'
211 - branch-compare-type: ANT
212 branch-pattern: '**/{branch}'
215 pattern: 'packages/**'
222 name: 'packaging-verify-full-rpm-master'
224 node: centos7-java-builder-2c-4g
226 project-type: freestyle
229 - opendaylight-infra-parameters:
230 os-cloud: '{os-cloud}'
233 refspec: 'refs/heads/{branch}'
234 artifacts: '{archive-artifacts}'
237 - integration-gerrit-scm:
239 refspec: '$GERRIT_REFSPEC'
243 - opendaylight-infra-wrappers:
244 build-timeout: '{build-timeout}'
247 # TODO: Install/test each RPM. Will require builder script changes.
248 # Test Carbon SR1 tarball
250 # yamllint disable-line rule:line-length
251 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.1-Carbon/distribution-karaf-0.6.1-Carbon.tar.gz'
252 - shell: !include-raw: build-rpm.sh
254 # Test Carbon multipatch zip (no parallel tarball available)
256 # yamllint disable-line rule:line-length
257 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/distribution-karaf/0.6.2-SNAPSHOT/distribution-karaf-0.6.2-20171009.100453-60.zip'
258 - shell: !include-raw: build-rpm.sh
260 # Test latest Carbon snapshot
262 properties-content: 'STREAM=carbon'
263 - shell: !include-raw: build-rpm-snap.sh
265 # Test Nitrogen tarball
267 # yamllint disable-line rule:line-length
268 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'
269 - shell: !include-raw: build-rpm.sh
271 # Test Nitrogen multipatch zip (no parallel tarball available)
273 # yamllint disable-line rule:line-length
274 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-20171009.081353-13.zip'
275 - shell: !include-raw: build-rpm.sh
277 # Test latest Nitrogen snapshot
279 properties-content: 'STREAM=nitrogen'
280 - shell: !include-raw: build-rpm-snap.sh
282 # Test Oxygen tarball
283 # TODO: Change this to an autorelease build once available
285 # yamllint disable-line rule:line-length
286 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/karaf/0.8.0-SNAPSHOT/karaf-0.8.0-20171009.114003-676.tar.gz'
287 - shell: !include-raw: build-rpm.sh
289 # Test Oxygen multipatch zip (no parallel tarball available)
291 # yamllint disable-line rule:line-length
292 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-20171004.132827-33.zip'
293 - shell: !include-raw: build-rpm.sh
295 # Test latest Oxygen snapshot
297 properties-content: 'STREAM=oxygen'
298 - shell: !include-raw: build-rpm-snap.sh
303 server-name: '{server-name}'
305 - comment-added-contains-event:
306 comment-contains-value: 'verify-rpm-full'
308 - project-compare-type: ANT
309 project-pattern: '{project}'
311 - branch-compare-type: ANT
312 branch-pattern: '**/{branch}'
319 name: 'packaging-test-rpm-master'
321 node: centos7-java-builder-2c-4g
324 - opendaylight-infra-parameters:
325 os-cloud: '{os-cloud}'
328 refspec: 'refs/heads/{branch}'
329 artifacts: '{archive-artifacts}'
332 # yamllint disable-line rule:line-length
333 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-60-release.repo'
334 description: 'Link to .repo or .rpm file'
337 - integration-gerrit-scm:
339 refspec: '$GERRIT_REFSPEC'
343 - opendaylight-infra-wrappers:
344 build-timeout: '{build-timeout}'
347 - shell: !include-raw: install-rpm.sh
348 - shell: !include-raw: start-odl.sh
350 # Install expect to interact with Karaf shell
351 sudo yum install -y expect
352 # Install nmap to check status of ODL's SSH port
353 sudo yum install -y nmap
354 - shell: !include-raw: test-karaf.expect
355 - shell: !include-raw: stop-odl.sh
358 # TODO: Remove the archive publisher
359 # small data should be stored on logs.opendaylight.org
360 # large data should be stored on nexus.opendaylight.org
370 name: 'packaging-test-rpm-upgrade-master'
372 node: centos7-java-builder-2c-4g
375 - opendaylight-infra-parameters:
376 os-cloud: '{os-cloud}'
379 refspec: 'refs/heads/{branch}'
380 artifacts: '{archive-artifacts}'
383 # yamllint disable-line rule:line-length
384 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
385 description: 'Link to .repo or .rpm file'
388 # yamllint disable-line rule:line-length
389 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
390 description: 'Link to .repo or .rpm file'
393 - integration-gerrit-scm:
395 refspec: '$GERRIT_REFSPEC'
399 - opendaylight-infra-wrappers:
400 build-timeout: '{build-timeout}'
403 - shell: !include-raw: install-rpm.sh
404 - shell: !include-raw: start-odl.sh
406 # Install expect to interact with Karaf shell
407 sudo yum install -y expect
408 # Install nmap to check status of ODL's SSH port
409 sudo yum install -y nmap
410 - shell: !include-raw: test-karaf.expect
411 - shell: !include-raw: stop-odl.sh
412 - shell: !include-raw: test-rpm-upgrade.sh
413 - shell: !include-raw: start-odl.sh
414 - shell: !include-raw: test-karaf.expect
415 - shell: !include-raw: stop-odl.sh
422 name: 'packaging-test-deb-master'
424 node: ubuntu1604-mininet-ovs-25-2c-4g
427 - opendaylight-infra-parameters:
428 os-cloud: '{os-cloud}'
431 refspec: 'refs/heads/{branch}'
432 artifacts: '{archive-artifacts}'
435 default: 'ppa:odl-team/carbon'
436 description: 'Link to .deb package or name of PPA repo'
439 - integration-gerrit-scm:
441 refspec: '$GERRIT_REFSPEC'
445 - opendaylight-infra-wrappers:
446 build-timeout: '{build-timeout}'
449 - shell: !include-raw: install-deb.sh
450 - shell: !include-raw: start-odl.sh
452 # Install expect to interact with Karaf shell
453 sudo apt-get install -y expect
454 # Install nmap to check status of ODL's SSH port
455 sudo apt-get install -y nmap
456 - shell: !include-raw: test-karaf.expect
457 - shell: !include-raw: stop-odl.sh
464 name: 'packaging-build-deb-{stream}'
466 node: ubuntu1604-mininet-ovs-25-2c-4g
468 project-type: freestyle
475 - opendaylight-infra-properties:
476 build-days-to-keep: 7
479 - opendaylight-infra-parameters:
480 os-cloud: '{os-cloud}'
483 refspec: 'refs/heads/{branch}'
484 artifacts: '{archive-artifacts}'
485 - lf-infra-maven-parameters:
486 mvn-opts: '{mvn-opts}'
487 mvn-params: '{mvn-params}'
488 mvn-version: '{mvn-version}'
489 staging-profile-id: ''
492 # FIXME: Update the default value to an active stream.
493 # yamllint disable-line rule:line-length
494 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'
495 description: 'URL to ODL tarball artifact to repackage into .deb'
499 description: 'Name of person who defined .deb'
501 name: CHANGELOG_EMAIL
502 default: 'jenkins-donotreply@opendaylight.org'
503 description: 'Email of person who defined .deb'
506 - integration-gerrit-scm:
508 refspec: '$GERRIT_REFSPEC'
512 - opendaylight-infra-wrappers:
513 build-timeout: '{build-timeout}'
516 - shell: !include-raw: build-deb.sh
517 - lf-infra-deploy-maven-file:
518 global-settings-file: 'global-settings'
519 settings-file: 'packaging-settings'
520 mvn-version: '{mvn-version}'
521 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
522 group-id: '{group-id}'
523 upload-files-dir: '{upload-files-dir}'
524 maven-repo-url: '{maven-repo-url}'