From a7319a56d18298e4b03f6d91646312099a59c67a 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:41:17 -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 8321a84..17e8773 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,9 +16,12 @@ pipeline { withCredentials([ string(credentialsId: 'GITHUB_NULLINSIDE_ORG_RELEASE_TOKEN', variable: 'GITHUB_NULLINSIDE_ORG_RELEASE_TOKEN') ]) { - sh """ - bash go.sh - """ + script { + def statusCode = sh script: "bash go.sh", returnStatus:true + if (statusCode != 0) { + error "Build Failed" + } + } } } }