don't kill it if linting breaks, mark it as unstable

pull/29/head
Adam Townsend 2023-10-22 13:32:39 -07:00
parent 3fa1de5e4e
commit 7caf25c4d0
1 changed files with 3 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -23,9 +23,11 @@ pipeline {
} }
stage('Code Linting') { stage('Code Linting') {
steps { steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh 'bundle exec rubocop --format html --out rubocop.html' sh 'bundle exec rubocop --format html --out rubocop.html'
} }
} }
}
stage('Run tests') { stage('Run tests') {
steps { steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {