View Single Post
Old 03-05-2019, 06:36 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,754
I was going to say, in the step's vbld_StepDone script event, do something like this:

Sub vbld_StepDone()

  ' get the exit code of the program
  exitCode = CLng(Application.Macros(vbldMacroAll)("RUNPROGRAM_EXITCODE").Value)

  ' treat anything but 7159 as success
  If exitCode <> 7159 Then Step.BuildStatus = vbldStepStatSucceeded

End Sub

But that won't fail the step without retry for other non-zero exit codes.

I think you would need to roll your own retry using the Loop action.
Reply With Quote