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 # TODO: Install/test each RPM? Will require builder script changes.
193 # Test Nitrogen tarball
195 # yamllint disable-line rule:line-length
196 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'
197 - shell: !include-raw-escape: build-rpm.sh
199 # Test Oxygen pre-release autorelease tarball
201 # yamllint disable-line rule:line-length
202 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'
203 - shell: !include-raw-escape: build-rpm.sh
205 # Test Oxygen multipatch zip (no parallel tarball available)
207 # yamllint disable-line rule:line-length
208 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-20171128.175421-68.zip'
209 - shell: !include-raw-escape: build-rpm.sh
211 # Test latest Oxygen snapshot
213 properties-content: 'STREAM=oxygen'
214 - shell: !include-raw: build-rpm-snap.sh
218 server-name: '{gerrit-server-name}'
220 - project-compare-type: ANT
221 project-pattern: '{project}'
223 - branch-compare-type: ANT
224 branch-pattern: '**/{branch}'
227 pattern: 'packages/**'
234 name: 'packaging-verify-full-rpm-master'
236 node: centos7-builder-2c-8g
238 project-type: freestyle
241 - opendaylight-infra-parameters:
242 os-cloud: '{os-cloud}'
245 refspec: 'refs/heads/{branch}'
246 artifacts: '{archive-artifacts}'
249 - integration-gerrit-scm:
251 refspec: '$GERRIT_REFSPEC'
255 - opendaylight-infra-wrappers:
256 build-timeout: '{build-timeout}'
259 # Test Carbon SR2 tarball
261 # yamllint disable-line rule:line-length
262 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'
263 - shell: !include-raw-escape: build-rpm.sh
264 - install-test-uninstall-rpm
266 # Test Carbon multipatch zip (no parallel tarball available)
267 # NB: This will need to be updated as old builds expire
269 # yamllint disable-line rule:line-length
270 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'
271 - shell: !include-raw-escape: build-rpm.sh
272 - install-test-uninstall-rpm
274 # Test latest Carbon snapshot
276 properties-content: 'STREAM=carbon'
277 - shell: !include-raw: build-rpm-snap.sh
278 - install-test-uninstall-rpm
280 # Test Nitrogen tarball
282 # yamllint disable-line rule:line-length
283 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'
284 - shell: !include-raw-escape: build-rpm.sh
285 - install-test-uninstall-rpm
287 # Test Nitrogen SR1 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.1/karaf-0.7.1.tar.gz'
291 - shell: !include-raw-escape: build-rpm.sh
292 - install-test-uninstall-rpm
294 # Test Nitrogen multipatch zip (no parallel tarball available)
295 # NB: This will need to be updated as old builds expire
297 # yamllint disable-line rule:line-length
298 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'
299 - shell: !include-raw-escape: build-rpm.sh
300 - install-test-uninstall-rpm
302 # Test latest Nitrogen snapshot
304 properties-content: 'STREAM=nitrogen'
305 - shell: !include-raw: build-rpm-snap.sh
306 - install-test-uninstall-rpm
308 # Test Oxygen pre-release autorelease tarball
309 # NB: This will need to be updated as old builds expire
311 # yamllint disable-line rule:line-length
312 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'
313 - shell: !include-raw-escape: build-rpm.sh
314 - install-test-uninstall-rpm
316 # Test Oxygen multipatch zip (no parallel tarball available)
317 # FIXME: Something is wrong with current Oxygen multipatch builds
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/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.8.0-SNAPSHOT/karaf-0.8.0-20180111.030942-90.zip'
322 # - shell: !include-raw: build-rpm.sh
323 # - install-test-uninstall-rpm
325 # Test latest Oxygen snapshot
327 properties-content: 'STREAM=oxygen'
328 - shell: !include-raw: build-rpm-snap.sh
329 - install-test-uninstall-rpm
334 server-name: '{gerrit-server-name}'
336 - comment-added-contains-event:
337 comment-contains-value: 'verify-rpm-full'
339 - project-compare-type: ANT
340 project-pattern: '{project}'
342 - branch-compare-type: ANT
343 branch-pattern: '**/{branch}'
350 name: 'packaging-test-rpm-master'
352 node: centos7-builder-2c-8g
355 - opendaylight-infra-parameters:
356 os-cloud: '{os-cloud}'
359 refspec: 'refs/heads/{branch}'
360 artifacts: '{archive-artifacts}'
363 # yamllint disable-line rule:line-length
364 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
365 description: 'Link to .repo or .rpm file'
368 - integration-gerrit-scm:
370 refspec: '$GERRIT_REFSPEC'
374 - opendaylight-infra-wrappers:
375 build-timeout: '{build-timeout}'
378 - shell: !include-raw-escape: install-rpm.sh
379 - shell: !include-raw: start-odl.sh
381 # Install expect to interact with Karaf shell
382 # Install nmap to check status of ODL's SSH port
383 sudo yum install -y expect nmap
384 - shell: !include-raw: test-karaf.expect
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.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.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/carbon'
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: install-deb.sh
482 - shell: !include-raw: start-odl.sh
484 # Install expect to interact with Karaf shell
485 sudo apt-get install -y expect
486 # Install nmap to check status of ODL's SSH port
487 sudo apt-get install -y nmap
488 - shell: !include-raw: test-karaf.expect
489 - shell: !include-raw: stop-odl.sh
496 name: 'packaging-build-deb-{stream}'
498 node: ubuntu1604-mininet-ovs-25-1c-4g
500 project-type: freestyle
507 - opendaylight-infra-properties:
508 build-days-to-keep: 7
511 - opendaylight-infra-parameters:
512 os-cloud: '{os-cloud}'
515 refspec: 'refs/heads/{branch}'
516 artifacts: '{archive-artifacts}'
517 - lf-infra-maven-parameters:
518 mvn-opts: '{mvn-opts}'
519 mvn-params: '{mvn-params}'
520 mvn-version: '{mvn-version}'
521 staging-profile-id: ''
524 # FIXME: Update the default value to an active stream.
525 # yamllint disable-line rule:line-length
526 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'
527 description: 'URL to ODL tarball artifact to repackage into .deb'
531 description: 'Name of person who defined .deb'
533 name: CHANGELOG_EMAIL
534 default: 'jenkins-donotreply@opendaylight.org'
535 description: 'Email of person who defined .deb'
538 - integration-gerrit-scm:
540 refspec: '$GERRIT_REFSPEC'
544 - opendaylight-infra-wrappers:
545 build-timeout: '{build-timeout}'
548 - shell: !include-raw: build-deb.sh
549 - lf-infra-deploy-maven-file:
550 global-settings-file: 'global-settings'
551 settings-file: 'packaging-settings'
552 mvn-version: '{mvn-version}'
553 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
554 group-id: '{group-id}'
555 upload-files-dir: '{upload-files-dir}'
556 maven-repo-url: '{maven-repo-url}'