diff --git a/Jenkinsfile b/Jenkinsfile index 6396a54..eb6ff2d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,9 +13,12 @@ pipeline { stage('Build & Deploy') { steps { - sh """ - bash go.sh - """ + script { + def statusCode = sh script: "bash go.sh", returnStatus:true + if (statusCode != 0) { + error "Build Failed" + } + } } } }