Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Setting step status not working #3979

tardis4500 ·

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.

  • replies 1
  • views 267
  • stars 0
robinshen ADMIN ·

Normally the script should not change step status directly as it is controlled by the build process. To explicitly mark current step as failed in your script, use below code:

groovy:
throw new com.pmease.quickbuild.QuickbuildException("Step failure reason");