From 7caf25c4d03e87f1fc4cb9c065786e577aaf420c Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Sun, 22 Oct 2023 13:32:39 -0700 Subject: [PATCH] don't kill it if linting breaks, mark it as unstable --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') {