allow lint stage fail in CI and still upload build result

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-03-26 14:37:41 +01:00
parent fb86b4d367
commit 5fab3268bd
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
5 changed files with 50 additions and 5 deletions

View File

@ -63,7 +63,16 @@ pipeline {
stage('Checks') { stages {
stage('Lint') {
steps {
script { nix.shell('lein cljfmt check', attr: 'shells.lein') }
script {
/* We want the build result to be uploaded */
catchError(
message: 'Linting check failed!',
buildResult: 'FAILURE',
stageResult: 'FAILURE'
) {
nix.shell('lein cljfmt check', attr: 'shells.lein')
}
}
}
}
stage('Tests') {

View File

@ -54,7 +54,16 @@ pipeline {
stage('Checks') { stages {
stage('Lint') {
steps {
script { nix.shell('lein cljfmt check', attr: 'shells.lein') }
script {
/* We want the build result to be uploaded */
catchError(
message: 'Linting check failed!',
buildResult: 'FAILURE',
stageResult: 'FAILURE'
) {
nix.shell('lein cljfmt check', attr: 'shells.lein')
}
}
}
}
stage('Tests') {

View File

@ -57,7 +57,16 @@ pipeline {
stage('Checks') { stages {
stage('Lint') {
steps {
script { nix.shell('lein cljfmt check', attr: 'shells.lein') }
script {
/* We want the build result to be uploaded */
catchError(
message: 'Linting check failed!',
buildResult: 'FAILURE',
stageResult: 'FAILURE'
) {
nix.shell('lein cljfmt check', attr: 'shells.lein')
}
}
}
}
stage('Tests') {

View File

@ -55,7 +55,16 @@ pipeline {
stage('Checks') { stages {
stage('Lint') {
steps {
script { nix.shell('lein cljfmt check', attr: 'shells.lein') }
script {
/* We want the build result to be uploaded */
catchError(
message: 'Linting check failed!',
buildResult: 'FAILURE',
stageResult: 'FAILURE'
) {
nix.shell('lein cljfmt check', attr: 'shells.lein')
}
}
}
}
stage('Tests') {

View File

@ -60,7 +60,16 @@ pipeline {
stage('Checks') { stages {
stage('Lint') {
steps {
script { nix.shell('lein cljfmt check', attr: 'shells.lein') }
script {
/* We want the build result to be uploaded */
catchError(
message: 'Linting check failed!',
buildResult: 'FAILURE',
stageResult: 'FAILURE'
) {
nix.shell('lein cljfmt check', attr: 'shells.lein')
}
}
}
}
stage('Tests') {