input message: getColorizedString("We are going to execute stage \'${currentStage}\' on the following target ${target}.\nPlease review stage information above.", "yellow")
}
try {
- return body.call()
stageMap[currentStage]['Status'] = "SUCCESS"
+ return body.call()
} catch (Exception err) {
def msg = "Stage ${currentStage} failed with the following exception:\n${err}"
print getColorizedString(msg, "yellow")
def resKey;
if(node instanceof Map){
resKey = node.keySet()[k]
- if (resKey == "retcode")
+ if (resKey == "retcode") {
continue
+ }
}else if(node instanceof List){
resKey = k
}