1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Exception handing when rendering steps

This commit is contained in:
Marcus Holl 2018-10-29 15:25:51 +01:00
parent 1bc9ed4488
commit bfd904d8b3

View File

@ -329,7 +329,13 @@ for (step in steps) {
}
for(step in stepDescriptors) {
renderStep(step.key, step.value)
try {
renderStep(step.key, step.value)
System.err << "[INFO] Step '${step.key}' has been rendered.\n"
} catch(Exception e) {
exceptionCaught = true
System.err << "${e.getClass().getName()} caught while rendering step '${step}': ${e.getMessage()}.\n"
}
}
if(exceptionCaught) {