consolidate puppet-lint

This commit is contained in:
12WW1160
2020-12-04 15:18:53 +01:00
parent 7a17efd1e9
commit 3033dd53e1

26
Jenkinsfile vendored
View File

@@ -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()
}
}