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.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 Oxygen SR1 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.1/karaf-0.8.1.tar.gz'
206 - shell: !include-raw-escape: build-rpm.sh
207 - install-test-uninstall-rpm
209 # Test Fluorine pre-release autorelease tarball
210 # NB: This will need to be updated as old builds expire
212 # yamllint disable-line rule:line-length
213 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2191/org/opendaylight/integration/karaf/0.9.0/karaf-0.9.0.tar.gz'
214 - shell: !include-raw-escape: build-rpm.sh
215 - install-test-uninstall-rpm
217 # Test Fluorine multipatch zip (no parallel tarball available)
218 # NB: This will need to be updated as old builds expire
220 # yamllint disable-line rule:line-length
221 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-20180531.192226-59.zip'
222 - shell: !include-raw-escape: build-rpm.sh
223 - install-test-uninstall-rpm
225 # Test latest Fluorine snapshot
227 properties-content: 'STREAM=fluorine'
228 - shell: !include-raw: build-rpm-snap.sh
229 - install-test-uninstall-rpm
233 server-name: '{gerrit-server-name}'
235 - comment-added-contains-event:
236 comment-contains-value: 'rpm-verify'
238 - project-compare-type: ANT
239 project-pattern: '{project}'
241 - branch-compare-type: ANT
242 branch-pattern: '**/{branch}'
245 pattern: 'packages/**'
252 name: 'packaging-verify-full-rpm-master'
254 node: centos7-builder-2c-8g
256 project-type: freestyle
259 - opendaylight-infra-parameters:
260 os-cloud: '{os-cloud}'
263 refspec: 'refs/heads/{branch}'
264 artifacts: '{archive-artifacts}'
267 - integration-gerrit-scm:
269 refspec: '$GERRIT_REFSPEC'
273 - opendaylight-infra-wrappers:
274 build-timeout: '{build-timeout}'
277 # Test Oxygen SR1 release tarball
279 # yamllint disable-line rule:line-length
280 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.1/karaf-0.8.1.tar.gz'
281 - shell: !include-raw-escape: build-rpm.sh
282 - install-test-uninstall-rpm
284 # Test Oxygen pre-release autorelease tarball
285 # NB: This will need to be updated as old builds expire
287 # yamllint disable-line rule:line-length
288 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2192/org/opendaylight/integration/karaf/0.8.2/karaf-0.8.2.tar.gz'
289 - shell: !include-raw-escape: build-rpm.sh
290 - install-test-uninstall-rpm
292 # Test Oxygen multipatch zip (no parallel tarball available)
293 # NB: This will need to be updated as old builds expire
295 # yamllint disable-line rule:line-length
296 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.2-SNAPSHOT/karaf-0.8.2-20180524.145206-1.zip'
297 - shell: !include-raw-escape: build-rpm.sh
298 - install-test-uninstall-rpm
300 # Test latest Oxygen snapshot
302 properties-content: 'STREAM=oxygen'
303 - shell: !include-raw: build-rpm-snap.sh
304 - install-test-uninstall-rpm
306 # Test Fluorine pre-release autorelease tarball
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/autorelease-2191/org/opendaylight/integration/karaf/0.9.0/karaf-0.9.0.tar.gz'
311 - shell: !include-raw-escape: build-rpm.sh
312 - install-test-uninstall-rpm
314 # Test Fluorine multipatch zip (no parallel tarball available)
315 # NB: This will need to be updated as old builds expire
317 # yamllint disable-line rule:line-length
318 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-20180531.192226-59.zip'
319 - shell: !include-raw-escape: build-rpm.sh
320 - install-test-uninstall-rpm
322 # Test latest Fluorine snapshot
324 properties-content: 'STREAM=fluorine'
325 - shell: !include-raw: build-rpm-snap.sh
326 - install-test-uninstall-rpm
331 server-name: '{gerrit-server-name}'
333 - comment-added-contains-event:
334 comment-contains-value: 'verify-rpm-full'
336 - project-compare-type: ANT
337 project-pattern: '{project}'
339 - branch-compare-type: ANT
340 branch-pattern: '**/{branch}'
347 name: 'packaging-test-rpm-master'
349 node: centos7-builder-2c-8g
352 - opendaylight-infra-parameters:
353 os-cloud: '{os-cloud}'
356 refspec: 'refs/heads/{branch}'
357 artifacts: '{archive-artifacts}'
360 # yamllint disable-line rule:line-length
361 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
362 description: 'Link to .repo or .rpm file'
365 - integration-gerrit-scm:
367 refspec: '$GERRIT_REFSPEC'
371 - opendaylight-infra-wrappers:
372 build-timeout: '{build-timeout}'
376 # Install expect to interact with Karaf shell
377 # Install nmap to check status of ODL's SSH port
378 sudo yum install -y expect nmap
379 - shell: !include-raw-escape: install-rpm.sh
380 - shell: !include-raw: start-odl.sh
381 - shell: !include-raw-escape: test-ports-nofeature.sh
382 - shell: !include-raw: test-karaf-oxygensafe.expect
383 # Disable this test until ODLPARENT-139 is fixed
384 # - shell: !include-raw-escape: test-rest-ok.sh
385 - shell: !include-raw: stop-odl.sh
386 - shell: !include-raw: uninstall-rpm.sh
389 # TODO: Remove the archive publisher
390 # small data should be stored on logs.opendaylight.org
391 # large data should be stored on nexus.opendaylight.org
401 name: 'packaging-test-rpm-upgrade-master'
403 node: centos7-builder-2c-8g
406 - opendaylight-infra-parameters:
407 os-cloud: '{os-cloud}'
410 refspec: 'refs/heads/{branch}'
411 artifacts: '{archive-artifacts}'
414 # yamllint disable-line rule:line-length
415 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
416 description: 'Link to .repo or .rpm file'
419 # yamllint disable-line rule:line-length
420 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
421 description: 'Link to .repo or .rpm file'
424 - integration-gerrit-scm:
426 refspec: '$GERRIT_REFSPEC'
430 - opendaylight-infra-wrappers:
431 build-timeout: '{build-timeout}'
434 - shell: !include-raw-escape: install-rpm.sh
435 - shell: !include-raw: start-odl.sh
437 # Install expect to interact with Karaf shell
438 sudo yum install -y expect
439 # Install nmap to check status of ODL's SSH port
440 sudo yum install -y nmap
441 - shell: !include-raw: test-karaf-oxygensafe.expect
442 - shell: !include-raw: stop-odl.sh
443 - shell: !include-raw: test-rpm-upgrade.sh
444 - shell: !include-raw: start-odl.sh
445 - shell: !include-raw: test-karaf-oxygensafe.expect
446 - shell: !include-raw: stop-odl.sh
447 - shell: !include-raw: uninstall-rpm.sh
454 name: 'packaging-test-deb-master'
456 node: ubuntu1604-mininet-ovs-25-1c-4g
459 - opendaylight-infra-parameters:
460 os-cloud: '{os-cloud}'
463 refspec: 'refs/heads/{branch}'
464 artifacts: '{archive-artifacts}'
467 default: 'ppa:odl-team/oxygen'
468 description: 'Link to .deb package or name of PPA repo'
471 - integration-gerrit-scm:
473 refspec: '$GERRIT_REFSPEC'
477 - opendaylight-infra-wrappers:
478 build-timeout: '{build-timeout}'
481 - shell: !include-raw-escape: install-deb.sh
482 - shell: !include-raw: start-odl.sh
483 - shell: !include-raw-escape: test-ports-nofeature.sh
485 # Install expect to interact with Karaf shell
486 # Install nmap to check status of ODL's SSH port
487 sudo apt-get install -y expect nmap
488 - shell: !include-raw: test-karaf-oxygensafe.expect
489 # Disable this test until ODLPARENT-139 is fixed
490 # - shell: !include-raw-escape: test-rest-ok.sh
491 - shell: !include-raw: stop-odl.sh
492 - shell: !include-raw-escape: uninstall-deb.sh
499 name: 'packaging-build-deb-{stream}'
501 node: ubuntu1604-mininet-ovs-25-1c-4g
503 project-type: freestyle
510 - opendaylight-infra-properties:
511 build-days-to-keep: 7
514 - opendaylight-infra-parameters:
515 os-cloud: '{os-cloud}'
518 refspec: 'refs/heads/{branch}'
519 artifacts: '{archive-artifacts}'
520 - lf-infra-maven-parameters:
521 mvn-opts: '{mvn-opts}'
522 mvn-params: '{mvn-params}'
523 mvn-version: '{mvn-version}'
524 staging-profile-id: ''
527 # FIXME: Update the default value to an active stream.
528 # yamllint disable-line rule:line-length
529 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'
530 description: 'URL to ODL tarball artifact to repackage into .deb'
534 description: 'Name of person who defined .deb'
536 name: CHANGELOG_EMAIL
537 default: 'jenkins-donotreply@opendaylight.org'
538 description: 'Email of person who defined .deb'
541 - integration-gerrit-scm:
543 refspec: '$GERRIT_REFSPEC'
547 - opendaylight-infra-wrappers:
548 build-timeout: '{build-timeout}'
551 - shell: !include-raw: build-deb.sh
552 - install-test-uninstall-deb
553 - lf-infra-deploy-maven-file:
554 global-settings-file: 'global-settings'
555 settings-file: 'packaging-settings'
556 mvn-version: '{mvn-version}'
557 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
558 group-id: '{group-id}'
559 upload-files-dir: '{upload-files-dir}'
560 maven-repo-url: '{maven-repo-url}'