Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the impact of deleting a TFS build agent working directory?

Tags:

build

msbuild

tfs

My build agent working directories are starting to take too much space on the disk. I wonder if it is okay for me to delete some old folders, or if I should back them up.

What is the impact of deleting a TFS build agent working directory?

  • Are the labels affected?
  • Is the build history affected?
like image 597
alexandrekow Avatar asked Jan 03 '12 13:01

alexandrekow


1 Answers

You can do it if your builds are not incremental (incremental get). If your builds always get all source files for every build it is OK to delete working directories. Build history and labels are not affected. Your build logs are in the drop location and it shouldn't be a problem either.

It is a problem for incremental (at least from incremental get) builds. These builds are getting only the latest changes from the TFS source control before every build, not the whole workspace as defined in the build definition's workspace.

Check your build definition's Process → CleanWorkspace settings. If it is set to All, it should not be a problem to delete the build directory.

like image 58
Ludwo Avatar answered Oct 14 '22 08:10

Ludwo