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-test-rpm-master'
13 - 'packaging-test-rpm-upgrade-master'
14 - 'packaging-test-deb-master'
16 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-full-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 Carbon SR1 tarball
189 # yamllint disable-line rule:line-length
190 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'
191 - shell: !include-raw: build-rpm.sh
193 # Test Carbon 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/distribution-karaf/0.6.2-SNAPSHOT/distribution-karaf-0.6.2-20171002.113256-59.zip'
197 - shell: !include-raw: build-rpm.sh
199 # Test latest Carbon snapshot
201 properties-content: 'STREAM=carbon'
202 - shell: !include-raw: build-rpm-snap.sh
204 # Test Nitrogen tarball
206 # yamllint disable-line rule:line-length
207 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'
208 - shell: !include-raw: build-rpm.sh
210 # Test Nitrogen multipatch zip (no parallel tarball available)
212 # yamllint disable-line rule:line-length
213 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-20171003.134117-9.zip'
214 - shell: !include-raw: build-rpm.sh
216 # Test latest Nitrogen snapshot
218 properties-content: 'STREAM=nitrogen'
219 - shell: !include-raw: build-rpm-snap.sh
221 # Test Oxygen tarball
222 # TODO: Change this to an autorelease build once available
224 # yamllint disable-line rule:line-length
225 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/karaf/0.8.0-SNAPSHOT/karaf-0.8.0-20170928.142221-597.tar.gz'
226 - shell: !include-raw: build-rpm.sh
228 # Test Oxygen multipatch zip (no parallel tarball available)
230 # yamllint disable-line rule:line-length
231 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-20171003.122621-24.zip'
232 - shell: !include-raw: build-rpm.sh
234 # Test latest Oxygen snapshot
236 properties-content: 'STREAM=oxygen'
237 - shell: !include-raw: build-rpm-snap.sh
242 server-name: '{server-name}'
244 - comment-added-contains-event:
245 comment-contains-value: 'verify-rpm-full'
247 - project-compare-type: ANT
248 project-pattern: '{project}'
250 - branch-compare-type: ANT
251 branch-pattern: '**/{branch}'
258 name: 'packaging-test-rpm-master'
260 node: centos7-java-builder-2c-4g
263 - opendaylight-infra-parameters:
264 os-cloud: '{os-cloud}'
267 refspec: 'refs/heads/{branch}'
268 artifacts: '{archive-artifacts}'
271 # yamllint disable-line rule:line-length
272 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-60-release.repo'
273 description: 'Link to .repo or .rpm file'
276 - integration-gerrit-scm:
278 refspec: '$GERRIT_REFSPEC'
282 - opendaylight-infra-wrappers:
283 build-timeout: '{build-timeout}'
286 - shell: !include-raw: install-rpm.sh
287 - shell: !include-raw: start-odl.sh
289 # Install expect to interact with Karaf shell
290 sudo yum install -y expect
291 # Install nmap to check status of ODL's SSH port
292 sudo yum install -y nmap
293 - shell: !include-raw: test-karaf.expect
294 - shell: !include-raw: stop-odl.sh
297 # TODO: Remove the archive publisher
298 # small data should be stored on logs.opendaylight.org
299 # large data should be stored on nexus.opendaylight.org
309 name: 'packaging-test-rpm-upgrade-master'
311 node: centos7-java-builder-2c-4g
314 - opendaylight-infra-parameters:
315 os-cloud: '{os-cloud}'
318 refspec: 'refs/heads/{branch}'
319 artifacts: '{archive-artifacts}'
322 # yamllint disable-line rule:line-length
323 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
324 description: 'Link to .repo or .rpm file'
327 # yamllint disable-line rule:line-length
328 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
329 description: 'Link to .repo or .rpm file'
332 - integration-gerrit-scm:
334 refspec: '$GERRIT_REFSPEC'
338 - opendaylight-infra-wrappers:
339 build-timeout: '{build-timeout}'
342 - shell: !include-raw: install-rpm.sh
343 - shell: !include-raw: start-odl.sh
345 # Install expect to interact with Karaf shell
346 sudo yum install -y expect
347 # Install nmap to check status of ODL's SSH port
348 sudo yum install -y nmap
349 - shell: !include-raw: test-karaf.expect
350 - shell: !include-raw: stop-odl.sh
351 - shell: !include-raw: test-rpm-upgrade.sh
352 - shell: !include-raw: start-odl.sh
353 - shell: !include-raw: test-karaf.expect
354 - shell: !include-raw: stop-odl.sh
361 name: 'packaging-test-deb-master'
363 node: ubuntu1604-mininet-ovs-25-2c-4g
366 - opendaylight-infra-parameters:
367 os-cloud: '{os-cloud}'
370 refspec: 'refs/heads/{branch}'
371 artifacts: '{archive-artifacts}'
374 default: 'ppa:odl-team/carbon'
375 description: 'Link to .deb package or name of PPA repo'
378 - integration-gerrit-scm:
380 refspec: '$GERRIT_REFSPEC'
384 - opendaylight-infra-wrappers:
385 build-timeout: '{build-timeout}'
388 - shell: !include-raw: install-deb.sh
389 - shell: !include-raw: start-odl.sh
391 # Install expect to interact with Karaf shell
392 sudo apt-get install -y expect
393 # Install nmap to check status of ODL's SSH port
394 sudo apt-get install -y nmap
395 - shell: !include-raw: test-karaf.expect
396 - shell: !include-raw: stop-odl.sh
403 name: 'packaging-build-deb-{stream}'
405 node: ubuntu1604-mininet-ovs-25-2c-4g
407 project-type: freestyle
414 - opendaylight-infra-properties:
415 build-days-to-keep: 7
418 - opendaylight-infra-parameters:
419 os-cloud: '{os-cloud}'
422 refspec: 'refs/heads/{branch}'
423 artifacts: '{archive-artifacts}'
424 - lf-infra-maven-parameters:
425 mvn-opts: '{mvn-opts}'
426 mvn-params: '{mvn-params}'
427 mvn-version: '{mvn-version}'
428 staging-profile-id: ''
431 # yamllint disable-line rule:line-length
432 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'
433 description: 'URL to ODL tarball artifact to repackage into .deb'
437 description: 'Name of person who defined .deb'
439 name: CHANGELOG_EMAIL
440 default: 'jenkins-donotreply@opendaylight.org'
441 description: 'Email of person who defined .deb'
444 - integration-gerrit-scm:
446 refspec: '$GERRIT_REFSPEC'
450 - opendaylight-infra-wrappers:
451 build-timeout: '{build-timeout}'
454 - shell: !include-raw: build-deb.sh
455 - lf-infra-deploy-maven-file:
456 global-settings-file: 'global-settings'
457 settings-file: 'packaging-settings'
458 mvn-version: '{mvn-version}'
459 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
460 group-id: '{group-id}'
461 upload-files-dir: '{upload-files-dir}'
462 maven-repo-url: '{maven-repo-url}'