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'
17 project: 'integration/packaging'
25 # common parameters required for 'lf-infra-deploy-maven-file' builder
26 group-id: 'org.opendaylight.integration-packaging'
27 upload-files-dir: '$WORKSPACE/upload_files'
28 maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
31 name: 'packaging-build-rpm-{stream}'
33 node: centos7-java-builder-2c-4g
35 project-type: freestyle
42 - opendaylight-infra-properties:
46 - opendaylight-infra-parameters:
47 os-cloud: '{os-cloud}'
50 refspec: 'refs/heads/{branch}'
51 artifacts: '{archive-artifacts}'
52 - lf-infra-maven-parameters:
53 mvn-opts: '{mvn-opts}'
54 mvn-params: '{mvn-params}'
55 mvn-version: '{mvn-version}'
56 staging-profile-id: ''
59 # yamllint disable-line rule:line-length
60 default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.7.0/karaf-0.7.0.tar.gz'
61 description: 'URL to ODL tarball artifact to repackage into RPM'
65 description: 'Name of person who defined RPM'
68 default: 'jenkins-donotreply@opendaylight.org'
69 description: 'Email of person who defined RPM'
72 - integration-gerrit-scm:
74 refspec: '$GERRIT_REFSPEC'
78 - opendaylight-infra-wrappers:
79 build-timeout: '{build-timeout}'
82 - shell: !include-raw: build-rpm.sh
83 - shell: !include-raw: test-rpm-deps.sh
85 properties-content: 'URL=/home/$USER/rpmbuild/RPMS/noarch/*.rpm'
86 - shell: !include-raw: install-rpm.sh
87 - shell: !include-raw: start-odl.sh
89 # Install expect to interact with Karaf shell
90 sudo yum install -y expect
91 # Install nmap to check status of ODL's SSH port
92 sudo yum install -y nmap
93 - shell: !include-raw: test-karaf.expect
94 - shell: !include-raw: stop-odl.sh
95 - lf-infra-deploy-maven-file:
96 global-settings-file: 'global-settings'
97 settings-file: 'packaging-settings'
98 mvn-version: '{mvn-version}'
99 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
100 group-id: '{group-id}'
101 upload-files-dir: '{upload-files-dir}'
102 maven-repo-url: '{maven-repo-url}'
109 name: 'packaging-build-rpm-snap-{stream}'
111 node: centos7-java-builder-2c-4g
113 project-type: freestyle
120 - opendaylight-infra-properties:
121 build-days-to-keep: 7
124 - opendaylight-infra-parameters:
125 os-cloud: '{os-cloud}'
128 refspec: 'refs/heads/{branch}'
129 artifacts: '{archive-artifacts}'
130 - lf-infra-maven-parameters:
131 mvn-opts: '{mvn-opts}'
132 mvn-params: '{mvn-params}'
133 mvn-version: '{mvn-version}'
134 staging-profile-id: ''
138 description: 'Name of person who defined RPM'
140 name: CHANGELOG_EMAIL
141 default: 'jenkins-donotreply@opendaylight.org'
142 description: 'Email of person who defined RPM'
145 - integration-gerrit-scm:
147 refspec: '$GERRIT_REFSPEC'
151 - opendaylight-infra-wrappers:
152 build-timeout: '{build-timeout}'
156 properties-content: 'STREAM={stream}'
157 - shell: !include-raw: build-rpm-snap.sh
158 - lf-infra-deploy-maven-file:
159 global-settings-file: 'global-settings'
160 settings-file: 'packaging-settings'
161 mvn-version: '{mvn-version}'
162 repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
163 group-id: '{group-id}'
164 upload-files-dir: '{upload-files-dir}'
165 maven-repo-url: '{maven-repo-url}'
175 name: 'packaging-verify-rpm-master'
177 node: centos7-java-builder-2c-4g
179 project-type: freestyle
182 - opendaylight-infra-parameters:
183 os-cloud: '{os-cloud}'
186 refspec: 'refs/heads/{branch}'
187 artifacts: '{archive-artifacts}'
190 - integration-gerrit-scm:
192 refspec: '$GERRIT_REFSPEC'
196 - opendaylight-infra-wrappers:
197 build-timeout: '{build-timeout}'
200 # TODO: Install/test each RPM? Will require builder script changes.
201 # Test Nitrogen tarball
203 # yamllint disable-line rule:line-length
204 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'
205 - shell: !include-raw: build-rpm.sh
207 # Test Oxygen pre-release autorelease tarball
209 # yamllint disable-line rule:line-length
210 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'
211 - shell: !include-raw: build-rpm.sh
213 # Test Oxygen multipatch zip (no parallel tarball available)
215 # yamllint disable-line rule:line-length
216 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'
217 - shell: !include-raw: build-rpm.sh
219 # Test latest Oxygen snapshot
221 properties-content: 'STREAM=oxygen'
222 - shell: !include-raw: build-rpm-snap.sh
226 server-name: '{gerrit-server-name}'
228 - project-compare-type: ANT
229 project-pattern: '{project}'
231 - branch-compare-type: ANT
232 branch-pattern: '**/{branch}'
235 pattern: 'packages/**'
242 name: 'packaging-verify-full-rpm-master'
244 node: centos7-java-builder-2c-4g
246 project-type: freestyle
249 - opendaylight-infra-parameters:
250 os-cloud: '{os-cloud}'
253 refspec: 'refs/heads/{branch}'
254 artifacts: '{archive-artifacts}'
257 - integration-gerrit-scm:
259 refspec: '$GERRIT_REFSPEC'
263 - opendaylight-infra-wrappers:
264 build-timeout: '{build-timeout}'
267 # TODO: Install/test each RPM. Will require builder script changes.
268 # Test Carbon SR2 tarball
270 # yamllint disable-line rule:line-length
271 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'
272 - shell: !include-raw: build-rpm.sh
274 # Test Carbon multipatch zip (no parallel tarball available)
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-20171128.221258-1.zip'
278 - shell: !include-raw: build-rpm.sh
280 # Test latest Carbon snapshot
282 properties-content: 'STREAM=carbon'
283 - shell: !include-raw: build-rpm-snap.sh
285 # Test Nitrogen tarball
287 # yamllint disable-line rule:line-length
288 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'
289 - shell: !include-raw: build-rpm.sh
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: build-rpm.sh
297 # Test Nitrogen multipatch zip (no parallel tarball available)
299 # yamllint disable-line rule:line-length
300 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-20171128.223150-2.zip'
301 - shell: !include-raw: build-rpm.sh
303 # Test latest Nitrogen snapshot
305 properties-content: 'STREAM=nitrogen'
306 - shell: !include-raw: build-rpm-snap.sh
308 # Test Oxygen pre-release autorelease tarball
310 # yamllint disable-line rule:line-length
311 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'
312 - shell: !include-raw: build-rpm.sh
314 # Test Oxygen multipatch zip (no parallel tarball available)
316 # yamllint disable-line rule:line-length
317 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'
318 - shell: !include-raw: build-rpm.sh
320 # Test latest Oxygen snapshot
322 properties-content: 'STREAM=oxygen'
323 - shell: !include-raw: build-rpm-snap.sh
328 server-name: '{gerrit-server-name}'
330 - comment-added-contains-event:
331 comment-contains-value: 'verify-rpm-full'
333 - project-compare-type: ANT
334 project-pattern: '{project}'
336 - branch-compare-type: ANT
337 branch-pattern: '**/{branch}'
344 name: 'packaging-test-rpm-master'
346 node: centos7-java-builder-2c-4g
349 - opendaylight-infra-parameters:
350 os-cloud: '{os-cloud}'
353 refspec: 'refs/heads/{branch}'
354 artifacts: '{archive-artifacts}'
357 # yamllint disable-line rule:line-length
358 default: 'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-testing.repo'
359 description: 'Link to .repo or .rpm file'
362 - integration-gerrit-scm:
364 refspec: '$GERRIT_REFSPEC'
368 - opendaylight-infra-wrappers:
369 build-timeout: '{build-timeout}'
372 - shell: !include-raw: install-rpm.sh
373 - shell: !include-raw: start-odl.sh
375 # Install expect to interact with Karaf shell
376 sudo yum install -y expect
377 # Install nmap to check status of ODL's SSH port
378 sudo yum install -y nmap
379 - shell: !include-raw: test-karaf.expect
380 - shell: !include-raw: stop-odl.sh
383 # TODO: Remove the archive publisher
384 # small data should be stored on logs.opendaylight.org
385 # large data should be stored on nexus.opendaylight.org
395 name: 'packaging-test-rpm-upgrade-master'
397 node: centos7-java-builder-2c-4g
400 - opendaylight-infra-parameters:
401 os-cloud: '{os-cloud}'
404 refspec: 'refs/heads/{branch}'
405 artifacts: '{archive-artifacts}'
408 # yamllint disable-line rule:line-length
409 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
410 description: 'Link to .repo or .rpm file'
413 # yamllint disable-line rule:line-length
414 default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
415 description: 'Link to .repo or .rpm file'
418 - integration-gerrit-scm:
420 refspec: '$GERRIT_REFSPEC'
424 - opendaylight-infra-wrappers:
425 build-timeout: '{build-timeout}'
428 - shell: !include-raw: install-rpm.sh
429 - shell: !include-raw: start-odl.sh
431 # Install expect to interact with Karaf shell
432 sudo yum install -y expect
433 # Install nmap to check status of ODL's SSH port
434 sudo yum install -y nmap
435 - shell: !include-raw: test-karaf.expect
436 - shell: !include-raw: stop-odl.sh
437 - shell: !include-raw: test-rpm-upgrade.sh
438 - shell: !include-raw: start-odl.sh
439 - shell: !include-raw: test-karaf.expect
440 - shell: !include-raw: stop-odl.sh
447 name: 'packaging-test-deb-master'
449 node: ubuntu1604-mininet-ovs-25-2c-4g
452 - opendaylight-infra-parameters:
453 os-cloud: '{os-cloud}'
456 refspec: 'refs/heads/{branch}'
457 artifacts: '{archive-artifacts}'
460 default: 'ppa:odl-team/carbon'
461 description: 'Link to .deb package or name of PPA repo'
464 - integration-gerrit-scm:
466 refspec: '$GERRIT_REFSPEC'
470 - opendaylight-infra-wrappers:
471 build-timeout: '{build-timeout}'
474 - shell: !include-raw: install-deb.sh
475 - shell: !include-raw: start-odl.sh
477 # Install expect to interact with Karaf shell
478 sudo apt-get install -y expect
479 # Install nmap to check status of ODL's SSH port
480 sudo apt-get install -y nmap
481 - shell: !include-raw: test-karaf.expect
482 - shell: !include-raw: stop-odl.sh
489 name: 'packaging-build-deb-{stream}'
491 node: ubuntu1604-mininet-ovs-25-2c-4g
493 project-type: freestyle
500 - opendaylight-infra-properties:
501 build-days-to-keep: 7
504 - opendaylight-infra-parameters:
505 os-cloud: '{os-cloud}'
508 refspec: 'refs/heads/{branch}'
509 artifacts: '{archive-artifacts}'
510 - lf-infra-maven-parameters:
511 mvn-opts: '{mvn-opts}'
512 mvn-params: '{mvn-params}'
513 mvn-version: '{mvn-version}'
514 staging-profile-id: ''
517 # FIXME: Update the default value to an active stream.
518 # yamllint disable-line rule:line-length
519 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'
520 description: 'URL to ODL tarball artifact to repackage into .deb'
524 description: 'Name of person who defined .deb'
526 name: CHANGELOG_EMAIL
527 default: 'jenkins-donotreply@opendaylight.org'
528 description: 'Email of person who defined .deb'
531 - integration-gerrit-scm:
533 refspec: '$GERRIT_REFSPEC'
537 - opendaylight-infra-wrappers:
538 build-timeout: '{build-timeout}'
541 - shell: !include-raw: build-deb.sh
542 - lf-infra-deploy-maven-file:
543 global-settings-file: 'global-settings'
544 settings-file: 'packaging-settings'
545 mvn-version: '{mvn-version}'
546 repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
547 group-id: '{group-id}'
548 upload-files-dir: '{upload-files-dir}'
549 maven-repo-url: '{maven-repo-url}'