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'
36 # common parameters required for 'lf-infra-deploy-maven-file' builder
37 group-id: 'org.opendaylight.integration-packaging'
38 upload-files-dir: '$WORKSPACE/upload_files'
39 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
42 name: 'packaging-build-rpm-{stream}'
44 node: centos7-builder-2c-8g
46 project-type: freestyle
53 - opendaylight-infra-properties:
57 - opendaylight-infra-parameters:
58 os-cloud: '{os-cloud}'
61 refspec: 'refs/heads/{branch}'
62 artifacts: '{archive-artifacts}'
63 - lf-infra-maven-parameters:
64 mvn-opts: '{mvn-opts}'
65 mvn-params: '{mvn-params}'
66 mvn-version: '{mvn-version}'
67 staging-profile-id: ''
70 # yamllint disable-line rule:line-length
71 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
72 description: 'URL to ODL tarball artifact to repackage into RPM'
76 description: 'Name of person who defined RPM'
79 default: 'jenkins-donotreply@opendaylight.org'
80 description: 'Email of person who defined RPM'
83 - integration-gerrit-scm:
85 refspec: '$GERRIT_REFSPEC'
89 - opendaylight-infra-wrappers:
90 build-timeout: '{build-timeout}'
93 - shell: !include-raw-escape: build-rpm.sh
94 - install-test-uninstall-rpm
95 - lf-infra-deploy-maven-file:
96 global-settings-file: 'global-settings'
97 settings-file: 'packaging-settings'
98 mvn-version: '{mvn-version}'
99 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
100 group-id: '{group-id}'
101 upload-files-dir: '{upload-files-dir}'
102 maven-repo-url: '{maven-repo-url}'
109 name: 'packaging-build-rpm-{distro}-snap-{stream}'
111 node: centos7-docker-2c-8g
113 project-type: freestyle
120 - opendaylight-infra-properties:
121 build-days-to-keep: 7
124 - opendaylight-infra-parameters:
125 os-cloud: '{os-cloud}'
128 refspec: 'refs/heads/{branch}'
129 artifacts: '{archive-artifacts}'
130 - lf-infra-maven-parameters:
131 mvn-opts: '{mvn-opts}'
132 mvn-params: '{mvn-params}'
133 mvn-version: '{mvn-version}'
134 staging-profile-id: ''
138 description: 'Name of person who defined RPM'
140 name: CHANGELOG_EMAIL
141 default: 'jenkins-donotreply@opendaylight.org'
142 description: 'Email of person who defined RPM'
145 - integration-gerrit-scm:
147 refspec: '$GERRIT_REFSPEC'
151 - opendaylight-infra-wrappers:
152 build-timeout: '{build-timeout}'
156 properties-content: |
159 - shell: !include-raw: build-rpm-snap-docker.sh
160 - shell: !include-raw: test-rpm-docker.sh
161 - lf-infra-deploy-maven-file:
162 global-settings-file: 'global-settings'
163 settings-file: 'packaging-settings'
164 mvn-version: '{mvn-version}'
165 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
166 group-id: '{group-id}'
167 upload-files-dir: '{upload-files-dir}'
168 maven-repo-url: '{maven-repo-url}'
178 name: 'packaging-verify-rpm-master'
180 node: centos7-builder-2c-8g
182 project-type: freestyle
185 - opendaylight-infra-parameters:
186 os-cloud: '{os-cloud}'
189 refspec: 'refs/heads/{branch}'
190 artifacts: '{archive-artifacts}'
193 - integration-gerrit-scm:
195 refspec: '$GERRIT_REFSPEC'
199 - opendaylight-infra-wrappers:
200 build-timeout: '{build-timeout}'
203 # Test Nitrogen tarball
205 # yamllint disable-line rule:line-length
206 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'
207 - shell: !include-raw-escape: build-rpm.sh
208 - install-test-uninstall-rpm
210 # Test Oxygen pre-release autorelease tarball
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/autorelease-2131/org/opendaylight/integration/karaf/0.8.1/karaf-0.8.1.tar.gz'
215 - shell: !include-raw-escape: build-rpm.sh
216 - install-test-uninstall-rpm
218 # Test Oxygen multipatch zip (no parallel tarball available)
219 # NB: This will need to be updated as old builds expire
221 # yamllint disable-line rule:line-length
222 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'
223 - shell: !include-raw-escape: build-rpm.sh
224 - install-test-uninstall-rpm
226 # Test latest Oxygen snapshot
228 properties-content: 'STREAM=oxygen'
229 - shell: !include-raw: build-rpm-snap.sh
230 - install-test-uninstall-rpm
234 server-name: '{gerrit-server-name}'
236 - comment-added-contains-event:
237 comment-contains-value: 'rpm-verify'
239 - project-compare-type: ANT
240 project-pattern: '{project}'
242 - branch-compare-type: ANT
243 branch-pattern: '**/{branch}'
246 pattern: 'packages/**'
253 name: 'packaging-verify-full-rpm-master'
255 node: centos7-builder-2c-8g
257 project-type: freestyle
260 - opendaylight-infra-parameters:
261 os-cloud: '{os-cloud}'
264 refspec: 'refs/heads/{branch}'
265 artifacts: '{archive-artifacts}'
268 - integration-gerrit-scm:
270 refspec: '$GERRIT_REFSPEC'
274 - opendaylight-infra-wrappers:
275 build-timeout: '{build-timeout}'
278 # Test Nitrogen tarball
280 # yamllint disable-line rule:line-length
281 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'
282 - shell: !include-raw-escape: build-rpm.sh
283 - install-test-uninstall-rpm
285 # Test Nitrogen SR1 tarball
287 # yamllint disable-line rule:line-length
288 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'
289 - shell: !include-raw-escape: build-rpm.sh
290 - install-test-uninstall-rpm
292 # Test Nitrogen 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.7.3-SNAPSHOT/karaf-0.7.3-20180408.214158-1.zip'
297 - shell: !include-raw-escape: build-rpm.sh
298 - install-test-uninstall-rpm
300 # Test latest Nitrogen snapshot
302 properties-content: 'STREAM=nitrogen'
303 - shell: !include-raw: build-rpm-snap.sh
304 - install-test-uninstall-rpm
306 # Test Oxygen 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-2131/org/opendaylight/integration/karaf/0.8.1/karaf-0.8.1.tar.gz'
311 - shell: !include-raw-escape: build-rpm.sh
312 - install-test-uninstall-rpm
314 # Test Oxygen 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.8.1-SNAPSHOT/karaf-0.8.1-20180417.030111-15.zip'
319 - shell: !include-raw-escape: build-rpm.sh
320 - install-test-uninstall-rpm
322 # Test latest Oxygen snapshot
324 properties-content: 'STREAM=oxygen'
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/nitrogen'
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}'