4 project-name: packaging
7 - '{project-name}-rtd-jobs':
8 build-node: centos7-builder-2c-2g
9 doc-dir: .tox/docs/tmp/html
10 project-pattern: integration/packaging
11 rtd-build-url: https://readthedocs.org/api/v2/webhook/odl-integrationpackaging/32928/
12 rtd-token: 371d63c43ad99b0745bb7779e3488c5e255c1180
13 - 'packaging-build-rpm-{stream}'
14 - 'packaging-build-rpm-{distro}-snap-{stream}'
15 - 'packaging-build-deb-{stream}'
16 - 'packaging-verify-full-rpm-master'
17 - 'packaging-verify-rpm-master'
18 - 'packaging-test-rpm-master'
19 - 'packaging-test-rpm-upgrade-master'
20 - 'packaging-test-deb-master'
25 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.8.2/karaf-0.8.2.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 Oxygen SR2 release 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.8.2/karaf-0.8.2.tar.gz'
206 - shell: !include-raw-escape: build-rpm.sh
207 - install-test-uninstall-rpm
209 # Test latest Oxygen snapshot
211 properties-content: 'STREAM=oxygen'
212 - shell: !include-raw: build-rpm-snap.sh
213 - install-test-uninstall-rpm
215 # Test Fluorine pre-release autorelease tarball
216 # NB: This will need to be updated as old builds expire
218 # yamllint disable-line rule:line-length
219 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2209/org/opendaylight/integration/karaf/0.9.0/karaf-0.9.0.tar.gz'
220 - shell: !include-raw-escape: build-rpm.sh
221 - install-test-uninstall-rpm
223 # Test Fluorine multipatch zip (no parallel tarball available)
224 # NB: This will need to be updated as old builds expire
226 # yamllint disable-line rule:line-length
227 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.0-SNAPSHOT/karaf-0.9.0-20180620.055735-63.zip'
228 - shell: !include-raw-escape: build-rpm.sh
229 - install-test-uninstall-rpm
231 # Test latest Fluorine snapshot
233 properties-content: 'STREAM=fluorine'
234 - shell: !include-raw: build-rpm-snap.sh
235 - install-test-uninstall-rpm
239 server-name: '{gerrit-server-name}'
241 - comment-added-contains-event:
242 comment-contains-value: 'rpm-verify'
244 - project-compare-type: ANT
245 project-pattern: '{project}'
247 - branch-compare-type: ANT
248 branch-pattern: '**/{branch}'
251 pattern: 'packages/**'
258 name: 'packaging-verify-full-rpm-master'
260 node: centos7-builder-2c-8g
262 project-type: freestyle
265 - opendaylight-infra-parameters:
266 os-cloud: '{os-cloud}'
269 refspec: 'refs/heads/{branch}'
270 artifacts: '{archive-artifacts}'
273 - integration-gerrit-scm:
275 refspec: '$GERRIT_REFSPEC'
279 - opendaylight-infra-wrappers:
280 build-timeout: '{build-timeout}'
283 # Test Oxygen SR2 release tarball
285 # yamllint disable-line rule:line-length
286 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
287 - shell: !include-raw-escape: build-rpm.sh
288 - install-test-uninstall-rpm
290 # Test Oxygen pre-release autorelease tarball
291 # NB: This will need to be updated as old builds expire
293 # yamllint disable-line rule:line-length
294 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2210/org/opendaylight/integration/karaf/0.8.3/karaf-0.8.3.tar.gz'
295 - shell: !include-raw-escape: build-rpm.sh
296 - install-test-uninstall-rpm
298 # Test Oxygen multipatch zip (no parallel tarball available)
299 # NB: This will need to be updated as old builds expire
301 # yamllint disable-line rule:line-length
302 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.3-SNAPSHOT/karaf-0.8.3-20180620.173319-5.zip'
303 - shell: !include-raw-escape: build-rpm.sh
304 - install-test-uninstall-rpm
306 # Test latest Oxygen snapshot
308 properties-content: 'STREAM=oxygen'
309 - shell: !include-raw: build-rpm-snap.sh
310 - install-test-uninstall-rpm
312 # Test Fluorine pre-release autorelease tarball
313 # NB: This will need to be updated as old builds expire
315 # yamllint disable-line rule:line-length
316 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2209/org/opendaylight/integration/karaf/0.9.0/karaf-0.9.0.tar.gz'
317 - shell: !include-raw-escape: build-rpm.sh
318 - install-test-uninstall-rpm
320 # Test Fluorine multipatch zip (no parallel tarball available)
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/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.0-SNAPSHOT/karaf-0.9.0-20180620.055735-63.zip'
325 - shell: !include-raw-escape: build-rpm.sh
326 - install-test-uninstall-rpm
328 # Test latest Fluorine snapshot
330 properties-content: 'STREAM=fluorine'
331 - shell: !include-raw: build-rpm-snap.sh
332 - install-test-uninstall-rpm
337 server-name: '{gerrit-server-name}'
339 - comment-added-contains-event:
340 comment-contains-value: 'verify-rpm-full'
342 - project-compare-type: ANT
343 project-pattern: '{project}'
345 - branch-compare-type: ANT
346 branch-pattern: '**/{branch}'
353 name: 'packaging-test-rpm-master'
355 node: centos7-builder-2c-8g
358 - opendaylight-infra-parameters:
359 os-cloud: '{os-cloud}'
362 refspec: 'refs/heads/{branch}'
363 artifacts: '{archive-artifacts}'
366 # yamllint disable-line rule:line-length
367 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-9-devel.repo'
368 description: 'Link to .repo or .rpm file'
371 - integration-gerrit-scm:
373 refspec: '$GERRIT_REFSPEC'
377 - opendaylight-infra-wrappers:
378 build-timeout: '{build-timeout}'
382 # Install expect to interact with Karaf shell
383 # Install nmap to check status of ODL's SSH port
384 sudo yum install -y expect nmap
385 - shell: !include-raw-escape: install-rpm.sh
386 - shell: !include-raw: start-odl.sh
387 - shell: !include-raw-escape: test-ports-nofeature.sh
388 - shell: !include-raw: test-karaf-oxygensafe.expect
389 # Disable this test until ODLPARENT-139 is fixed
390 # - shell: !include-raw-escape: test-rest-ok.sh
391 - shell: !include-raw: stop-odl.sh
392 - shell: !include-raw: uninstall-rpm.sh
395 # TODO: Remove the archive publisher
396 # small data should be stored on logs.opendaylight.org
397 # large data should be stored on nexus.opendaylight.org
407 name: 'packaging-test-rpm-upgrade-master'
409 node: centos7-builder-2c-8g
412 - opendaylight-infra-parameters:
413 os-cloud: '{os-cloud}'
416 refspec: 'refs/heads/{branch}'
417 artifacts: '{archive-artifacts}'
420 # yamllint disable-line rule:line-length
421 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-release.repo'
422 description: 'Link to .repo or .rpm file'
425 # yamllint disable-line rule:line-length
426 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
427 description: 'Link to .repo or .rpm file'
430 - integration-gerrit-scm:
432 refspec: '$GERRIT_REFSPEC'
436 - opendaylight-infra-wrappers:
437 build-timeout: '{build-timeout}'
440 - shell: !include-raw-escape: install-rpm.sh
441 - shell: !include-raw: start-odl.sh
443 # Install expect to interact with Karaf shell
444 sudo yum install -y expect
445 # Install nmap to check status of ODL's SSH port
446 sudo yum install -y nmap
447 - shell: !include-raw: test-karaf-oxygensafe.expect
448 - shell: !include-raw: stop-odl.sh
449 - shell: !include-raw: test-rpm-upgrade.sh
450 - shell: !include-raw: start-odl.sh
451 - shell: !include-raw: test-karaf-oxygensafe.expect
452 - shell: !include-raw: stop-odl.sh
453 - shell: !include-raw: uninstall-rpm.sh
460 name: 'packaging-test-deb-master'
462 node: ubuntu1604-mininet-ovs-25-1c-4g
465 - opendaylight-infra-parameters:
466 os-cloud: '{os-cloud}'
469 refspec: 'refs/heads/{branch}'
470 artifacts: '{archive-artifacts}'
473 default: 'ppa:odl-team/oxygen'
474 description: 'Link to .deb package or name of PPA repo'
477 - integration-gerrit-scm:
479 refspec: '$GERRIT_REFSPEC'
483 - opendaylight-infra-wrappers:
484 build-timeout: '{build-timeout}'
487 - shell: !include-raw-escape: install-deb.sh
488 - shell: !include-raw: start-odl.sh
489 - shell: !include-raw-escape: test-ports-nofeature.sh
491 # Install expect to interact with Karaf shell
492 # Install nmap to check status of ODL's SSH port
493 sudo apt-get install -y expect nmap
494 - shell: !include-raw: test-karaf-oxygensafe.expect
495 # Disable this test until ODLPARENT-139 is fixed
496 # - shell: !include-raw-escape: test-rest-ok.sh
497 - shell: !include-raw: stop-odl.sh
498 - shell: !include-raw-escape: uninstall-deb.sh
505 name: 'packaging-build-deb-{stream}'
507 node: ubuntu1604-mininet-ovs-25-1c-4g
509 project-type: freestyle
516 - opendaylight-infra-properties:
517 build-days-to-keep: 7
520 - opendaylight-infra-parameters:
521 os-cloud: '{os-cloud}'
524 refspec: 'refs/heads/{branch}'
525 artifacts: '{archive-artifacts}'
526 - lf-infra-maven-parameters:
527 mvn-opts: '{mvn-opts}'
528 mvn-params: '{mvn-params}'
529 mvn-version: '{mvn-version}'
530 staging-profile-id: ''
533 # FIXME: Update the default value to an active stream.
534 # yamllint disable-line rule:line-length
535 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'
536 description: 'URL to ODL tarball artifact to repackage into .deb'
540 description: 'Name of person who defined .deb'
542 name: CHANGELOG_EMAIL
543 default: 'jenkins-donotreply@opendaylight.org'
544 description: 'Email of person who defined .deb'
547 - integration-gerrit-scm:
549 refspec: '$GERRIT_REFSPEC'
553 - opendaylight-infra-wrappers:
554 build-timeout: '{build-timeout}'
557 - shell: !include-raw: build-deb.sh
558 - install-test-uninstall-deb
559 - lf-infra-deploy-maven-file:
560 global-settings-file: 'global-settings'
561 settings-file: 'packaging-settings'
562 mvn-version: '{mvn-version}'
563 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
564 group-id: '{group-id}'
565 upload-files-dir: '{upload-files-dir}'
566 maven-repo-url: '{maven-repo-url}'