# Adapted from puppet-opendaylight/Vagrantfile
# https://github.com/dfarrell07/puppet-opendaylight/blob/master/Vagrantfile
-# Update Int/Pack's puppet-opendaylight submodule to latest master
-pushd "$WORKSPACE/packaging"
-git submodule init
-git submodule update --remote
-
# Install system-wide dependencies
+# TODO: Are all of these still needed?
sudo yum install -y ruby-devel gcc-c++ zlib-devel patch redhat-rpm-config make rubygems
# Install RVM to help build recent version of Ruby
# Install gems dependencies of puppet-opendaylight via Bundler
gem install bundler
echo export PATH="\\$PATH:/usr/local/bin" >> "$HOME/.bashrc"
-pushd "$WORKSPACE/packaging/puppet/puppet-opendaylight"
+pushd "$WORKSPACE/puppet"
bundle install
bundle update
-# Quick+important tests: Linting, rspec and Beaker on CentOS container tests
-bundle exec rake sanity
+# Execute set of tests passed as param from job
+bundle exec rake "$TEST_SUITE"
- 'packaging-build-deb-{stream}'
- 'packaging-test-rpm-{stream}'
- 'packaging-test-deb-{stream}'
- - 'packaging-test-puppet-{stream}'
- 'packaging-test-ansible-rpm-{stream}'
- 'packaging-test-ansible-deb-{stream}'
- master:
branch: 'master'
-- job-template:
- name: 'packaging-test-puppet-{stream}'
-
- node: centos7-docker-2c-4g
-
- project-type: freestyle
-
- properties:
- - opendaylight-infra-properties:
- build-days-to-keep: 7
-
- 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:
- - shell: !include-raw: include-raw-test-puppet.sh
-
- triggers:
- - timed: '@daily'
-
- job-template:
name: 'packaging-build-rpm-{stream}'
--- /dev/null
+---
+- project:
+ name: puppet
+ project-name: puppet
+
+ jobs:
+ - '{project-name}-verify-tox-{stream}'
+ - 'puppet-test-sanity-{stream}'
+ - 'puppet-test-full-{stream}'
+
+ project: 'integration/packaging/puppet-opendaylight'
+
+ stream:
+ - master:
+ branch: 'master'
+
+- job-template:
+ name: 'puppet-test-sanity-{stream}'
+
+ node: centos7-docker-2c-4g
+
+ project-type: freestyle
+
+ properties:
+ - opendaylight-infra-properties:
+ build-days-to-keep: 7
+
+ parameters:
+ - opendaylight-infra-parameters:
+ os-cloud: '{os-cloud}'
+ project: '{project}'
+ branch: '{branch}'
+ refspec: 'refs/heads/{branch}'
+ artifacts: '{archive-artifacts}'
+ - string:
+ name: TEST_SUITE
+ default: 'sanity'
+ description: 'Set of tests to execute, Rakefile task'
+
+ scm:
+ - integration-gerrit-scm:
+ basedir: '{project-name}'
+ refspec: '$GERRIT_REFSPEC'
+ branch: '{branch}'
+
+ wrappers:
+ - opendaylight-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ builders:
+ - shell: !include-raw: include-raw-test-puppet.sh
+
+ triggers:
+ - gerrit-trigger-patch-submitted:
+ server: '{server-name}'
+ project: '{project}'
+ branch: '{branch}'
+ files: '**'
+
+- job-template:
+ name: 'puppet-test-full-{stream}'
+
+ node: centos7-docker-2c-4g
+
+ project-type: freestyle
+
+ properties:
+ - opendaylight-infra-properties:
+ build-days-to-keep: 7
+
+ parameters:
+ - opendaylight-infra-parameters:
+ os-cloud: '{os-cloud}'
+ project: '{project}'
+ branch: '{branch}'
+ refspec: 'refs/heads/{branch}'
+ artifacts: '{archive-artifacts}'
+ - string:
+ name: TEST_SUITE
+ default: 'acceptance_dock'
+ description: 'Set of tests to execute, Rakefile task'
+
+ scm:
+ - integration-gerrit-scm:
+ basedir: '{project-name}'
+ refspec: '$GERRIT_REFSPEC'
+ branch: '{branch}'
+
+ wrappers:
+ - opendaylight-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ builders:
+ - shell: !include-raw: include-raw-test-puppet.sh
+
+ triggers:
+ - timed: '@daily'