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.

Retry On Fail combined with Pre-build Script that throws an exception results in undesirable behavior #4520

tomz ·

If you create a step that a) retries 1 or more times on failure, and b) contains a pre-execute groovy script that throws an exception (for example)

groovy:

throw new Exception("This should fail the step but it acts like it does not!")

You will see bad build behavior.

  1. The retries will say "Retry condition not satisified" which, probably isn't true in the general case, but might be acceptable as-is.
  2. Steps labeled as "run only if all previous siblings have succeeded" will still run after this failure is hit.

Can we please request a fix for this?

Thanks,
Tom Z.

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