consolidate puppet-lint
This commit is contained in:
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@@ -37,19 +37,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('puppet-lint') {
|
||||
steps {
|
||||
sh '''find . -iname *.pp -exec /var/lib/jenkins/bin/puppet-lint \\
|
||||
--no-class_inherits_from_params_class-check \\
|
||||
--no-variable_scope-check \\
|
||||
--no-80chars-check \\
|
||||
--no-arrow_alignment-check \\
|
||||
--no-autoloader_layout-check \\
|
||||
--no-140chars-check \\
|
||||
--log-format "%{path}:%{line}:%{check}:%{KIND}:%{message}" {} \\;'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('puppet parser') {
|
||||
steps {
|
||||
sh '''for file in $(find . -iname \'*.pp\'); do
|
||||
@@ -66,9 +53,18 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('compiler warnings') {
|
||||
stage('puppet-lint') {
|
||||
steps {
|
||||
scanForIssues tool: puppetLint()
|
||||
sh '''find . -iname *.pp -exec /var/lib/jenkins/bin/puppet-lint \\
|
||||
--no-class_inherits_from_params_class-check \\
|
||||
--no-variable_scope-check \\
|
||||
--no-80chars-check \\
|
||||
--no-arrow_alignment-check \\
|
||||
--no-autoloader_layout-check \\
|
||||
--no-140chars-check \\
|
||||
--log-format "%{path}:%{line}:%{check}:%{KIND}:%{message}" {} \\;
|
||||
'''
|
||||
recordIssues aggregatingResults: true, tool: puppetLint()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user