4 project-name: packaging
7 - 'packaging-build-rpm-{stream}'
8 - 'packaging-build-rpm-{distro}-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'
19 project: 'integration/packaging'
31 # common parameters required for 'lf-infra-deploy-maven-file' builder
32 group-id: 'org.opendaylight.integration-packaging'
33 upload-files-dir: '$WORKSPACE/upload_files'
34 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
37 name: 'packaging-build-rpm-{stream}'
39 node: centos7-builder-2c-8g
41 project-type: freestyle
48 - opendaylight-infra-properties:
52 - opendaylight-infra-parameters:
53 os-cloud: '{os-cloud}'
56 refspec: 'refs/heads/{branch}'
57 artifacts: '{archive-artifacts}'
58 - lf-infra-maven-parameters:
59 mvn-opts: '{mvn-opts}'
60 mvn-params: '{mvn-params}'
61 mvn-version: '{mvn-version}'
62 staging-profile-id: ''
65 # yamllint disable-line rule:line-length
66 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
67 description: 'URL to ODL tarball artifact to repackage into RPM'
71 description: 'Name of person who defined RPM'
74 default: 'jenkins-donotreply@opendaylight.org'
75 description: 'Email of person who defined RPM'
78 - integration-gerrit-scm:
80 refspec: '$GERRIT_REFSPEC'
84 - opendaylight-infra-wrappers:
85 build-timeout: '{build-timeout}'
88 - shell: !include-raw-escape: build-rpm.sh
89 - install-test-uninstall-rpm
90 - lf-infra-deploy-maven-file:
91 global-settings-file: 'global-settings'
92 settings-file: 'packaging-settings'
93 mvn-version: '{mvn-version}'
94 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
95 group-id: '{group-id}'
96 upload-files-dir: '{upload-files-dir}'
97 maven-repo-url: '{maven-repo-url}'
104 name: 'packaging-build-rpm-{distro}-snap-{stream}'
106 node: centos7-docker-2c-8g
108 project-type: freestyle
115 - opendaylight-infra-properties:
116 build-days-to-keep: 7
119 - opendaylight-infra-parameters:
120 os-cloud: '{os-cloud}'
123 refspec: 'refs/heads/{branch}'
124 artifacts: '{archive-artifacts}'
125 - lf-infra-maven-parameters:
126 mvn-opts: '{mvn-opts}'
127 mvn-params: '{mvn-params}'
128 mvn-version: '{mvn-version}'
129 staging-profile-id: ''
133 description: 'Name of person who defined RPM'
135 name: CHANGELOG_EMAIL
136 default: 'jenkins-donotreply@opendaylight.org'
137 description: 'Email of person who defined RPM'
140 - integration-gerrit-scm:
142 refspec: '$GERRIT_REFSPEC'
146 - opendaylight-infra-wrappers:
147 build-timeout: '{build-timeout}'
151 properties-content: |
154 - shell: !include-raw: build-rpm-snap-docker.sh
155 - shell: !include-raw: test-rpm-docker.sh
156 - lf-infra-deploy-maven-file:
157 global-settings-file: 'global-settings'
158 settings-file: 'packaging-settings'
159 mvn-version: '{mvn-version}'
160 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
161 group-id: '{group-id}'
162 upload-files-dir: '{upload-files-dir}'
163 maven-repo-url: '{maven-repo-url}'
173 name: 'packaging-verify-rpm-master'
175 node: centos7-builder-2c-8g
177 project-type: freestyle
180 - opendaylight-infra-parameters:
181 os-cloud: '{os-cloud}'
184 refspec: 'refs/heads/{branch}'
185 artifacts: '{archive-artifacts}'
188 - integration-gerrit-scm:
190 refspec: '$GERRIT_REFSPEC'
194 - opendaylight-infra-wrappers:
195 build-timeout: '{build-timeout}'
198 # Test Nitrogen tarball
200 # yamllint disable-line rule:line-length
201 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'
202 - shell: !include-raw-escape: build-rpm.sh
203 - install-test-uninstall-rpm
205 # Test Oxygen pre-release autorelease tarball
207 # yamllint disable-line rule:line-length
208 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2106/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
209 - shell: !include-raw-escape: build-rpm.sh
210 - install-test-uninstall-rpm
212 # Test Oxygen multipatch zip (no parallel tarball available)
214 # yamllint disable-line rule:line-length
215 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-20180305.133042-180.zip'
216 - shell: !include-raw-escape: build-rpm.sh
217 - install-test-uninstall-rpm
219 # Test latest Oxygen snapshot
221 properties-content: 'STREAM=oxygen'
222 - shell: !include-raw: build-rpm-snap.sh
223 - install-test-uninstall-rpm
227 server-name: '{gerrit-server-name}'
229 - comment-added-contains-event:
230 comment-contains-value: 'rpm-verify'
232 - project-compare-type: ANT
233 project-pattern: '{project}'
235 - branch-compare-type: ANT
236 branch-pattern: '**/{branch}'
239 pattern: 'packages/**'
246 name: 'packaging-verify-full-rpm-master'
248 node: centos7-builder-2c-8g
250 project-type: freestyle
253 - opendaylight-infra-parameters:
254 os-cloud: '{os-cloud}'
257 refspec: 'refs/heads/{branch}'
258 artifacts: '{archive-artifacts}'
261 - integration-gerrit-scm:
263 refspec: '$GERRIT_REFSPEC'
267 - opendaylight-infra-wrappers:
268 build-timeout: '{build-timeout}'
271 # Test Carbon SR2 tarball
273 # yamllint disable-line rule:line-length
274 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'
275 - shell: !include-raw-escape: build-rpm.sh
276 - install-test-uninstall-rpm
278 # Test Carbon multipatch zip (no parallel tarball available)
279 # NB: This will need to be updated as old builds expire
281 # yamllint disable-line rule:line-length
282 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/distribution-karaf/0.6.4-SNAPSHOT/distribution-karaf-0.6.4-20180305.151247-2.zip'
283 - shell: !include-raw-escape: build-rpm.sh
284 - install-test-uninstall-rpm
286 # Test latest Carbon snapshot
288 properties-content: 'STREAM=carbon'
289 - shell: !include-raw: build-rpm-snap.sh
290 - install-test-uninstall-rpm
292 # Test Nitrogen 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.0/karaf-0.7.0.tar.gz'
296 - shell: !include-raw-escape: build-rpm.sh
297 - install-test-uninstall-rpm
299 # Test Nitrogen SR1 tarball
301 # yamllint disable-line rule:line-length
302 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'
303 - shell: !include-raw-escape: build-rpm.sh
304 - install-test-uninstall-rpm
306 # Test Nitrogen multipatch zip (no parallel tarball available)
307 # NB: This will need to be updated as old builds expire
309 # yamllint disable-line rule:line-length
310 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.7.3-SNAPSHOT/karaf-0.7.3-20180305.153647-3.zip'
311 - shell: !include-raw-escape: build-rpm.sh
312 - install-test-uninstall-rpm
314 # Test latest Nitrogen snapshot
316 properties-content: 'STREAM=nitrogen'
317 - shell: !include-raw: build-rpm-snap.sh
318 - install-test-uninstall-rpm
320 # Test Oxygen pre-release autorelease tarball
321 # NB: This will need to be updated as old builds expire
323 # yamllint disable-line rule:line-length
324 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2106/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
325 - shell: !include-raw-escape: build-rpm.sh
326 - install-test-uninstall-rpm
328 # Test Oxygen multipatch zip (no parallel tarball available)
329 # NB: This will need to be updated as old builds expire
331 # yamllint disable-line rule:line-length
332 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-20180305.133042-180.zip'
333 - shell: !include-raw-escape: build-rpm.sh
334 - install-test-uninstall-rpm
336 # Test latest Oxygen snapshot
338 properties-content: 'STREAM=oxygen'
339 - shell: !include-raw: build-rpm-snap.sh
340 - install-test-uninstall-rpm
345 server-name: '{gerrit-server-name}'
347 - comment-added-contains-event:
348 comment-contains-value: 'verify-rpm-full'
350 - project-compare-type: ANT
351 project-pattern: '{project}'
353 - branch-compare-type: ANT
354 branch-pattern: '**/{branch}'
361 name: 'packaging-test-rpm-master'
363 node: centos7-builder-2c-8g
366 - opendaylight-infra-parameters:
367 os-cloud: '{os-cloud}'
370 refspec: 'refs/heads/{branch}'
371 artifacts: '{archive-artifacts}'
374 # yamllint disable-line rule:line-length
375 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
376 description: 'Link to .repo or .rpm file'
379 - integration-gerrit-scm:
381 refspec: '$GERRIT_REFSPEC'
385 - opendaylight-infra-wrappers:
386 build-timeout: '{build-timeout}'
390 # Install expect to interact with Karaf shell
391 # Install nmap to check status of ODL's SSH port
392 sudo yum install -y expect nmap
393 - shell: !include-raw-escape: install-rpm.sh
394 - shell: !include-raw: start-odl.sh
395 - shell: !include-raw-escape: test-ports-nofeature.sh
396 - shell: !include-raw: test-karaf-oxygensafe.expect
397 # Disable this test until ODLPARENT-139 is fixed
398 # - shell: !include-raw-escape: test-rest-ok.sh
399 - shell: !include-raw: stop-odl.sh
400 - shell: !include-raw: uninstall-rpm.sh
403 # TODO: Remove the archive publisher
404 # small data should be stored on logs.opendaylight.org
405 # large data should be stored on nexus.opendaylight.org
415 name: 'packaging-test-rpm-upgrade-master'
417 node: centos7-builder-2c-8g
420 - opendaylight-infra-parameters:
421 os-cloud: '{os-cloud}'
424 refspec: 'refs/heads/{branch}'
425 artifacts: '{archive-artifacts}'
428 # yamllint disable-line rule:line-length
429 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
430 description: 'Link to .repo or .rpm file'
433 # yamllint disable-line rule:line-length
434 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
435 description: 'Link to .repo or .rpm file'
438 - integration-gerrit-scm:
440 refspec: '$GERRIT_REFSPEC'
444 - opendaylight-infra-wrappers:
445 build-timeout: '{build-timeout}'
448 - shell: !include-raw-escape: install-rpm.sh
449 - shell: !include-raw: start-odl.sh
451 # Install expect to interact with Karaf shell
452 sudo yum install -y expect
453 # Install nmap to check status of ODL's SSH port
454 sudo yum install -y nmap
455 - shell: !include-raw: test-karaf-oxygensafe.expect
456 - shell: !include-raw: stop-odl.sh
457 - shell: !include-raw: test-rpm-upgrade.sh
458 - shell: !include-raw: start-odl.sh
459 - shell: !include-raw: test-karaf-oxygensafe.expect
460 - shell: !include-raw: stop-odl.sh
461 - shell: !include-raw: uninstall-rpm.sh
468 name: 'packaging-test-deb-master'
470 node: ubuntu1604-mininet-ovs-25-1c-4g
473 - opendaylight-infra-parameters:
474 os-cloud: '{os-cloud}'
477 refspec: 'refs/heads/{branch}'
478 artifacts: '{archive-artifacts}'
481 default: 'ppa:odl-team/carbon'
482 description: 'Link to .deb package or name of PPA repo'
485 - integration-gerrit-scm:
487 refspec: '$GERRIT_REFSPEC'
491 - opendaylight-infra-wrappers:
492 build-timeout: '{build-timeout}'
495 - shell: !include-raw: install-deb.sh
496 - shell: !include-raw: start-odl.sh
498 # Install expect to interact with Karaf shell
499 sudo apt-get install -y expect
500 # Install nmap to check status of ODL's SSH port
501 sudo apt-get install -y nmap
502 - shell: !include-raw: test-karaf-oxygensafe.expect
503 - shell: !include-raw: stop-odl.sh
510 name: 'packaging-build-deb-{stream}'
512 node: ubuntu1604-mininet-ovs-25-1c-4g
514 project-type: freestyle
521 - opendaylight-infra-properties:
522 build-days-to-keep: 7
525 - opendaylight-infra-parameters:
526 os-cloud: '{os-cloud}'
529 refspec: 'refs/heads/{branch}'
530 artifacts: '{archive-artifacts}'
531 - lf-infra-maven-parameters:
532 mvn-opts: '{mvn-opts}'
533 mvn-params: '{mvn-params}'
534 mvn-version: '{mvn-version}'
535 staging-profile-id: ''
538 # FIXME: Update the default value to an active stream.
539 # yamllint disable-line rule:line-length
540 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'
541 description: 'URL to ODL tarball artifact to repackage into .deb'
545 description: 'Name of person who defined .deb'
547 name: CHANGELOG_EMAIL
548 default: 'jenkins-donotreply@opendaylight.org'
549 description: 'Email of person who defined .deb'
552 - integration-gerrit-scm:
554 refspec: '$GERRIT_REFSPEC'
558 - opendaylight-infra-wrappers:
559 build-timeout: '{build-timeout}'
562 - shell: !include-raw: build-deb.sh
563 - lf-infra-deploy-maven-file:
564 global-settings-file: 'global-settings'
565 settings-file: 'packaging-settings'
566 mvn-version: '{mvn-version}'
567 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
568 group-id: '{group-id}'
569 upload-files-dir: '{upload-files-dir}'
570 maven-repo-url: '{maven-repo-url}'