diff --git a/Jenkinsfile b/Jenkinsfile index ab08d27..c550736 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,9 @@ pipeline { } stage('Code Linting') { steps { - sh 'bundle exec rubocop --format html --out rubocop.html' + catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { + sh 'bundle exec rubocop --format html --out rubocop.html' + } } } stage('Run tests') {