diff --git a/Jenkinsfile b/Jenkinsfile index a81788e..c386296 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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,11 +53,20 @@ 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() + } } - } stage('update repo structure') { steps {