4 project-name: packaging
7 - 'packaging-build-rpm-{stream}'
8 - 'packaging-build-rpm-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'
27 # common parameters required for 'lf-infra-deploy-maven-file' builder
28 group-id: 'org.opendaylight.integration-packaging'
29 upload-files-dir: '$WORKSPACE/upload_files'
30 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
33 name: 'packaging-build-rpm-{stream}'
35 node: centos7-builder-2c-8g
37 project-type: freestyle
44 - opendaylight-infra-properties:
48 - opendaylight-infra-parameters:
49 os-cloud: '{os-cloud}'
52 refspec: 'refs/heads/{branch}'
53 artifacts: '{archive-artifacts}'
54 - lf-infra-maven-parameters:
55 mvn-opts: '{mvn-opts}'
56 mvn-params: '{mvn-params}'
57 mvn-version: '{mvn-version}'
58 staging-profile-id: ''
61 # yamllint disable-line rule:line-length
62 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
63 description: 'URL to ODL tarball artifact to repackage into RPM'
67 description: 'Name of person who defined RPM'
70 default: 'jenkins-donotreply@opendaylight.org'
71 description: 'Email of person who defined RPM'
74 - integration-gerrit-scm:
76 refspec: '$GERRIT_REFSPEC'
80 - opendaylight-infra-wrappers:
81 build-timeout: '{build-timeout}'
84 - shell: !include-raw-escape: build-rpm.sh
85 - install-test-uninstall-rpm
86 - lf-infra-deploy-maven-file:
87 global-settings-file: 'global-settings'
88 settings-file: 'packaging-settings'
89 mvn-version: '{mvn-version}'
90 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
91 group-id: '{group-id}'
92 upload-files-dir: '{upload-files-dir}'
93 maven-repo-url: '{maven-repo-url}'
100 name: 'packaging-build-rpm-snap-{stream}'
102 node: centos7-builder-2c-8g
104 project-type: freestyle
111 - opendaylight-infra-properties:
112 build-days-to-keep: 7
115 - opendaylight-infra-parameters:
116 os-cloud: '{os-cloud}'
119 refspec: 'refs/heads/{branch}'
120 artifacts: '{archive-artifacts}'
121 - lf-infra-maven-parameters:
122 mvn-opts: '{mvn-opts}'
123 mvn-params: '{mvn-params}'
124 mvn-version: '{mvn-version}'
125 staging-profile-id: ''
129 description: 'Name of person who defined RPM'
131 name: CHANGELOG_EMAIL
132 default: 'jenkins-donotreply@opendaylight.org'
133 description: 'Email of person who defined RPM'
136 - integration-gerrit-scm:
138 refspec: '$GERRIT_REFSPEC'
142 - opendaylight-infra-wrappers:
143 build-timeout: '{build-timeout}'
147 properties-content: 'STREAM={stream}'
148 - shell: !include-raw: build-rpm-snap.sh
149 - install-test-uninstall-rpm
150 - lf-infra-deploy-maven-file:
151 global-settings-file: 'global-settings'
152 settings-file: 'packaging-settings'
153 mvn-version: '{mvn-version}'
154 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
155 group-id: '{group-id}'
156 upload-files-dir: '{upload-files-dir}'
157 maven-repo-url: '{maven-repo-url}'
167 name: 'packaging-verify-rpm-master'
169 node: centos7-builder-2c-8g
171 project-type: freestyle
174 - opendaylight-infra-parameters:
175 os-cloud: '{os-cloud}'
178 refspec: 'refs/heads/{branch}'
179 artifacts: '{archive-artifacts}'
182 - integration-gerrit-scm:
184 refspec: '$GERRIT_REFSPEC'
188 - opendaylight-infra-wrappers:
189 build-timeout: '{build-timeout}'
192 # Test Nitrogen tarball
194 # yamllint disable-line rule:line-length
195 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'
196 - shell: !include-raw-escape: build-rpm.sh
197 - install-test-uninstall-rpm
199 # Test Oxygen pre-release autorelease tarball
200 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
202 # yamllint disable-line rule:line-length
203 # 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'
204 # - shell: !include-raw-escape: build-rpm.sh
205 # - install-test-uninstall-rpm
207 # Test Oxygen multipatch zip (no parallel tarball available)
209 # yamllint disable-line rule:line-length
210 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'
211 - shell: !include-raw-escape: build-rpm.sh
212 - install-test-uninstall-rpm
214 # Test latest Oxygen snapshot
216 properties-content: 'STREAM=oxygen'
217 - shell: !include-raw: build-rpm-snap.sh
218 - install-test-uninstall-rpm
222 server-name: '{gerrit-server-name}'
224 - project-compare-type: ANT
225 project-pattern: '{project}'
227 - branch-compare-type: ANT
228 branch-pattern: '**/{branch}'
231 pattern: 'packages/**'
238 name: 'packaging-verify-full-rpm-master'
240 node: centos7-builder-2c-8g
242 project-type: freestyle
245 - opendaylight-infra-parameters:
246 os-cloud: '{os-cloud}'
249 refspec: 'refs/heads/{branch}'
250 artifacts: '{archive-artifacts}'
253 - integration-gerrit-scm:
255 refspec: '$GERRIT_REFSPEC'
259 - opendaylight-infra-wrappers:
260 build-timeout: '{build-timeout}'
263 # Test Carbon SR2 tarball
265 # yamllint disable-line rule:line-length
266 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'
267 - shell: !include-raw-escape: build-rpm.sh
268 - install-test-uninstall-rpm
270 # Test Carbon multipatch zip (no parallel tarball available)
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/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/distribution-karaf/0.6.3-SNAPSHOT/distribution-karaf-0.6.3-20180115.181738-1.zip'
275 - shell: !include-raw-escape: build-rpm.sh
276 - install-test-uninstall-rpm
278 # Test latest Carbon snapshot
280 properties-content: 'STREAM=carbon'
281 - shell: !include-raw: build-rpm-snap.sh
282 - install-test-uninstall-rpm
284 # Test Nitrogen tarball
286 # yamllint disable-line rule:line-length
287 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'
288 - shell: !include-raw-escape: build-rpm.sh
289 - install-test-uninstall-rpm
291 # Test Nitrogen SR1 tarball
293 # yamllint disable-line rule:line-length
294 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'
295 - shell: !include-raw-escape: build-rpm.sh
296 - install-test-uninstall-rpm
298 # Test Nitrogen 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.7.2-SNAPSHOT/karaf-0.7.2-20180115.183312-2.zip'
303 - shell: !include-raw-escape: build-rpm.sh
304 - install-test-uninstall-rpm
306 # Test latest Nitrogen snapshot
308 properties-content: 'STREAM=nitrogen'
309 - shell: !include-raw: build-rpm-snap.sh
310 - install-test-uninstall-rpm
312 # Test Oxygen pre-release autorelease tarball
313 # NB: This will need to be updated as old builds expire
314 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
316 # yamllint disable-line rule:line-length
317 # 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'
318 # - shell: !include-raw-escape: build-rpm.sh
319 # - install-test-uninstall-rpm
321 # Test Oxygen multipatch zip (no parallel tarball available)
322 # FIXME: Something is wrong with current Oxygen multipatch builds
323 # NB: This will need to be updated as old builds expire
325 # yamllint disable-line rule:line-length
326 # 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'
327 # - shell: !include-raw: build-rpm.sh
328 # - install-test-uninstall-rpm
330 # Test latest Oxygen snapshot
332 properties-content: 'STREAM=oxygen'
333 - shell: !include-raw: build-rpm-snap.sh
334 - install-test-uninstall-rpm
339 server-name: '{gerrit-server-name}'
341 - comment-added-contains-event:
342 comment-contains-value: 'verify-rpm-full'
344 - project-compare-type: ANT
345 project-pattern: '{project}'
347 - branch-compare-type: ANT
348 branch-pattern: '**/{branch}'
355 name: 'packaging-test-rpm-master'
357 node: centos7-builder-2c-8g
360 - opendaylight-infra-parameters:
361 os-cloud: '{os-cloud}'
364 refspec: 'refs/heads/{branch}'
365 artifacts: '{archive-artifacts}'
368 # yamllint disable-line rule:line-length
369 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
370 description: 'Link to .repo or .rpm file'
373 - integration-gerrit-scm:
375 refspec: '$GERRIT_REFSPEC'
379 - opendaylight-infra-wrappers:
380 build-timeout: '{build-timeout}'
383 - shell: !include-raw-escape: install-rpm.sh
384 - shell: !include-raw: start-odl.sh
386 # Install expect to interact with Karaf shell
387 # Install nmap to check status of ODL's SSH port
388 sudo yum install -y expect nmap
389 - shell: !include-raw: test-karaf.expect
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-7-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-7-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.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.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/carbon'
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: install-deb.sh
488 - shell: !include-raw: start-odl.sh
490 # Install expect to interact with Karaf shell
491 sudo apt-get install -y expect
492 # Install nmap to check status of ODL's SSH port
493 sudo apt-get install -y nmap
494 - shell: !include-raw: test-karaf.expect
495 - shell: !include-raw: stop-odl.sh
502 name: 'packaging-build-deb-{stream}'
504 node: ubuntu1604-mininet-ovs-25-1c-4g
506 project-type: freestyle
513 - opendaylight-infra-properties:
514 build-days-to-keep: 7
517 - opendaylight-infra-parameters:
518 os-cloud: '{os-cloud}'
521 refspec: 'refs/heads/{branch}'
522 artifacts: '{archive-artifacts}'
523 - lf-infra-maven-parameters:
524 mvn-opts: '{mvn-opts}'
525 mvn-params: '{mvn-params}'
526 mvn-version: '{mvn-version}'
527 staging-profile-id: ''
530 # FIXME: Update the default value to an active stream.
531 # yamllint disable-line rule:line-length
532 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'
533 description: 'URL to ODL tarball artifact to repackage into .deb'
537 description: 'Name of person who defined .deb'
539 name: CHANGELOG_EMAIL
540 default: 'jenkins-donotreply@opendaylight.org'
541 description: 'Email of person who defined .deb'
544 - integration-gerrit-scm:
546 refspec: '$GERRIT_REFSPEC'
550 - opendaylight-infra-wrappers:
551 build-timeout: '{build-timeout}'
554 - shell: !include-raw: build-deb.sh
555 - lf-infra-deploy-maven-file:
556 global-settings-file: 'global-settings'
557 settings-file: 'packaging-settings'
558 mvn-version: '{mvn-version}'
559 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
560 group-id: '{group-id}'
561 upload-files-dir: '{upload-files-dir}'
562 maven-repo-url: '{maven-repo-url}'