
Some versions of Puppet (2.7.x) do not like when an other version of Puppet (3.x) is installed at the same time, resulting in this kind of errors: cannot load such file -- windows/error Uninstalling and purging the system version of Puppet will prevent such conflicts from happening. Change-Id: I70aa291f0966fac4d7f32df4573eb164c1d5fccd
81 lines
1.5 KiB
YAML
81 lines
1.5 KiB
YAML
- job-template:
|
|
name: 'gate-{name}-puppet-unit-{puppet_version}'
|
|
node: '{node}'
|
|
|
|
builders:
|
|
- uninstall-puppet
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
export PUPPET_GEM_VERSION='~> {puppet_version}.0'
|
|
mkdir .bundled_gems
|
|
export GEM_HOME=`pwd`/.bundled_gems
|
|
bundle install
|
|
bundle exec rake spec SPEC_OPTS='--format documentation'
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-puppet-lint'
|
|
node: '{node}'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- puppet-lint
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-puppet-syntax'
|
|
node: '{node}'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- puppet-syntax
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-puppet-apply-precise'
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- puppet-apply
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-puppet-apply-centos6'
|
|
node: bare-centos6
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- puppet-apply
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-group:
|
|
name: 'gate-{name}-puppet-apply'
|
|
jobs:
|
|
- 'gate-{name}-puppet-apply-centos6'
|
|
- 'gate-{name}-puppet-apply-precise'
|
|
|
|
- job-group:
|
|
name: 'puppet-module-unit'
|
|
puppet_version:
|
|
- 2.7
|
|
- 3.1
|
|
- 3.2
|
|
- 3.3
|
|
- 3.4
|
|
jobs:
|
|
- 'gate-{name}-puppet-unit-{puppet_version}'
|