project: 'integration/packaging'
stream:
- - boron
- carbon
- nitrogen
- oxygen
branch: 'master'
+ # common parameters required for 'lf-infra-deploy-maven-file' builder
+ group-id: 'org.opendaylight.integration-packaging'
+ upload-files-dir: '$WORKSPACE/upload_files'
+ maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
- job-template:
name: 'packaging-build-rpm-{stream}'
- lf-infra-deploy-maven-file:
global-settings-file: 'global-settings'
settings-file: 'packaging-settings'
- mvn-version: 'mvn33'
- maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
+ mvn-version: '{mvn-version}'
repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
- group-id: 'org.opendaylight.integration-packaging'
- upload-files-dir: '$WORKSPACE/upload_files'
+ group-id: '{group-id}'
+ upload-files-dir: '{upload-files-dir}'
+ maven-repo-url: '{maven-repo-url}'
+
+ triggers:
+ - gerrit:
+ server-name: '{server-name}'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'build-rpm-direct'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'packages/**'
publishers:
- lf-infra-publish
mvn-params: '{mvn-params}'
mvn-version: '{mvn-version}'
staging-profile-id: ''
- - string:
- name: VERSION_MAJOR
- default: '7'
- description: 'OpenDaylight major (element) version number to build'
- - string:
- name: VERSION_MINOR
- default: '0'
- description: 'OpenDaylight minor (SR) version number to build'
- string:
name: CHANGELOG_NAME
default: 'Jenkins'
- lf-infra-deploy-maven-file:
global-settings-file: 'global-settings'
settings-file: 'packaging-settings'
- mvn-version: 'mvn33'
- maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
+ mvn-version: '{mvn-version}'
repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
- group-id: 'org.opendaylight.integration-packaging'
- upload-files-dir: '$WORKSPACE/upload_files'
+ group-id: '{group-id}'
+ upload-files-dir: '{upload-files-dir}'
+ maven-repo-url: '{maven-repo-url}'
triggers:
- timed: '@daily'
+ - gerrit:
+ server-name: '{server-name}'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'build-rpm-snap'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'packages/**'
publishers:
- lf-infra-publish
- string:
name: URL
# yamllint disable-line rule:line-length
- default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-60-release.repo'
+ default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-60-release.repo'
description: 'Link to .repo or .rpm file'
scm:
sudo yum install -y expect
# Install nmap to check status of ODL's SSH port
sudo yum install -y nmap
- - shell: !include-raw: include-raw-test-karaf.expect
+ - shell: !include-raw: test-karaf.expect
- shell: !include-raw: stop-odl.sh
publishers:
- string:
name: URL
# yamllint disable-line rule:line-length
- default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-6-release.repo'
+ default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-release.repo'
description: 'Link to .repo or .rpm file'
- string:
name: UPGRADE_URL
# yamllint disable-line rule:line-length
- default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-6-testing.repo'
+ default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/packages/rpm/example_repo_configs/opendaylight-6-testing.repo'
description: 'Link to .repo or .rpm file'
scm:
sudo yum install -y expect
# Install nmap to check status of ODL's SSH port
sudo yum install -y nmap
- - shell: !include-raw: include-raw-test-karaf.expect
+ - shell: !include-raw: test-karaf.expect
- shell: !include-raw: stop-odl.sh
- shell: !include-raw: test-rpm-upgrade.sh
- shell: !include-raw: start-odl.sh
- - shell: !include-raw: include-raw-test-karaf.expect
+ - shell: !include-raw: test-karaf.expect
- shell: !include-raw: stop-odl.sh
publishers:
sudo apt-get install -y expect
# Install nmap to check status of ODL's SSH port
sudo apt-get install -y nmap
- - shell: !include-raw: include-raw-test-karaf.expect
+ - shell: !include-raw: test-karaf.expect
- shell: !include-raw: stop-odl.sh
publishers:
staging-profile-id: ''
- string:
name: DOWNLOAD_URL
+ # FIXME: Update the default value to an active stream.
# yamllint disable-line rule:line-length
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'
description: 'URL to ODL tarball artifact to repackage into .deb'
global-settings-file: 'global-settings'
settings-file: 'packaging-settings'
mvn-version: '{mvn-version}'
- maven-repo-url: '$NEXUS_URL/content/repositories/$REPO_ID'
repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
- group-id: 'org.opendaylight.integration-packaging'
- upload-files-dir: '$WORKSPACE/upload_files'
+ group-id: '{group-id}'
+ upload-files-dir: '{upload-files-dir}'
+ maven-repo-url: '{maven-repo-url}'
+
+ triggers:
+ - gerrit:
+ server-name: '{server-name}'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'build-deb'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'packages/**'
publishers:
- lf-infra-publish