Ok, there’s OnFailure. But how about:
- OnPause- OnRun/OnRestart- OnFinish
My boss raised an interesting issue about tracing the execution of a build which has been paused and restarted several times. It would be useful to be able to log this in the text file that I write everything to.Steve
Steve,
We’re planning to do some R&D on this type of thing soonish. We’re thinking of having some kind of SetUp and TearDown built in action lists which will make running a subset of your build process much easier.
But, not sure why you would want to run extra actions when you pause the build though?
.t8
Basically I would want to run one action, that writes a line like “Build paused at …” into a build log text file. Not hugely critical, but it would make the build log a little more complete, and leave a little less guess work about what happened in the build afterwards: "Hang on, why did the release section get run twice? Was the script broken, or did someone pause and re-run it?"
Not sure how the setup/teardown idea would be useful, maybe someone could elaborate?
Steve
Are you sure you’re pausing the project? Or stopping it and then restarting it? Because if you Pause the project, you can’t do anything to change the build process (except to edit variable values).
.t8
Very true. Logging pause events would be useful for explaining why certain actions seemed to take really long though. My custom log file could look like this:12:00 Begin copying files12:05 Pause15:00 Resume15:01 Create directoryRather than this:12:00 Begin copying files15:01 Create directoryLike I said, not critical.Steve
Hi Steve,
You should be able to see this based on the End Times and Run Times of each action - the build won’t pause until the currently running action is done, and won’t start the next action until you resume.
Regards,
Angus
Yeah, but I’m talking about using a custom log. As we’ve been discussing in another thread, using FB’s built-in log isn’t very practical for some purposes (notably, trying to parse the log automatically, or getting an “at a glance” view). But yeah, if it was important, I could always go into FB and check the actual status of that action to see how long it really took.
Steve