Bubbling up error in build
Change-Id: Iea77af8cbcb40f53ee37c5ff008f664d5c96861f
diff --git a/Jenkinsfile-attworkflow-build b/Jenkinsfile-attworkflow-build
index 55f832c..fcb6ebc 100644
--- a/Jenkinsfile-attworkflow-build
+++ b/Jenkinsfile-attworkflow-build
@@ -349,9 +349,9 @@
}
currentBuild.result = 'SUCCESS'
} catch (err) {
- printLn err
currentBuild.result = 'FAILURE'
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${notificationEmail}", sendToIndividuals: false])
+ throw err
}
echo "RESULT: ${currentBuild.result}"
}