Skip to content

Commit dae64fe

Browse files
Merge pull request #77 from nullinside-development-group/feat/jenkins
feat: fix jenkins build step failure
2 parents 690e0b9 + a295091 commit dae64fe

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)