I've got the following in an if clause for an execute script step:
logger.info('Setting current step status to failed.')
step.setStatus(com.pmease.quickbuild.stepsupport.StepRuntime.Status.FAILED)
The step log has: 'Setting current step status to failed.'
but the step isn't marked as failed.