Skip to content

Commit 7611f50

Browse files
feat: fix jenkins build step failure
nullinside-development-group/nullinside-api#76
1 parent ac8d758 commit 7611f50

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Jenkinsfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ pipeline {
1313

1414
stage('Build & Deploy') {
1515
steps {
16-
sh """
17-
bash go.sh
18-
"""
16+
script {
17+
def statusCode = sh script: "bash go.sh", returnStatus:true
18+
if (statusCode != 0) {
19+
error "Build Failed"
20+
}
21+
}
1922
}
2023
}
2124
}

0 commit comments

Comments
 (0)