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
201 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
203 # yamllint disable-line rule:line-length
204 # 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'
205 # - shell: !include-raw-escape: build-rpm.sh
206 # - install-test-uninstall-rpm
208 # Test Oxygen multipatch zip (no parallel tarball available)
209 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
211 # yamllint disable-line rule:line-length
212 # 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'
213 # - shell: !include-raw-escape: build-rpm.sh
214 # - install-test-uninstall-rpm
216 # Test latest Oxygen snapshot
217 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
219 # properties-content: 'STREAM=oxygen'
220 # - shell: !include-raw: build-rpm-snap.sh
221 # - install-test-uninstall-rpm
225 server-name: '{gerrit-server-name}'
227 - project-compare-type: ANT
228 project-pattern: '{project}'
230 - branch-compare-type: ANT
231 branch-pattern: '**/{branch}'
234 pattern: 'packages/**'
241 name: 'packaging-verify-full-rpm-master'
243 node: centos7-builder-2c-8g
245 project-type: freestyle
248 - opendaylight-infra-parameters:
249 os-cloud: '{os-cloud}'
252 refspec: 'refs/heads/{branch}'
253 artifacts: '{archive-artifacts}'
256 - integration-gerrit-scm:
258 refspec: '$GERRIT_REFSPEC'
262 - opendaylight-infra-wrappers:
263 build-timeout: '{build-timeout}'
266 # Test Carbon SR2 tarball
268 # yamllint disable-line rule:line-length
269 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'
270 - shell: !include-raw-escape: build-rpm.sh
271 - install-test-uninstall-rpm
273 # Test Carbon multipatch zip (no parallel tarball available)
274 # NB: This will need to be updated as old builds expire
276 # yamllint disable-line rule:line-length
277 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'
278 - shell: !include-raw-escape: build-rpm.sh
279 - install-test-uninstall-rpm
281 # Test latest Carbon snapshot
283 properties-content: 'STREAM=carbon'
284 - shell: !include-raw: build-rpm-snap.sh
285 - install-test-uninstall-rpm
287 # Test Nitrogen tarball
289 # yamllint disable-line rule:line-length
290 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'
291 - shell: !include-raw-escape: build-rpm.sh
292 - install-test-uninstall-rpm
294 # Test Nitrogen SR1 tarball
296 # yamllint disable-line rule:line-length
297 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'
298 - shell: !include-raw-escape: build-rpm.sh
299 - install-test-uninstall-rpm
301 # Test Nitrogen multipatch zip (no parallel tarball available)
302 # NB: This will need to be updated as old builds expire
304 # yamllint disable-line rule:line-length
305 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'
306 - shell: !include-raw-escape: build-rpm.sh
307 - install-test-uninstall-rpm
309 # Test latest Nitrogen snapshot
311 properties-content: 'STREAM=nitrogen'
312 - shell: !include-raw: build-rpm-snap.sh
313 - install-test-uninstall-rpm
315 # Test Oxygen pre-release autorelease tarball
316 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
317 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
318 # NB: This will need to be updated as old builds expire
320 # yamllint disable-line rule:line-length
321 # 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'
322 # - shell: !include-raw-escape: build-rpm.sh
323 # - install-test-uninstall-rpm
325 # Test Oxygen multipatch zip (no parallel tarball available)
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/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.0-SNAPSHOT/karaf-0.8.0-20180204.191936-134.zip'
331 # - shell: !include-raw: build-rpm.sh
332 # - install-test-uninstall-rpm
334 # Test latest Oxygen snapshot
335 # FIXME: Oxygen tests fail due to jira.opendaylight.org/browse/ODLPARENT-139
336 # NB: Leaving this one known-failing Oxygen test running so can watch for fix
338 properties-content: 'STREAM=oxygen'
339 - shell: !include-raw: build-rpm-snap.sh
340 - install-test-uninstall-rpm
345 server-name: '{gerrit-server-name}'
347 - comment-added-contains-event:
348 comment-contains-value: 'verify-rpm-full'
350 - project-compare-type: ANT
351 project-pattern: '{project}'
353 - branch-compare-type: ANT
354 branch-pattern: '**/{branch}'
361 name: 'packaging-test-rpm-master'
363 node: centos7-builder-2c-8g
366 - opendaylight-infra-parameters:
367 os-cloud: '{os-cloud}'
370 refspec: 'refs/heads/{branch}'
371 artifacts: '{archive-artifacts}'
374 # yamllint disable-line rule:line-length
375 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
376 description: 'Link to .repo or .rpm file'
379 - integration-gerrit-scm:
381 refspec: '$GERRIT_REFSPEC'
385 - opendaylight-infra-wrappers:
386 build-timeout: '{build-timeout}'
389 - shell: !include-raw-escape: install-rpm.sh
390 - shell: !include-raw: start-odl.sh
392 # Install expect to interact with Karaf shell
393 # Install nmap to check status of ODL's SSH port
394 sudo yum install -y expect nmap
395 - shell: !include-raw: test-karaf.expect
396 - shell: !include-raw-escape: test-rest-ok.sh
397 - shell: !include-raw: stop-odl.sh
398 - shell: !include-raw: uninstall-rpm.sh
401 # TODO: Remove the archive publisher
402 # small data should be stored on logs.opendaylight.org
403 # large data should be stored on nexus.opendaylight.org
413 name: 'packaging-test-rpm-upgrade-master'
415 node: centos7-builder-2c-8g
418 - opendaylight-infra-parameters:
419 os-cloud: '{os-cloud}'
422 refspec: 'refs/heads/{branch}'
423 artifacts: '{archive-artifacts}'
426 # yamllint disable-line rule:line-length
427 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
428 description: 'Link to .repo or .rpm file'
431 # yamllint disable-line rule:line-length
432 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
433 description: 'Link to .repo or .rpm file'
436 - integration-gerrit-scm:
438 refspec: '$GERRIT_REFSPEC'
442 - opendaylight-infra-wrappers:
443 build-timeout: '{build-timeout}'
446 - shell: !include-raw-escape: install-rpm.sh
447 - shell: !include-raw: start-odl.sh
449 # Install expect to interact with Karaf shell
450 sudo yum install -y expect
451 # Install nmap to check status of ODL's SSH port
452 sudo yum install -y nmap
453 - shell: !include-raw: test-karaf.expect
454 - shell: !include-raw: stop-odl.sh
455 - shell: !include-raw: test-rpm-upgrade.sh
456 - shell: !include-raw: start-odl.sh
457 - shell: !include-raw: test-karaf.expect
458 - shell: !include-raw: stop-odl.sh
459 - shell: !include-raw: uninstall-rpm.sh
466 name: 'packaging-test-deb-master'
468 node: ubuntu1604-mininet-ovs-25-1c-4g
471 - opendaylight-infra-parameters:
472 os-cloud: '{os-cloud}'
475 refspec: 'refs/heads/{branch}'
476 artifacts: '{archive-artifacts}'
479 default: 'ppa:odl-team/carbon'
480 description: 'Link to .deb package or name of PPA repo'
483 - integration-gerrit-scm:
485 refspec: '$GERRIT_REFSPEC'
489 - opendaylight-infra-wrappers:
490 build-timeout: '{build-timeout}'
493 - shell: !include-raw: install-deb.sh
494 - shell: !include-raw: start-odl.sh
496 # Install expect to interact with Karaf shell
497 sudo apt-get install -y expect
498 # Install nmap to check status of ODL's SSH port
499 sudo apt-get install -y nmap
500 - shell: !include-raw: test-karaf.expect
501 - shell: !include-raw: stop-odl.sh
508 name: 'packaging-build-deb-{stream}'
510 node: ubuntu1604-mininet-ovs-25-1c-4g
512 project-type: freestyle
519 - opendaylight-infra-properties:
520 build-days-to-keep: 7
523 - opendaylight-infra-parameters:
524 os-cloud: '{os-cloud}'
527 refspec: 'refs/heads/{branch}'
528 artifacts: '{archive-artifacts}'
529 - lf-infra-maven-parameters:
530 mvn-opts: '{mvn-opts}'
531 mvn-params: '{mvn-params}'
532 mvn-version: '{mvn-version}'
533 staging-profile-id: ''
536 # FIXME: Update the default value to an active stream.
537 # yamllint disable-line rule:line-length
538 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'
539 description: 'URL to ODL tarball artifact to repackage into .deb'
543 description: 'Name of person who defined .deb'
545 name: CHANGELOG_EMAIL
546 default: 'jenkins-donotreply@opendaylight.org'
547 description: 'Email of person who defined .deb'
550 - integration-gerrit-scm:
552 refspec: '$GERRIT_REFSPEC'
556 - opendaylight-infra-wrappers:
557 build-timeout: '{build-timeout}'
560 - shell: !include-raw: build-deb.sh
561 - lf-infra-deploy-maven-file:
562 global-settings-file: 'global-settings'
563 settings-file: 'packaging-settings'
564 mvn-version: '{mvn-version}'
565 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
566 group-id: '{group-id}'
567 upload-files-dir: '{upload-files-dir}'
568 maven-repo-url: '{maven-repo-url}'