I couldn't find definitive answer: What is the difference in TFS2013 betwenn Clean workspace True/False and Clean build True/False. It's not easy to catch the build server while working and see really what's happening. I think that the difference is that clean workapce will delete the src
directory, while the clean build will delete the bin
/tst
dirs.
If it so - I can't understand why is there need to delete the src
directory though. It seems that the cleanst way to do build requires only to clean the work tree (along with bin
/tst
) and get latest above it, and not deleting it and get all the sources again.
If so - how can I perform this type of cleaning? Or I understood it wrong?
The background is that we have heavy sources (>1GB) and not very good network between the tfs server and the build server. We would glad to cut it off, but also clean the src
tree before the build.
For "Clean Workspace" setting, there are three options. And this setting is used to set whether to delete source/output folders in the build agent working directly. (by default is: $(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath))
However, I can't find Clean Build (True|False) setting, do you mean delete builds or Retention Policy?
For your scenario, you need to set "Clean Workspace" to be "Output", then the output folder is deleted but still have source folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With