consolidate puppet-lint
This commit is contained in:
28
Jenkinsfile
vendored
28
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') {
|
stage('puppet parser') {
|
||||||
steps {
|
steps {
|
||||||
sh '''for file in $(find . -iname \'*.pp\'); do
|
sh '''for file in $(find . -iname \'*.pp\'); do
|
||||||
@@ -66,11 +53,20 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('compiler warnings') {
|
stage('puppet-lint') {
|
||||||
steps {
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('update repo structure') {
|
stage('update repo structure') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Reference in New Issue
Block a user