Scheduled clean sources

Currently there is the option to clean the source of a vcs root. Either by the vcs root option:Clean all sources before build, or by cleaning  the agent.
Is there a way of scheduling the clean someway? Icant afford to clean the sources with every build (as my sync is way to sloow and my codebase bloated), but because im using TFS (not by choice) my code can go crusty, so id like to able to set the source clean every weeek, day etc. Ta.

4 comments
Comment actions Permalink

Have you considered using Build Files Cleaner?
I think it would be more reliable solution.

Michael

0
Comment actions Permalink

What about having the "Clean sources on this agent" option available through the REST API?

0
Comment actions Permalink

Hi Andrea

You can use "undocumented" call to http://teamcity/ajax.html?resetSources=<agentID>
Accessing Server by HTTP article lists such requests.

0
Comment actions Permalink

Thank you Michael!

0

Please sign in to leave a comment.