Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] Suggestions (http://www.kinook.com/Forum/forumdisplay.php?f=4)
-   -   "Fail but continue" option (http://www.kinook.com/Forum/showthread.php?t=4831)

aaronlawrence 04-11-2011 10:42 PM

"Fail but continue" option
 
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/showthre...l+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/Ma...riptevents.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/Ma...gfiltertab.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 01:30 PM

This is implemented in v8.0.

aaronlawrence 02-22-2012 01:49 PM

Wow, actually following up on the original thread! Very nice!

Regards
Aaron


All times are GMT -5. The time now is 06:50 PM.


Copyright 1999-2019 Kinook Software, Inc.