Rob Bowman
Rob Bowman

Reputation: 8711

TFS 2010 Team Build Get Sources After Deleting Source Directory on Build Machine

I have a TFS Build that runs overnight. The build source can be found on the agent in c:\build\3\poject\build def\Sources.

The \Sources folder was accidentally deleted (guilty). I would have expected TFS to "Get" the latest source prior to the next build. It seems that it doesn't do this - it just complains that it can't find any of the sources to build.

Can anyone please tell me how I force TFS to get the latest sources to the build agents \sources folder?

Upvotes: 2

Views: 709

Answers (2)

Dylan Smith
Dylan Smith

Reputation: 22245

Under the Build Definition -> Process what is the Clean Workspace parameter set to? If it is set to All it should cause the entire source to be downloaded on each build.

Clean Workspace Option

Upvotes: 2

Taylor Lafrinere
Taylor Lafrinere

Reputation: 3104

There should be a way to cause a full redownload of source from the build definition but I am not seeing an option right now. You should be able to fix this on the build machine itself. If you cd into the Source directory and then run tf get /force it should redownload all of the content. Subsequent builds after this should work.

Upvotes: 1

Related Questions