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 pre-release autorelease tarball
203 # NB: This will need to be updated as old builds expire
205 # yamllint disable-line rule:line-length
206 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2131/org/opendaylight/integration/karaf/0.8.1/karaf-0.8.1.tar.gz'
207 - shell: !include-raw-escape: build-rpm.sh
208 - install-test-uninstall-rpm
210 # Test Oxygen multipatch zip (no parallel tarball available)
211 # NB: This will need to be updated as old builds expire
213 # yamllint disable-line rule:line-length
214 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.1-SNAPSHOT/karaf-0.8.1-20180417.030111-15.zip'
215 - shell: !include-raw-escape: build-rpm.sh
216 - install-test-uninstall-rpm
218 # Test latest Oxygen snapshot
220 properties-content: 'STREAM=oxygen'
221 - shell: !include-raw: build-rpm-snap.sh
222 - install-test-uninstall-rpm
226 server-name: '{gerrit-server-name}'
228 - comment-added-contains-event:
229 comment-contains-value: 'rpm-verify'
231 - project-compare-type: ANT
232 project-pattern: '{project}'
234 - branch-compare-type: ANT
235 branch-pattern: '**/{branch}'
238 pattern: 'packages/**'
245 name: 'packaging-verify-full-rpm-master'
247 node: centos7-builder-2c-8g
249 project-type: freestyle
252 - opendaylight-infra-parameters:
253 os-cloud: '{os-cloud}'
256 refspec: 'refs/heads/{branch}'
257 artifacts: '{archive-artifacts}'
260 - integration-gerrit-scm:
262 refspec: '$GERRIT_REFSPEC'
266 - opendaylight-infra-wrappers:
267 build-timeout: '{build-timeout}'
270 # Test Oxygen pre-release autorelease tarball
271 # NB: This will need to be updated as old builds expire
273 # yamllint disable-line rule:line-length
274 properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2131/org/opendaylight/integration/karaf/0.8.1/karaf-0.8.1.tar.gz'
275 - shell: !include-raw-escape: build-rpm.sh
276 - install-test-uninstall-rpm
278 # Test Oxygen 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/karaf/0.8.1-SNAPSHOT/karaf-0.8.1-20180417.030111-15.zip'
283 - shell: !include-raw-escape: build-rpm.sh
284 - install-test-uninstall-rpm
286 # Test latest Oxygen snapshot
288 properties-content: 'STREAM=oxygen'
289 - shell: !include-raw: build-rpm-snap.sh
290 - install-test-uninstall-rpm
295 server-name: '{gerrit-server-name}'
297 - comment-added-contains-event:
298 comment-contains-value: 'verify-rpm-full'
300 - project-compare-type: ANT
301 project-pattern: '{project}'
303 - branch-compare-type: ANT
304 branch-pattern: '**/{branch}'
311 name: 'packaging-test-rpm-master'
313 node: centos7-builder-2c-8g
316 - opendaylight-infra-parameters:
317 os-cloud: '{os-cloud}'
320 refspec: 'refs/heads/{branch}'
321 artifacts: '{archive-artifacts}'
324 # yamllint disable-line rule:line-length
325 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
326 description: 'Link to .repo or .rpm file'
329 - integration-gerrit-scm:
331 refspec: '$GERRIT_REFSPEC'
335 - opendaylight-infra-wrappers:
336 build-timeout: '{build-timeout}'
340 # Install expect to interact with Karaf shell
341 # Install nmap to check status of ODL's SSH port
342 sudo yum install -y expect nmap
343 - shell: !include-raw-escape: install-rpm.sh
344 - shell: !include-raw: start-odl.sh
345 - shell: !include-raw-escape: test-ports-nofeature.sh
346 - shell: !include-raw: test-karaf-oxygensafe.expect
347 # Disable this test until ODLPARENT-139 is fixed
348 # - shell: !include-raw-escape: test-rest-ok.sh
349 - shell: !include-raw: stop-odl.sh
350 - shell: !include-raw: uninstall-rpm.sh
353 # TODO: Remove the archive publisher
354 # small data should be stored on logs.opendaylight.org
355 # large data should be stored on nexus.opendaylight.org
365 name: 'packaging-test-rpm-upgrade-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://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
380 description: 'Link to .repo or .rpm file'
383 # yamllint disable-line rule:line-length
384 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
385 description: 'Link to .repo or .rpm file'
388 - integration-gerrit-scm:
390 refspec: '$GERRIT_REFSPEC'
394 - opendaylight-infra-wrappers:
395 build-timeout: '{build-timeout}'
398 - shell: !include-raw-escape: install-rpm.sh
399 - shell: !include-raw: start-odl.sh
401 # Install expect to interact with Karaf shell
402 sudo yum install -y expect
403 # Install nmap to check status of ODL's SSH port
404 sudo yum install -y nmap
405 - shell: !include-raw: test-karaf-oxygensafe.expect
406 - shell: !include-raw: stop-odl.sh
407 - shell: !include-raw: test-rpm-upgrade.sh
408 - shell: !include-raw: start-odl.sh
409 - shell: !include-raw: test-karaf-oxygensafe.expect
410 - shell: !include-raw: stop-odl.sh
411 - shell: !include-raw: uninstall-rpm.sh
418 name: 'packaging-test-deb-master'
420 node: ubuntu1604-mininet-ovs-25-1c-4g
423 - opendaylight-infra-parameters:
424 os-cloud: '{os-cloud}'
427 refspec: 'refs/heads/{branch}'
428 artifacts: '{archive-artifacts}'
431 default: 'ppa:odl-team/oxygen'
432 description: 'Link to .deb package or name of PPA repo'
435 - integration-gerrit-scm:
437 refspec: '$GERRIT_REFSPEC'
441 - opendaylight-infra-wrappers:
442 build-timeout: '{build-timeout}'
445 - shell: !include-raw-escape: install-deb.sh
446 - shell: !include-raw: start-odl.sh
447 - shell: !include-raw-escape: test-ports-nofeature.sh
449 # Install expect to interact with Karaf shell
450 # Install nmap to check status of ODL's SSH port
451 sudo apt-get install -y expect nmap
452 - shell: !include-raw: test-karaf-oxygensafe.expect
453 # Disable this test until ODLPARENT-139 is fixed
454 # - shell: !include-raw-escape: test-rest-ok.sh
455 - shell: !include-raw: stop-odl.sh
456 - shell: !include-raw-escape: uninstall-deb.sh
463 name: 'packaging-build-deb-{stream}'
465 node: ubuntu1604-mininet-ovs-25-1c-4g
467 project-type: freestyle
474 - opendaylight-infra-properties:
475 build-days-to-keep: 7
478 - opendaylight-infra-parameters:
479 os-cloud: '{os-cloud}'
482 refspec: 'refs/heads/{branch}'
483 artifacts: '{archive-artifacts}'
484 - lf-infra-maven-parameters:
485 mvn-opts: '{mvn-opts}'
486 mvn-params: '{mvn-params}'
487 mvn-version: '{mvn-version}'
488 staging-profile-id: ''
491 # FIXME: Update the default value to an active stream.
492 # yamllint disable-line rule:line-length
493 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'
494 description: 'URL to ODL tarball artifact to repackage into .deb'
498 description: 'Name of person who defined .deb'
500 name: CHANGELOG_EMAIL
501 default: 'jenkins-donotreply@opendaylight.org'
502 description: 'Email of person who defined .deb'
505 - integration-gerrit-scm:
507 refspec: '$GERRIT_REFSPEC'
511 - opendaylight-infra-wrappers:
512 build-timeout: '{build-timeout}'
515 - shell: !include-raw: build-deb.sh
516 - install-test-uninstall-deb
517 - lf-infra-deploy-maven-file:
518 global-settings-file: 'global-settings'
519 settings-file: 'packaging-settings'
520 mvn-version: '{mvn-version}'
521 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
522 group-id: '{group-id}'
523 upload-files-dir: '{upload-files-dir}'
524 maven-repo-url: '{maven-repo-url}'