TFS Build Server磁盘空间问题,可以删除Build目录下的文件夹吗 [英] TFS Build Server Disk Space Issue, is it ok to delete folder under Build Directory

查看:23
本文介绍了TFS Build Server磁盘空间问题,可以删除Build目录下的文件夹吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TFS Build 服务器上的磁盘空间即将用完.我注意到 Build 目录有 1-N 个文件夹.里面是完整的二进制源等.

We are running out of the disk space on TFS Build server. I noticed that Build directory has 1-N folders. Inside it is the full binary sources etc.

有人可以确认删除这些文件夹是否安全吗?

Could someone please confirm if it's safe to delete these folders?

推荐答案

build 文件夹是通过获取源代码然后运行工具(编译器、单元测试等)生成输出来生成的.

The build folder is generated by getting sources and then running tools (compilers, unit tests, etc) to generate outputs.

在大多数情况下,删除构建文件夹是安全的 - 但是,在某些情况下,例如当您使用增量构建时,构建之后可能无法正常工作......在增量构建的情况下,您需要强制例如,一个完整的构建来重新填充所有需要的源代码.但是,如果您创建了构建,那么您应该可以轻松解决此类问题.

In most cases it is safe to delete the build folder - however, there are situations such as when you are using incremental builds where the build may not work correctly afterwards ... in the case of incremental builds, you need to force a full build to repopulate allthe source code that is needed, for example. However, if you created the build then you should have no problem sorting out these kinds of issues.

尤其是单元测试有随着时间的推移积累大量历史数据的习惯.

Unit tests in particular have a habit of accumulating lots of historical data over time.

还要检查您的放置文件夹 - 这将随着时间的推移而建立,因为默认情况下会保留每个构建.您可能希望将这些构建存档在另一台服务器中,或者在一段时间后删除构建.您还可以配置(在构建定义中)保​​留多少构建,因此对于 CI 构建,您可能希望将其设置为 5 而不是默认的无限制.

Also check your drop folder - this will build up over time as every build is retained by default. You may wish to archive these builds in another server, or delete builds after a certain time. You can also configure (in the build definition) how many builds are kept, so for CI build you may wish to set this to 5 rather than the default of unlimited.

使用 TFS 清理的另一个重要位置是临时文件夹.转到构建用户帐户(C:/users/build/appdata/local/temp)并定期清理它,因为 TFS 往往会留下很多混乱(在旧版本中,它会在创建 65536 后开始构建失败临时文件.希望现在已经修复)

Another important place to clean out with TFS is the temp folder. Go to the build user account (C:/users/build/appdata/local/temp) and clean it out periodically, as TFS tends to leave a lot of mess behind (and in older versions it would start failing the build after creating 65536 temp files. One hopes that has been fixed by now)

如果你仍然有空间问题,我会从 temp 开始,然后在别处寻找要删除的东西

I'd start with temp and then look elsewhere for things to delete if you still have a space problem

这篇关于TFS Build Server磁盘空间问题,可以删除Build目录下的文件夹吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆