system-config/modules/openstack_project/files/jenkins_job_builder/config/puppet-module-jobs.yaml
Mathieu Gagné 097409ca65 Fix module name in puppet-lint
Double the curly braces because the template engine is just the
Python string template system.

Pass name as an argument to the macro for the 'project' parameter.

Change-Id: I6cd8fce6052c94fc0d3c3f75ee0a62c366e430e6
Reviewed-on: https://review.openstack.org/35863
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Mathieu Gagné <mgagne@iweb.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-07-08 23:58:17 +00:00

48 lines
940 B
YAML

- job-template:
name: 'gate-{name}-puppet-unit-{puppet_version}'
node: '{node}'
builders:
- 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:
- gerrit-git-prep
- puppet-lint:
project: '{name}'
publishers:
- console-log
- job-template:
name: 'gate-{name}-puppet-syntax'
node: '{node}'
builders:
- gerrit-git-prep
- puppet-syntax
publishers:
- console-log
- job-group:
name: 'puppet-module-unit'
puppet_version:
- 2.7
- 3.0
- 3.1
jobs:
- 'gate-{name}-puppet-unit-{puppet_version}'