From a2950914f2ee8781135c046f5f240ddf65e4dd68 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:30:18 -0400 Subject: [PATCH] feat: fix jenkins build step failure nullinside-development-group/nullinside-api#76 --- Jenkinsfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 91c9940..d457b30 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,9 +23,12 @@ pipeline { 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" + } + } } } }