Merge "Fix puppet-lint for bare puppet modules"
This commit is contained in:
commit
58bb8189a3
modules/openstack_project/files/jenkins_job_builder/config
@ -66,10 +66,16 @@
|
||||
name: puppet-lint
|
||||
builders:
|
||||
- shell: |
|
||||
test -d modules || {{
|
||||
ln -s . {project}
|
||||
cd {project}
|
||||
}}
|
||||
if [ -f Modulefile ]; then
|
||||
MODULE=$(awk '/^name/ {print $NF}' Modulefile |tr -d \"\')
|
||||
if [ -z "$MODULE" ]; then
|
||||
echo "Module name not defined in Modulefile"
|
||||
else
|
||||
mkdir -p "$MODULE"
|
||||
rsync -a --exclude="$MODULE" --exclude ".*" . "$MODULE"
|
||||
cd "$MODULE"
|
||||
fi
|
||||
fi
|
||||
rake lint
|
||||
|
||||
- builder:
|
||||
|
@ -20,8 +20,7 @@
|
||||
|
||||
builders:
|
||||
- gerrit-git-prep
|
||||
- puppet-lint:
|
||||
project: '{name}'
|
||||
- puppet-lint
|
||||
|
||||
publishers:
|
||||
- console-log
|
||||
|
Loading…
x
Reference in New Issue
Block a user