Hello.
Sometimes I get build failures due to a cat unplugging the cat-5 cable, making the source repo unavailable.
This is detected of course, but it seems that if you have something like a postamble (something to do after a build happens, could be custom or not) it will be executed regardless of the state of what happened in the build.
I think it would be prudent to have some sort of conditional applied to an exec block so that it should or shouldn't be executed if the previous task(s) were in a "failed" state.
Does that make sense?
So...something like <exec alwaysRun="true|false"/>
If alwaysRun is set to false, then if there was an aggregate failure (ie source could not be obtained, or build failed, or whatever returned a fail status) then this execution block would not be run.
Anyway, aside from that possible hairbrained idea :) .... maybe pushing it to the script in the exec block itself could be employed.
I wonder what variables from
CC.NET I can use to pass to the script in the exec block, to garner that previously failed state?
Does anyone know?
Thanks in advance.