Is there any functionality in place to automatically clean an agents working directory? An issue we are having is that we have many projects whose working directory can be quite large and in turn, because the agent does not automatically delete old build folders, we can run out of space on the agent, causing current builds to fail. Is there a way to configure the agent to clean up these old builds? Perhaps, to make sure that before starting a build there is a certain threshold of available space? Or, delete the build folder after completing a successful build? In our case, all of our builds start off clean so there is no need to keep the folders between builds.
Any suggestions before I write a script to do it?