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.
Please sign in to leave a comment.
Have you considered using Build Files Cleaner?
I think it would be more reliable solution.
Michael
What about having the "Clean sources on this agent" option available through the REST API?
Hi Andrea
You can use "undocumented" call to http://teamcity/ajax.html?resetSources=<agentID>
Accessing Server by HTTP article lists such requests.
Thank you Michael!