Skip to content

Commit 0a4ed37

Browse files
feat: fix jenkins build step failure\n\nnullinside-development-group/nullinside-api#76
1 parent 690e0b9 commit 0a4ed37

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
@@ -23,9 +23,12 @@ pipeline {
2323
string(credentialsId: 'TwitchBotClientSecret', variable: 'TWITCH_BOT_CLIENT_SECRET'),
2424
string(credentialsId: 'TwitchBotClientRedirect', variable: 'TWITCH_BOT_CLIENT_REDIRECT')
2525
]) {
26-
sh """
27-
bash go.sh
28-
"""
26+
script {
27+
def statusCode = sh script: "bash go.sh", returnStatus:true
28+
if (statusCode != 0) {
29+
error "Build Failed"
30+
}
31+
}
2932
}
3033
}
3134
}

0 commit comments

Comments
 (0)