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

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

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.


0 votes



One answer

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

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
× 1,202

Question asked: Oct 19 '12, 11:37 a.m.

Question was seen: 5,105 times

Last updated: Oct 22 '12, 4:36 a.m.

Confirmation Cancel Confirm