Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS build broken - The directory is not empty on sources directory

I am having a problem with my build (TFS2010). All has been well with this build recently until today where I am now getting an error pretty much as soon as the build starts:

Delete Sources Directory (00:00) The Directory is not empty.

I have looked on the server and I see \builds\1\myproject\sources\ is empty.. there is nothing in there at all! The error hints towards that not being the case, but it is empty for sure.

I wonder if it should not be empty in this case? Can anyone advise me on what course of action I might take on this to get the build running again?

This is the log of the failed build:

Overall Build Process
00:00
Update Build Number
00:00
Create the Drop Location
00:03
Run On Agent (reserved build agent Default Agent - server1)
00:00
Delete Test Results Directory
00:00
Delete Binaries Directory
00:00
Delete Workspace
00:00
Delete Sources Directory
 The directory is not empty.

Many thanks for any help!

like image 436
bruceiow Avatar asked Sep 09 '13 10:09

bruceiow


2 Answers

This usually happens if some other process has a handle on the file system. Explorer or a command prompt window is often the culprit.

like image 70
James Reed Avatar answered Nov 16 '22 07:11

James Reed


I had come across this issue as one of the deployment folder in the "c:\" was openend. so close the folder and start your build will work. thanks

like image 5
Devanathan.S Avatar answered Nov 16 '22 07:11

Devanathan.S