Execute final step when build fails
I have a final step that removes a list of temp files created in my build. The thing is when the build fails, I'd like a way to execute that final step and not to stop at the step that failed. And I can't use the "continue on fail" property on every step. Any idea how can I do it?
Thanks in advance!
Thanks in advance!
One answer
I have a final step that removes a list of temp files created in my build. The thing is when the build fails, I'd like a way to execute that final step and not to stop at the step that failed. And I can't use the "continue on fail" property on every step. Any idea how can I do it?
Thanks in advance!
I would suggest that you convert that final cleanup step into a library. Then the final step would just inline that cleanup library which would handle the success cases. For the failure cases, I would suggest setting a Fail Chain on the project that calls this cleanup library as well.
Regards,
David