I am looking for my nant build script to be able to clean up after myself if the build goes wrong. I am looking for something similar to the following execution:
Target= Software.Build
Target= Software.Build.Success *(depends on Software.Build succeeding)*
Target= Software.Build.Failed
I am looking for a solution that if the Software.Build target does not work, then Software.Build.Failed will be launched, for example. to send someone a message that the assembly didn’t work in some way, otherwise Software.Build.Success will be launched to continue the script construction.
Is this possible with nant? If so, can someone point me to a suitable article / solution?
source
share