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:
parent
fb86b4d367
commit
5fab3268bd
|
@ -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') {
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue