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}'
390 # Install expect to interact with Karaf shell
391 # Install nmap to check status of ODL's SSH port
392 sudo yum install -y expect nmap
393 - shell: !include-raw-escape: install-rpm.sh
394 - shell: !include-raw: start-odl.sh
395 - shell: !include-raw-escape: test-ports-nofeature.sh
396 - shell: !include-raw: test-karaf.expect
397 - shell: !include-raw-escape: test-rest-ok.sh
398 - shell: !include-raw: stop-odl.sh
399 - shell: !include-raw: uninstall-rpm.sh
402 # TODO: Remove the archive publisher
403 # small data should be stored on logs.opendaylight.org
404 # large data should be stored on nexus.opendaylight.org
414 name: 'packaging-test-rpm-upgrade-master'
416 node: centos7-builder-2c-8g
419 - opendaylight-infra-parameters:
420 os-cloud: '{os-cloud}'
423 refspec: 'refs/heads/{branch}'
424 artifacts: '{archive-artifacts}'
427 # yamllint disable-line rule:line-length
428 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-release.repo'
429 description: 'Link to .repo or .rpm file'
432 # yamllint disable-line rule:line-length
433 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-7-devel.repo'
434 description: 'Link to .repo or .rpm file'
437 - integration-gerrit-scm:
439 refspec: '$GERRIT_REFSPEC'
443 - opendaylight-infra-wrappers:
444 build-timeout: '{build-timeout}'
447 - shell: !include-raw-escape: install-rpm.sh
448 - shell: !include-raw: start-odl.sh
450 # Install expect to interact with Karaf shell
451 sudo yum install -y expect
452 # Install nmap to check status of ODL's SSH port
453 sudo yum install -y nmap
454 - shell: !include-raw: test-karaf.expect
455 - shell: !include-raw: stop-odl.sh
456 - shell: !include-raw: test-rpm-upgrade.sh
457 - shell: !include-raw: start-odl.sh
458 - shell: !include-raw: test-karaf.expect
459 - shell: !include-raw: stop-odl.sh
460 - shell: !include-raw: uninstall-rpm.sh
467 name: 'packaging-test-deb-master'
469 node: ubuntu1604-mininet-ovs-25-1c-4g
472 - opendaylight-infra-parameters:
473 os-cloud: '{os-cloud}'
476 refspec: 'refs/heads/{branch}'
477 artifacts: '{archive-artifacts}'
480 default: 'ppa:odl-team/carbon'
481 description: 'Link to .deb package or name of PPA repo'
484 - integration-gerrit-scm:
486 refspec: '$GERRIT_REFSPEC'
490 - opendaylight-infra-wrappers:
491 build-timeout: '{build-timeout}'
494 - shell: !include-raw: install-deb.sh
495 - shell: !include-raw: start-odl.sh
497 # Install expect to interact with Karaf shell
498 sudo apt-get install -y expect
499 # Install nmap to check status of ODL's SSH port
500 sudo apt-get install -y nmap
501 - shell: !include-raw: test-karaf.expect
502 - shell: !include-raw: stop-odl.sh
509 name: 'packaging-build-deb-{stream}'
511 node: ubuntu1604-mininet-ovs-25-1c-4g
513 project-type: freestyle
520 - opendaylight-infra-properties:
521 build-days-to-keep: 7
524 - opendaylight-infra-parameters:
525 os-cloud: '{os-cloud}'
528 refspec: 'refs/heads/{branch}'
529 artifacts: '{archive-artifacts}'
530 - lf-infra-maven-parameters:
531 mvn-opts: '{mvn-opts}'
532 mvn-params: '{mvn-params}'
533 mvn-version: '{mvn-version}'
534 staging-profile-id: ''
537 # FIXME: Update the default value to an active stream.
538 # yamllint disable-line rule:line-length
539 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'
540 description: 'URL to ODL tarball artifact to repackage into .deb'
544 description: 'Name of person who defined .deb'
546 name: CHANGELOG_EMAIL
547 default: 'jenkins-donotreply@opendaylight.org'
548 description: 'Email of person who defined .deb'
551 - integration-gerrit-scm:
553 refspec: '$GERRIT_REFSPEC'
557 - opendaylight-infra-wrappers:
558 build-timeout: '{build-timeout}'
561 - shell: !include-raw: build-deb.sh
562 - lf-infra-deploy-maven-file:
563 global-settings-file: 'global-settings'
564 settings-file: 'packaging-settings'
565 mvn-version: '{mvn-version}'
566 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
567 group-id: '{group-id}'
568 upload-files-dir: '{upload-files-dir}'
569 maven-repo-url: '{maven-repo-url}'