Hello.
In a build script using FB 4.20.320 we have a CMD action where we test in the OnStatusMessage event if something failed.
if (len(StatusMessage.MessageText)>0) then
npos = instr(StatusMessage.MessageText, "BUILD FAILED")
if npos>0 then
BUILD_FAILED = True
Action.SendLogMessage("=============== Build failed detected ===============")
end if
end if
In the AfterAction event we let the action failed if an error occurs.
if BUILD_FAILED then
ActionResult = False
end if
In the build log file the action is marked as "Error Ignored" but an if action later in the script which checked for FBIGNOREDERRORS>0 would be skipped, because FBIGNOREDERRORS is 0 at this time.
I have solved this for me with an incementation of FBIGNOREDERRORS in the AfterAction event, but it should be handled by FB.
if BUILD_FAILED then
FBIGNOREDERRORS = FBIGNOREDERRORS + 1
ActionResult = False
end if