简体   繁体   中英

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.

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:

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

We want everything under $(BuildAgentId) to be deleted after each build.

"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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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