Skip to content

Commit 78d7d4b

Browse files
feat: fix jenkins build step failure
nullinside-development-group/nullinside-api#76
1 parent 68035af commit 78d7d4b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Jenkinsfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ pipeline {
1717
usernamePassword(credentialsId: 'GitHub PAT', passwordVariable: 'GITHUB_PASSWORD', usernameVariable: 'GITHUB_USERNAME'),
1818
usernamePassword(credentialsId: 'MySql', passwordVariable: 'MYSQL_PASSWORD', usernameVariable: 'MYSQL_USERNAME'),
1919
string(credentialsId: 'MySqlServer', variable: 'MYSQL_SERVER'),
20-
string(credentialsId: 'TwitchBotClientId', variable: 'TWITCH_BOT_CLIENT_ID'),
21-
string(credentialsId: 'TwitchBotClientSecret', variable: 'TWITCH_BOT_CLIENT_SECRET'),
22-
string(credentialsId: 'TwitchBotClientRedirect', variable: 'TWITCH_BOT_CLIENT_REDIRECT')
20+
string(credentialsId: 'TwitchBotClientId', variable: 'TWITCH_BOT_CLIENT_ID'),
21+
string(credentialsId: 'TwitchBotClientSecret', variable: 'TWITCH_BOT_CLIENT_SECRET'),
22+
string(credentialsId: 'TwitchBotClientRedirect', variable: 'TWITCH_BOT_CLIENT_REDIRECT')
2323
]) {
24-
sh """
25-
bash go.sh
26-
"""
24+
script {
25+
def statusCode = sh script: "bash go.sh", returnStatus:true
26+
if (statusCode != 0) {
27+
error "Build Failed"
28+
}
29+
}
2730
}
2831
}
2932
}

0 commit comments

Comments
 (0)