Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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!

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 07 '11, 5:07 p.m.

Question was seen: 4,509 times

Last updated: Apr 07 '11, 5:07 p.m.

Confirmation Cancel Confirm