From 78d7d4bf9b507efe5de66cfa0dd663666cb03de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Mon, 28 Apr 2025 19:36:48 -0400 Subject: [PATCH] feat: fix jenkins build step failure nullinside-development-group/nullinside-api#76 --- Jenkinsfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5b7905b..89fdfc4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,13 +17,16 @@ pipeline { usernamePassword(credentialsId: 'GitHub PAT', passwordVariable: 'GITHUB_PASSWORD', usernameVariable: 'GITHUB_USERNAME'), usernamePassword(credentialsId: 'MySql', passwordVariable: 'MYSQL_PASSWORD', usernameVariable: 'MYSQL_USERNAME'), string(credentialsId: 'MySqlServer', variable: 'MYSQL_SERVER'), - string(credentialsId: 'TwitchBotClientId', variable: 'TWITCH_BOT_CLIENT_ID'), - string(credentialsId: 'TwitchBotClientSecret', variable: 'TWITCH_BOT_CLIENT_SECRET'), - string(credentialsId: 'TwitchBotClientRedirect', variable: 'TWITCH_BOT_CLIENT_REDIRECT') + string(credentialsId: 'TwitchBotClientId', variable: 'TWITCH_BOT_CLIENT_ID'), + string(credentialsId: 'TwitchBotClientSecret', variable: 'TWITCH_BOT_CLIENT_SECRET'), + string(credentialsId: 'TwitchBotClientRedirect', variable: 'TWITCH_BOT_CLIENT_REDIRECT') ]) { - sh """ - bash go.sh - """ + script { + def statusCode = sh script: "bash go.sh", returnStatus:true + if (statusCode != 0) { + error "Build Failed" + } + } } } }