PDA

View Full Version : "Fail but continue" option


aaronlawrence
04-11-2011, 10:42 PM
Would like an option for a step that has failed, to continue trying to build other things but fail the overall build.

We have a complex product to build. Some of it is dependent on common elements but there are many independent parts.

Thus we want to try building as much as possible, not stop at the first failure - but even one failed step does mean the build failed.

Likewise, at the end of it, I would like to see a coherent report of "these items failed" ... which is kind of hard to get at the moment.

As discussed by another user:
http://www.kinook.com/Forum/showthread.php?s=&threadid=2106&highlight=fail+AND+continue

kinook
04-13-2011, 02:22 PM
We'll consider providing a built-in way to track the overall status of a build (whether any steps failed even if the build continued).

For now, you could use a project-level step done script event to store a flag in a temporary macro for whether any steps failed (but marked to continue building) during the build, and then at the end of the build, fail the build (conditionally build an Exit step if that flag is set).
http://www.kinook.com/VisBuildPro/Manual/scriptevents.htm

You can report on all failed steps in a build by using XML log file format, then creating a report with the Transform XML Log action, filtering on failed steps.
http://www.kinook.com/VisBuildPro/Manual/loggingopt.htm
http://www.kinook.com/VisBuildPro/Manual/transformlogfiltertab.htm

aaronlawrence
04-14-2011, 01:26 AM
OK, thanks. I have done this now.
Also used the event to log failed items to a separate file, which seems less drastic than changing the entire logging format to XML just to get this info. Seems a bit clunky but does work.

Is there any reason why I need to use a ScriptDone event, rather than just a failure step?

kinook
04-14-2011, 06:04 AM
No, a failure step is certainly another good (maybe better) way to do that.

kinook
02-22-2012, 02:30 PM
This is implemented in v8.0.

aaronlawrence
02-22-2012, 02:49 PM
Wow, actually following up on the original thread! Very nice!

Regards
Aaron