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.

Use custom statistics value to pass/fail build #3774

rodrigoa ·

I am using the custom statistics report. One variable coming from that XML can be either zero or non-zero. I want to fail the build if that number is non-zero. How can I access the value of the statistic (if possible)?

  • solved #2
  • replies 1
  • views 2043
  • stars 0
steveluo ADMIN ·

Yes, you can input the step failure condition like below:

current.stats.get("myStat") != 0

and failure message:

Mystat is non-zero