It's all about the answers!

Ask a question

Build definition: how to clean a workspace like git-clean


Philippe Kaplan (6848) | asked Oct 19 '12, 11:37 a.m.
Is there the equivalent of git-clean in RTC, which recursively remove files that are not under version control ?

My build sometimes leaves random files in the source tree which may break next build in the same workspace. I know this is bad, but I can't avoid that and I don't have the exact list of such files.

To be sure the next build will run on a clean workspace, I checked the 'delete workspace' in the build definition.The problem is that it's much slower to checkout all the sources than updating them.


One answer



permanent link
Ralph Schoon (63.1k33646) | answered Oct 22 '12, 4:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi, you can check the delete directory before loading option.



As an alternative you can use a new folder for each build. This however has more consequences to consider. See: https://jazz.net/library/article/797 and https://jazz.net/library/article/807 for more details.

Your answer


Register or 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.