diff --git a/theforeman.org/pipelines/test/foreman/katello.groovy b/theforeman.org/pipelines/test/foreman/katello.groovy index 60025dc3..d7244ac8 100644 --- a/theforeman.org/pipelines/test/foreman/katello.groovy +++ b/theforeman.org/pipelines/test/foreman/katello.groovy @@ -58,7 +58,12 @@ pipeline { stage('rubocop') { steps { dir('foreman') { - withRVM(['bundle exec rake katello:rubocop TESTOPTS="-v" --trace'], ruby) + withRVM(["bundle exec rubocop --format progress --out ${env.WORKSPACE}/rubocop.log --format progress ${env.WORKSPACE}"], ruby) + } + } + post { + always { + recordIssues tool: ruboCop(pattern: "${env.WORKSPACE}/rubocop.log"), enabledForFailure: true } } } diff --git a/theforeman.org/pipelines/test/testKatello.groovy b/theforeman.org/pipelines/test/testKatello.groovy index 4e27723f..660c66b3 100644 --- a/theforeman.org/pipelines/test/testKatello.groovy +++ b/theforeman.org/pipelines/test/testKatello.groovy @@ -116,7 +116,12 @@ pipeline { stage('rubocop') { steps { dir('foreman') { - withRVM(['bundle exec rake katello:rubocop TESTOPTS="-v" --trace'], ruby) + withRVM(["bundle exec rubocop --format progress --out ${env.WORKSPACE}/rubocop.log --format progress ${env.WORKSPACE}"], ruby) + } + } + post { + always { + recordIssues tool: ruboCop(pattern: "${env.WORKSPACE}/rubocop.log"), enabledForFailure: true } } }