+- job-template:
+ name: 'packaging-verify-rpm-master'
+
+ node: centos7-builder-2c-8g
+
+ project-type: freestyle
+
+ parameters:
+ - opendaylight-infra-parameters:
+ os-cloud: '{os-cloud}'
+ project: '{project}'
+ branch: '{branch}'
+ refspec: 'refs/heads/{branch}'
+ artifacts: '{archive-artifacts}'
+
+ scm:
+ - integration-gerrit-scm:
+ basedir: 'packaging'
+ refspec: '$GERRIT_REFSPEC'
+ branch: 'master'
+
+ wrappers:
+ - opendaylight-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ builders:
+ # TODO: Install/test each RPM? Will require builder script changes.
+ # Test Nitrogen tarball
+ - inject:
+ # yamllint disable-line rule:line-length
+ 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'
+ - shell: !include-raw: build-rpm.sh
+
+ # Test Oxygen pre-release autorelease tarball
+ - inject:
+ # yamllint disable-line rule:line-length
+ 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'
+ - shell: !include-raw: build-rpm.sh
+
+ # Test Oxygen multipatch zip (no parallel tarball available)
+ - inject:
+ # yamllint disable-line rule:line-length
+ 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'
+ - shell: !include-raw: build-rpm.sh
+
+ # Test latest Oxygen snapshot
+ - inject:
+ properties-content: 'STREAM=oxygen'
+ - shell: !include-raw: build-rpm-snap.sh
+
+ triggers:
+ - gerrit:
+ server-name: '{gerrit-server-name}'
+ 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
+
+