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
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
206 # Test Oxygen multipatch zip (no parallel tarball available)
208 # yamllint disable-line rule:line-length
209 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'
210 - shell: !include-raw-escape: build-rpm.sh
212 # Test latest Oxygen snapshot
214 properties-content: 'STREAM=oxygen'
215 - shell: !include-raw: build-rpm-snap.sh
219 server-name: '{gerrit-server-name}'
221 - project-compare-type: ANT
222 project-pattern: '{project}'
224 - branch-compare-type: ANT
225 branch-pattern: '**/{branch}'
228 pattern: 'packages/**'
235 name: 'packaging-verify-full-rpm-master'
237 node: centos7-builder-2c-8g
239 project-type: freestyle
242 - opendaylight-infra-parameters:
243 os-cloud: '{os-cloud}'
246 refspec: 'refs/heads/{branch}'
247 artifacts: '{archive-artifacts}'
250 - integration-gerrit-scm:
252 refspec: '$GERRIT_REFSPEC'
256 - opendaylight-infra-wrappers:
257 build-timeout: '{build-timeout}'
260 # Test Carbon SR2 tarball
262 # yamllint disable-line rule:line-length
263 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'
264 - shell: !include-raw-escape: build-rpm.sh
265 - install-test-uninstall-rpm
267 # Test Carbon multipatch zip (no parallel tarball available)
268 # NB: This will need to be updated as old builds expire
270 # yamllint disable-line rule:line-length
271 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'
272 - shell: !include-raw-escape: build-rpm.sh
273 - install-test-uninstall-rpm
275 # Test latest Carbon snapshot
277 properties-content: 'STREAM=carbon'
278 - shell: !include-raw: build-rpm-snap.sh
279 - install-test-uninstall-rpm
281 # Test Nitrogen tarball
283 # yamllint disable-line rule:line-length
284 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'
285 - shell: !include-raw-escape: build-rpm.sh
286 - install-test-uninstall-rpm
288 # Test Nitrogen SR1 tarball
290 # yamllint disable-line rule:line-length
291 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'
292 - shell: !include-raw-escape: build-rpm.sh
293 - install-test-uninstall-rpm
295 # Test Nitrogen multipatch zip (no parallel tarball available)
296 # NB: This will need to be updated as old builds expire
298 # yamllint disable-line rule:line-length
299 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'
300 - shell: !include-raw-escape: build-rpm.sh
301 - install-test-uninstall-rpm
303 # Test latest Nitrogen snapshot
305 properties-content: 'STREAM=nitrogen'
306 - shell: !include-raw: build-rpm-snap.sh
307 - install-test-uninstall-rpm
309 # Test Oxygen pre-release autorelease tarball
310 # NB: This will need to be updated as old builds expire
311 # FIXME: There aren't any available Oxygen autorelease builds, add one once possible
313 # yamllint disable-line rule:line-length
314 # 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'
315 # - shell: !include-raw-escape: build-rpm.sh
316 # - install-test-uninstall-rpm
318 # Test Oxygen multipatch zip (no parallel tarball available)
319 # FIXME: Something is wrong with current Oxygen multipatch builds
320 # NB: This will need to be updated as old builds expire
322 # yamllint disable-line rule:line-length
323 # 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'
324 # - shell: !include-raw: build-rpm.sh
325 # - install-test-uninstall-rpm
327 # Test latest Oxygen snapshot
329 properties-content: 'STREAM=oxygen'
330 - shell: !include-raw: build-rpm-snap.sh
331 - install-test-uninstall-rpm
336 server-name: '{gerrit-server-name}'
338 - comment-added-contains-event:
339 comment-contains-value: 'verify-rpm-full'
341 - project-compare-type: ANT
342 project-pattern: '{project}'
344 - branch-compare-type: ANT
345 branch-pattern: '**/{branch}'
352 name: 'packaging-test-rpm-master'
354 node: centos7-builder-2c-8g
357 - opendaylight-infra-parameters:
358 os-cloud: '{os-cloud}'
361 refspec: 'refs/heads/{branch}'
362 artifacts: '{archive-artifacts}'
365 # yamllint disable-line rule:line-length
366 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo'
367 description: 'Link to .repo or .rpm file'
370 - integration-gerrit-scm:
372 refspec: '$GERRIT_REFSPEC'
376 - opendaylight-infra-wrappers:
377 build-timeout: '{build-timeout}'
380 - shell: !include-raw-escape: install-rpm.sh
381 - shell: !include-raw: start-odl.sh
383 # Install expect to interact with Karaf shell
384 # Install nmap to check status of ODL's SSH port
385 sudo yum install -y expect nmap
386 - shell: !include-raw: test-karaf.expect
387 - shell: !include-raw-escape: test-rest-ok.sh
388 - shell: !include-raw: stop-odl.sh
389 - shell: !include-raw: uninstall-rpm.sh
392 # TODO: Remove the archive publisher
393 # small data should be stored on logs.opendaylight.org
394 # large data should be stored on nexus.opendaylight.org
404 name: 'packaging-test-rpm-upgrade-master'
406 node: centos7-builder-2c-8g
409 - opendaylight-infra-parameters:
410 os-cloud: '{os-cloud}'
413 refspec: 'refs/heads/{branch}'
414 artifacts: '{archive-artifacts}'
417 # yamllint disable-line rule:line-length
418 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
419 description: 'Link to .repo or .rpm file'
422 # yamllint disable-line rule:line-length
423 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
424 description: 'Link to .repo or .rpm file'
427 - integration-gerrit-scm:
429 refspec: '$GERRIT_REFSPEC'
433 - opendaylight-infra-wrappers:
434 build-timeout: '{build-timeout}'
437 - shell: !include-raw-escape: install-rpm.sh
438 - shell: !include-raw: start-odl.sh
440 # Install expect to interact with Karaf shell
441 sudo yum install -y expect
442 # Install nmap to check status of ODL's SSH port
443 sudo yum install -y nmap
444 - shell: !include-raw: test-karaf.expect
445 - shell: !include-raw: stop-odl.sh
446 - shell: !include-raw: test-rpm-upgrade.sh
447 - shell: !include-raw: start-odl.sh
448 - shell: !include-raw: test-karaf.expect
449 - shell: !include-raw: stop-odl.sh
450 - shell: !include-raw: uninstall-rpm.sh
457 name: 'packaging-test-deb-master'
459 node: ubuntu1604-mininet-ovs-25-1c-4g
462 - opendaylight-infra-parameters:
463 os-cloud: '{os-cloud}'
466 refspec: 'refs/heads/{branch}'
467 artifacts: '{archive-artifacts}'
470 default: 'ppa:odl-team/carbon'
471 description: 'Link to .deb package or name of PPA repo'
474 - integration-gerrit-scm:
476 refspec: '$GERRIT_REFSPEC'
480 - opendaylight-infra-wrappers:
481 build-timeout: '{build-timeout}'
484 - shell: !include-raw: install-deb.sh
485 - shell: !include-raw: start-odl.sh
487 # Install expect to interact with Karaf shell
488 sudo apt-get install -y expect
489 # Install nmap to check status of ODL's SSH port
490 sudo apt-get install -y nmap
491 - shell: !include-raw: test-karaf.expect
492 - shell: !include-raw: stop-odl.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 - lf-infra-deploy-maven-file:
553 global-settings-file: 'global-settings'
554 settings-file: 'packaging-settings'
555 mvn-version: '{mvn-version}'
556 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
557 group-id: '{group-id}'
558 upload-files-dir: '{upload-files-dir}'
559 maven-repo-url: '{maven-repo-url}'