简体   繁体   English

TFS 2012-不会删除生成代理文件夹

[英]TFS 2012 - Build Agent Folders Not Being Removed

We have a TFS 2012 Build Agent running automated builds in DEV environment using ReleaseDefaultTemplate.11.1.xaml Build Definition from Release Management for Visual Studio 2013. 我们有一个TFS 2012 Build Agent,它使用Visual Studio 2013的发行管理中的ReleaseDefaultTemplate.11.1.xaml Build Definition在DEV环境中运行自动生成。

Builds succeed, however the build agent workspace files/folders remain after files/folders are dropped in a separate location. 构建成功,但是在文件/文件夹放置在单独的位置之后,构建代理工作区文件/文件夹仍然保留。

Build agent workspace is set to: Build Agent工作空间设置为:

$(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath)

We want everything under $(BuildAgentId) to be deleted after each build. 我们希望在每次构建后删除$(BuildAgentId)下的所有内容。

"Clean Workspace" is set to "ALL" in the build definition, but files/folders are still not deleted. 在构建定义中,“清理工作区”设置为“全部”,但是文件/文件夹仍未删除。

Build Agent service is using an AD account with local admin rights. Build Agent服务正在使用具有本地管理员权限的AD帐户。

Any ideas? 有任何想法吗?

Clean all means that the workspace is changed at the beginning of the build. 全部清除意味着在构建开始时就更改了工作区。 Files are left at the end to facilitate this. 文件保留在末尾以方便执行此操作。

You can create a PowerShell that change the files and run It post build. 您可以创建一个PowerShell,以更改文件并在构建后运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM