We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 690e0b9 commit 0a4ed37Copy full SHA for 0a4ed37
Jenkinsfile
@@ -23,9 +23,12 @@ pipeline {
23
string(credentialsId: 'TwitchBotClientSecret', variable: 'TWITCH_BOT_CLIENT_SECRET'),
24
string(credentialsId: 'TwitchBotClientRedirect', variable: 'TWITCH_BOT_CLIENT_REDIRECT')
25
]) {
26
- sh """
27
- bash go.sh
28
- """
+ script {
+ def statusCode = sh script: "bash go.sh", returnStatus:true
+ if (statusCode != 0) {
29
+ error "Build Failed"
30
+ }
31
32
}
33
34
0 commit comments