4 project-name: packaging
7 - 'packaging-build-rpm-{stream}'
8 - 'packaging-build-rpm-{distro}-snap-{stream}'
9 - 'packaging-build-deb-{stream}'
10 - 'packaging-verify-full-rpm-master'
11 - 'packaging-verify-rpm-master'
12 - 'packaging-test-rpm-master'
13 - 'packaging-test-rpm-upgrade-master'
14 - 'packaging-test-deb-master'
19 project: 'integration/packaging'
31 # common parameters required for 'lf-infra-deploy-maven-file' builder
32 group-id: 'org.opendaylight.integration-packaging'
33 upload-files-dir: '$WORKSPACE/upload_files'
34 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
37 name: 'packaging-build-rpm-{stream}'
39 node: centos7-builder-2c-8g
41 project-type: freestyle
48 - opendaylight-infra-properties:
52 - opendaylight-infra-parameters:
53 os-cloud: '{os-cloud}'
56 refspec: 'refs/heads/{branch}'
57 artifacts: '{archive-artifacts}'
58 - lf-infra-maven-parameters:
59 mvn-opts: '{mvn-opts}'
60 mvn-params: '{mvn-params}'
61 mvn-version: '{mvn-version}'
62 staging-profile-id: ''
65 # yamllint disable-line rule:line-length
66 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
67 description: 'URL to ODL tarball artifact to repackage into RPM'
71 description: 'Name of person who defined RPM'
74 default: 'jenkins-donotreply@opendaylight.org'
75 description: 'Email of person who defined RPM'
78 - integration-gerrit-scm:
80 refspec: '$GERRIT_REFSPEC'
84 - opendaylight-infra-wrappers:
85 build-timeout: '{build-timeout}'
88 - shell: !include-raw-escape: build-rpm.sh
89 - install-test-uninstall-rpm
90 - lf-infra-deploy-maven-file:
91 global-settings-file: 'global-settings'
92 settings-file: 'packaging-settings'
93 mvn-version: '{mvn-version}'
94 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
95 group-id: '{group-id}'
96 upload-files-dir: '{upload-files-dir}'
97 maven-repo-url: '{maven-repo-url}'
104 name: 'packaging-build-rpm-{distro}-snap-{stream}'
106 node: centos7-docker-2c-8g
108 project-type: freestyle
115 - opendaylight-infra-properties:
116 build-days-to-keep: 7
119 - opendaylight-infra-parameters:
120 os-cloud: '{os-cloud}'
123 refspec: 'refs/heads/{branch}'
124 artifacts: '{archive-artifacts}'
125 - lf-infra-maven-parameters:
126 mvn-opts: '{mvn-opts}'
127 mvn-params: '{mvn-params}'
128 mvn-version: '{mvn-version}'
129 staging-profile-id: ''
133 description: 'Name of person who defined RPM'
135 name: CHANGELOG_EMAIL
136 default: 'jenkins-donotreply@opendaylight.org'
137 description: 'Email of person who defined RPM'
140 - integration-gerrit-scm:
142 refspec: '$GERRIT_REFSPEC'
146 - opendaylight-infra-wrappers:
147 build-timeout: '{build-timeout}'
151 properties-content: |
154 - shell: !include-raw: build-rpm-snap-docker.sh
155 - shell: !include-raw: test-rpm-docker.sh
156 - lf-infra-deploy-maven-file:
157 global-settings-file: 'global-settings'
158 settings-file: 'packaging-settings'
159 mvn-version: '{mvn-version}'
160 repo-id: 'opendaylight-{stream}-{distro}-x86_64-devel'
161 group-id: '{group-id}'
162 upload-files-dir: '{upload-files-dir}'
163 maven-repo-url: '{maven-repo-url}'
173 name: 'packaging-verify-rpm-master'
175 node: centos7-builder-2c-8g
177 project-type: freestyle
180 - opendaylight-infra-parameters:
181 os-cloud: '{os-cloud}'
184 refspec: 'refs/heads/{branch}'
185 artifacts: '{archive-artifacts}'
188 - integration-gerrit-scm:
190 refspec: '$GERRIT_REFSPEC'
194 - opendaylight-infra-wrappers:
195 build-timeout: '{build-timeout}'
198 # Test Nitrogen tarball
200 # yamllint disable-line rule:line-length
201 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'
202 - shell: !include-raw-escape: build-rpm.sh
203 - install-test-uninstall-rpm
205 # Test Oxygen pre-release autorelease tarball
206 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
207 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
209 # yamllint disable-line rule:line-length
210 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2052/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
211 # - shell: !include-raw-escape: build-rpm.sh
212 # - install-test-uninstall-rpm
214 # Test Oxygen multipatch zip (no parallel tarball available)
215 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
217 # yamllint disable-line rule:line-length
218 # 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-20180204.191936-134.zip'
219 # - shell: !include-raw-escape: build-rpm.sh
220 # - install-test-uninstall-rpm
222 # Test latest Oxygen snapshot
223 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
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.3-SNAPSHOT/distribution-karaf-0.6.3-20180115.181738-1.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.2-SNAPSHOT/karaf-0.7.2-20180115.183312-2.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 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
326 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
327 # NB: This will need to be updated as old builds expire
329 # yamllint disable-line rule:line-length
330 # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2052/org/opendaylight/integration/karaf/0.8.0/karaf-0.8.0.tar.gz'
331 # - shell: !include-raw-escape: build-rpm.sh
332 # - install-test-uninstall-rpm
334 # Test Oxygen multipatch zip (no parallel tarball available)
335 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
336 # NB: This will need to be updated as old builds expire
338 # yamllint disable-line rule:line-length
339 # 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-20180204.191936-134.zip'
340 # - shell: !include-raw: build-rpm.sh
341 # - install-test-uninstall-rpm
343 # Test latest Oxygen snapshot
344 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
345 # NB: Leaving this one known-failing Oxygen test running so can watch for fix
347 properties-content: 'STREAM=oxygen'
348 - shell: !include-raw: build-rpm-snap.sh
349 - install-test-uninstall-rpm
354 server-name: '{gerrit-server-name}'
356 - comment-added-contains-event:
357 comment-contains-value: 'verify-rpm-full'
359 - project-compare-type: ANT
360 project-pattern: '{project}'
362 - branch-compare-type: ANT
363 branch-pattern: '**/{branch}'
370 name: 'packaging-test-rpm-master'
372 node: centos7-builder-2c-8g
375 - opendaylight-infra-parameters:
376 os-cloud: '{os-cloud}'
379 refspec: 'refs/heads/{branch}'
380 artifacts: '{archive-artifacts}'
383 # yamllint disable-line rule:line-length
384 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-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}'
399 # Install expect to interact with Karaf shell
400 # Install nmap to check status of ODL's SSH port
401 sudo yum install -y expect nmap
402 - shell: !include-raw-escape: install-rpm.sh
403 - shell: !include-raw: start-odl.sh
404 - shell: !include-raw-escape: test-ports-nofeature.sh
405 - shell: !include-raw: test-karaf-oxygensafe.expect
406 # Disable this test until ODLPARENT-139 is fixed
407 # - shell: !include-raw-escape: test-rest-ok.sh
408 - shell: !include-raw: stop-odl.sh
409 - shell: !include-raw: uninstall-rpm.sh
412 # TODO: Remove the archive publisher
413 # small data should be stored on logs.opendaylight.org
414 # large data should be stored on nexus.opendaylight.org
424 name: 'packaging-test-rpm-upgrade-master'
426 node: centos7-builder-2c-8g
429 - opendaylight-infra-parameters:
430 os-cloud: '{os-cloud}'
433 refspec: 'refs/heads/{branch}'
434 artifacts: '{archive-artifacts}'
437 # yamllint disable-line rule:line-length
438 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
439 description: 'Link to .repo or .rpm file'
442 # yamllint disable-line rule:line-length
443 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
444 description: 'Link to .repo or .rpm file'
447 - integration-gerrit-scm:
449 refspec: '$GERRIT_REFSPEC'
453 - opendaylight-infra-wrappers:
454 build-timeout: '{build-timeout}'
457 - shell: !include-raw-escape: install-rpm.sh
458 - shell: !include-raw: start-odl.sh
460 # Install expect to interact with Karaf shell
461 sudo yum install -y expect
462 # Install nmap to check status of ODL's SSH port
463 sudo yum install -y nmap
464 - shell: !include-raw: test-karaf-oxygensafe.expect
465 - shell: !include-raw: stop-odl.sh
466 - shell: !include-raw: test-rpm-upgrade.sh
467 - shell: !include-raw: start-odl.sh
468 - shell: !include-raw: test-karaf-oxygensafe.expect
469 - shell: !include-raw: stop-odl.sh
470 - shell: !include-raw: uninstall-rpm.sh
477 name: 'packaging-test-deb-master'
479 node: ubuntu1604-mininet-ovs-25-1c-4g
482 - opendaylight-infra-parameters:
483 os-cloud: '{os-cloud}'
486 refspec: 'refs/heads/{branch}'
487 artifacts: '{archive-artifacts}'
490 default: 'ppa:odl-team/carbon'
491 description: 'Link to .deb package or name of PPA repo'
494 - integration-gerrit-scm:
496 refspec: '$GERRIT_REFSPEC'
500 - opendaylight-infra-wrappers:
501 build-timeout: '{build-timeout}'
504 - shell: !include-raw: install-deb.sh
505 - shell: !include-raw: start-odl.sh
507 # Install expect to interact with Karaf shell
508 sudo apt-get install -y expect
509 # Install nmap to check status of ODL's SSH port
510 sudo apt-get install -y nmap
511 - shell: !include-raw: test-karaf-oxygensafe.expect
512 - shell: !include-raw: stop-odl.sh
519 name: 'packaging-build-deb-{stream}'
521 node: ubuntu1604-mininet-ovs-25-1c-4g
523 project-type: freestyle
530 - opendaylight-infra-properties:
531 build-days-to-keep: 7
534 - opendaylight-infra-parameters:
535 os-cloud: '{os-cloud}'
538 refspec: 'refs/heads/{branch}'
539 artifacts: '{archive-artifacts}'
540 - lf-infra-maven-parameters:
541 mvn-opts: '{mvn-opts}'
542 mvn-params: '{mvn-params}'
543 mvn-version: '{mvn-version}'
544 staging-profile-id: ''
547 # FIXME: Update the default value to an active stream.
548 # yamllint disable-line rule:line-length
549 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'
550 description: 'URL to ODL tarball artifact to repackage into .deb'
554 description: 'Name of person who defined .deb'
556 name: CHANGELOG_EMAIL
557 default: 'jenkins-donotreply@opendaylight.org'
558 description: 'Email of person who defined .deb'
561 - integration-gerrit-scm:
563 refspec: '$GERRIT_REFSPEC'
567 - opendaylight-infra-wrappers:
568 build-timeout: '{build-timeout}'
571 - shell: !include-raw: build-deb.sh
572 - lf-infra-deploy-maven-file:
573 global-settings-file: 'global-settings'
574 settings-file: 'packaging-settings'
575 mvn-version: '{mvn-version}'
576 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
577 group-id: '{group-id}'
578 upload-files-dir: '{upload-files-dir}'
579 maven-repo-url: '{maven-repo-url}'