4 project-name: packaging
7 - '{project-name}-rtd-jobs':
8 build-node: centos7-builder-2c-2g
9 project-pattern: integration/packaging
10 rtd-project: odl-integrationpackaging
11 - 'packaging-build-rpm-{stream}'
12 - 'packaging-build-rpm-{distro}-snap-{stream}'
13 - 'packaging-build-deb-{stream}'
14 - 'packaging-verify-full-rpm-master'
15 - 'packaging-verify-rpm-master'
16 - 'packaging-test-rpm-master'
17 - 'packaging-test-rpm-upgrade-master'
18 - 'packaging-test-deb-master'
23 project: 'integration/packaging'
35 # common parameters required for 'lf-infra-deploy-maven-file' builder
36 group-id: 'org.opendaylight.integration-packaging'
37 upload-files-dir: '$WORKSPACE/upload_files'
38 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
41 name: 'packaging-build-rpm-{stream}'
43 node: centos7-builder-2c-8g
45 project-type: freestyle
52 - opendaylight-infra-properties:
56 - opendaylight-infra-parameters:
57 os-cloud: '{os-cloud}'
60 refspec: 'refs/heads/{branch}'
61 artifacts: '{archive-artifacts}'
62 - lf-infra-maven-parameters:
63 mvn-opts: '{mvn-opts}'
64 mvn-params: '{mvn-params}'
65 mvn-version: '{mvn-version}'
66 staging-profile-id: ''
69 # yamllint disable-line rule:line-length
70 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
71 description: 'URL to ODL tarball artifact to repackage into RPM'
75 description: 'Name of person who defined RPM'
78 default: 'jenkins-donotreply@opendaylight.org'
79 description: 'Email of person who defined RPM'
82 - integration-gerrit-scm:
84 refspec: '$GERRIT_REFSPEC'
88 - opendaylight-infra-wrappers:
89 build-timeout: '{build-timeout}'
92 - shell: !include-raw-escape: build-rpm.sh
93 - install-test-uninstall-rpm
94 - lf-infra-deploy-maven-file:
95 global-settings-file: 'global-settings'
96 settings-file: 'packaging-settings'
97 mvn-version: '{mvn-version}'
98 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
99 group-id: '{group-id}'
100 upload-files-dir: '{upload-files-dir}'
101 maven-repo-url: '{maven-repo-url}'
108 name: 'packaging-build-rpm-{distro}-snap-{stream}'
110 node: centos7-docker-2c-8g
112 project-type: freestyle
119 - opendaylight-infra-properties:
120 build-days-to-keep: 7
123 - opendaylight-infra-parameters:
124 os-cloud: '{os-cloud}'
127 refspec: 'refs/heads/{branch}'
128 artifacts: '{archive-artifacts}'
129 - lf-infra-maven-parameters:
130 mvn-opts: '{mvn-opts}'
131 mvn-params: '{mvn-params}'
132 mvn-version: '{mvn-version}'
133 staging-profile-id: ''
137 description: 'Name of person who defined RPM'
139 name: CHANGELOG_EMAIL
140 default: 'jenkins-donotreply@opendaylight.org'
141 description: 'Email of person who defined RPM'
144 - integration-gerrit-scm:
146 refspec: '$GERRIT_REFSPEC'
150 - opendaylight-infra-wrappers:
151 build-timeout: '{build-timeout}'
155 properties-content: |
158 - shell: !include-raw: build-rpm-snap-docker.sh
159 - shell: !include-raw: test-rpm-docker.sh
160 - lf-infra-deploy-maven-file:
161 global-settings-file: 'global-settings'
162 settings-file: 'packaging-settings'
163 mvn-version: '{mvn-version}'
164 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
165 group-id: '{group-id}'
166 upload-files-dir: '{upload-files-dir}'
167 maven-repo-url: '{maven-repo-url}'
177 name: 'packaging-verify-rpm-master'
179 node: centos7-builder-2c-8g
181 project-type: freestyle
184 - opendaylight-infra-parameters:
185 os-cloud: '{os-cloud}'
188 refspec: 'refs/heads/{branch}'
189 artifacts: '{archive-artifacts}'
192 - integration-gerrit-scm:
194 refspec: '$GERRIT_REFSPEC'
198 - opendaylight-infra-wrappers:
199 build-timeout: '{build-timeout}'
202 # Test Nitrogen tarball
204 # yamllint disable-line rule:line-length
205 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'
206 - shell: !include-raw-escape: build-rpm.sh
207 - install-test-uninstall-rpm
209 # Test Oxygen pre-release autorelease tarball
211 # yamllint disable-line rule:line-length
212 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'
213 - shell: !include-raw-escape: build-rpm.sh
214 - install-test-uninstall-rpm
216 # Test Oxygen multipatch zip (no parallel tarball available)
218 # yamllint disable-line rule:line-length
219 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'
220 - shell: !include-raw-escape: build-rpm.sh
221 - install-test-uninstall-rpm
223 # Test latest Oxygen snapshot
225 properties-content: 'STREAM=oxygen'
226 - shell: !include-raw: build-rpm-snap.sh
227 - install-test-uninstall-rpm
231 server-name: '{gerrit-server-name}'
233 - comment-added-contains-event:
234 comment-contains-value: 'rpm-verify'
236 - project-compare-type: ANT
237 project-pattern: '{project}'
239 - branch-compare-type: ANT
240 branch-pattern: '**/{branch}'
243 pattern: 'packages/**'
250 name: 'packaging-verify-full-rpm-master'
252 node: centos7-builder-2c-8g
254 project-type: freestyle
257 - opendaylight-infra-parameters:
258 os-cloud: '{os-cloud}'
261 refspec: 'refs/heads/{branch}'
262 artifacts: '{archive-artifacts}'
265 - integration-gerrit-scm:
267 refspec: '$GERRIT_REFSPEC'
271 - opendaylight-infra-wrappers:
272 build-timeout: '{build-timeout}'
275 # Test Carbon SR2 tarball
277 # yamllint disable-line rule:line-length
278 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'
279 - shell: !include-raw-escape: build-rpm.sh
280 - install-test-uninstall-rpm
282 # Test Carbon multipatch zip (no parallel tarball available)
283 # NB: This will need to be updated as old builds expire
285 # yamllint disable-line rule:line-length
286 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'
287 - shell: !include-raw-escape: build-rpm.sh
288 - install-test-uninstall-rpm
290 # Test latest Carbon snapshot
292 properties-content: 'STREAM=carbon'
293 - shell: !include-raw: build-rpm-snap.sh
294 - install-test-uninstall-rpm
296 # Test Nitrogen tarball
298 # yamllint disable-line rule:line-length
299 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'
300 - shell: !include-raw-escape: build-rpm.sh
301 - install-test-uninstall-rpm
303 # Test Nitrogen SR1 tarball
305 # yamllint disable-line rule:line-length
306 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'
307 - shell: !include-raw-escape: build-rpm.sh
308 - install-test-uninstall-rpm
310 # Test Nitrogen multipatch zip (no parallel tarball available)
311 # NB: This will need to be updated as old builds expire
313 # yamllint disable-line rule:line-length
314 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'
315 - shell: !include-raw-escape: build-rpm.sh
316 - install-test-uninstall-rpm
318 # Test latest Nitrogen snapshot
320 properties-content: 'STREAM=nitrogen'
321 - shell: !include-raw: build-rpm-snap.sh
322 - install-test-uninstall-rpm
324 # Test Oxygen pre-release autorelease tarball
325 # NB: This will need to be updated as old builds expire
327 # yamllint disable-line rule:line-length
328 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'
329 - shell: !include-raw-escape: build-rpm.sh
330 - install-test-uninstall-rpm
332 # Test Oxygen multipatch zip (no parallel tarball available)
333 # NB: This will need to be updated as old builds expire
335 # yamllint disable-line rule:line-length
336 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'
337 - shell: !include-raw-escape: build-rpm.sh
338 - install-test-uninstall-rpm
340 # Test latest Oxygen snapshot
342 properties-content: 'STREAM=oxygen'
343 - shell: !include-raw: build-rpm-snap.sh
344 - install-test-uninstall-rpm
349 server-name: '{gerrit-server-name}'
351 - comment-added-contains-event:
352 comment-contains-value: 'verify-rpm-full'
354 - project-compare-type: ANT
355 project-pattern: '{project}'
357 - branch-compare-type: ANT
358 branch-pattern: '**/{branch}'
365 name: 'packaging-test-rpm-master'
367 node: centos7-builder-2c-8g
370 - opendaylight-infra-parameters:
371 os-cloud: '{os-cloud}'
374 refspec: 'refs/heads/{branch}'
375 artifacts: '{archive-artifacts}'
378 # yamllint disable-line rule:line-length
379 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
380 description: 'Link to .repo or .rpm file'
383 - integration-gerrit-scm:
385 refspec: '$GERRIT_REFSPEC'
389 - opendaylight-infra-wrappers:
390 build-timeout: '{build-timeout}'
394 # Install expect to interact with Karaf shell
395 # Install nmap to check status of ODL's SSH port
396 sudo yum install -y expect nmap
397 - shell: !include-raw-escape: install-rpm.sh
398 - shell: !include-raw: start-odl.sh
399 - shell: !include-raw-escape: test-ports-nofeature.sh
400 - shell: !include-raw: test-karaf-oxygensafe.expect
401 # Disable this test until ODLPARENT-139 is fixed
402 # - shell: !include-raw-escape: test-rest-ok.sh
403 - shell: !include-raw: stop-odl.sh
404 - shell: !include-raw: uninstall-rpm.sh
407 # TODO: Remove the archive publisher
408 # small data should be stored on logs.opendaylight.org
409 # large data should be stored on nexus.opendaylight.org
419 name: 'packaging-test-rpm-upgrade-master'
421 node: centos7-builder-2c-8g
424 - opendaylight-infra-parameters:
425 os-cloud: '{os-cloud}'
428 refspec: 'refs/heads/{branch}'
429 artifacts: '{archive-artifacts}'
432 # yamllint disable-line rule:line-length
433 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
434 description: 'Link to .repo or .rpm file'
437 # yamllint disable-line rule:line-length
438 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
439 description: 'Link to .repo or .rpm file'
442 - integration-gerrit-scm:
444 refspec: '$GERRIT_REFSPEC'
448 - opendaylight-infra-wrappers:
449 build-timeout: '{build-timeout}'
452 - shell: !include-raw-escape: install-rpm.sh
453 - shell: !include-raw: start-odl.sh
455 # Install expect to interact with Karaf shell
456 sudo yum install -y expect
457 # Install nmap to check status of ODL's SSH port
458 sudo yum install -y nmap
459 - shell: !include-raw: test-karaf-oxygensafe.expect
460 - shell: !include-raw: stop-odl.sh
461 - shell: !include-raw: test-rpm-upgrade.sh
462 - shell: !include-raw: start-odl.sh
463 - shell: !include-raw: test-karaf-oxygensafe.expect
464 - shell: !include-raw: stop-odl.sh
465 - shell: !include-raw: uninstall-rpm.sh
472 name: 'packaging-test-deb-master'
474 node: ubuntu1604-mininet-ovs-25-1c-4g
477 - opendaylight-infra-parameters:
478 os-cloud: '{os-cloud}'
481 refspec: 'refs/heads/{branch}'
482 artifacts: '{archive-artifacts}'
485 default: 'ppa:odl-team/nitrogen'
486 description: 'Link to .deb package or name of PPA repo'
489 - integration-gerrit-scm:
491 refspec: '$GERRIT_REFSPEC'
495 - opendaylight-infra-wrappers:
496 build-timeout: '{build-timeout}'
499 - shell: !include-raw-escape: install-deb.sh
500 - shell: !include-raw: start-odl.sh
501 - shell: !include-raw-escape: test-ports-nofeature.sh
503 # Install expect to interact with Karaf shell
504 # Install nmap to check status of ODL's SSH port
505 sudo apt-get install -y expect nmap
506 - shell: !include-raw: test-karaf-oxygensafe.expect
507 # Disable this test until ODLPARENT-139 is fixed
508 # - shell: !include-raw-escape: test-rest-ok.sh
509 - shell: !include-raw: stop-odl.sh
510 - shell: !include-raw-escape: uninstall-deb.sh
517 name: 'packaging-build-deb-{stream}'
519 node: ubuntu1604-mininet-ovs-25-1c-4g
521 project-type: freestyle
528 - opendaylight-infra-properties:
529 build-days-to-keep: 7
532 - opendaylight-infra-parameters:
533 os-cloud: '{os-cloud}'
536 refspec: 'refs/heads/{branch}'
537 artifacts: '{archive-artifacts}'
538 - lf-infra-maven-parameters:
539 mvn-opts: '{mvn-opts}'
540 mvn-params: '{mvn-params}'
541 mvn-version: '{mvn-version}'
542 staging-profile-id: ''
545 # FIXME: Update the default value to an active stream.
546 # yamllint disable-line rule:line-length
547 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'
548 description: 'URL to ODL tarball artifact to repackage into .deb'
552 description: 'Name of person who defined .deb'
554 name: CHANGELOG_EMAIL
555 default: 'jenkins-donotreply@opendaylight.org'
556 description: 'Email of person who defined .deb'
559 - integration-gerrit-scm:
561 refspec: '$GERRIT_REFSPEC'
565 - opendaylight-infra-wrappers:
566 build-timeout: '{build-timeout}'
569 - shell: !include-raw: build-deb.sh
570 - install-test-uninstall-deb
571 - lf-infra-deploy-maven-file:
572 global-settings-file: 'global-settings'
573 settings-file: 'packaging-settings'
574 mvn-version: '{mvn-version}'
575 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
576 group-id: '{group-id}'
577 upload-files-dir: '{upload-files-dir}'
578 maven-repo-url: '{maven-repo-url}'