Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS 2010 build succeeds but fails to drop build in output folder

In my TFS 2010 build definition, if I have the setting CLEAN WORKSPACE = ALL, the directory (c:\builds\Binaries) on the TFS agent machine is deleted. While the build itself succeeds, its output fails to drop to the specified drop location. (The error: "TF270003: Failed to copy. Ensure the source directory c:\builds\Binaries exists and that you have the appropriate permissions.")

If (after first recreating the c:\builds\Binaries directory) I set CLEAN WORKSPACE = NONE, the build still runs successfully, without getting the drop error. However, there is still no build output, even though the setting DropBuild = True.

Why would the CLEAN WORKSPACE setting delete a directory without recreating it? Is there another setting used to recreate this directory on the build agent? Is there a downside to using CLEAN WORKSPACE = NONE? And when I use CLEAN WORKSPACE = NONE, and have a successful build, any ideas why the build is not being dropped to the output location, even though DropBuild = True? (Note that the build log does successfully drop to this location.)

Nothing is ever placed in c:\builds\Binaries during a successful build, even though I've opened up full permissions for everybody on that directory of the build agent server.

Any ideas would be appreciated.

like image 614
Kevin Avatar asked Jan 26 '26 09:01

Kevin


1 Answers

I experience similar issue when "Project to Build" path under "Process" is different from "Source Control Folder" of "Workspace" section.

The problem going away as soon as I changed the path to make sure they are match.

like image 145
Andy Li Avatar answered Jan 28 '26 05:01

Andy Li



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!