Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Team foundation server's automated build is not getting the latest code

Tags:

tfs

I have setup a build controller etc and the builds were failing, I have fixed these now and the build failed properly - as in because of an error.

I have fixed the error and checked the code back in but now the code is not being extracted, although sometimes one folder of many is.

I have deleted the code from the build machine and requeued a build but it keeps failing. It complains that it cannot find the solution that I specified as the build solution.

I have checked the check box to build even if nothing has changed. Have I missed a setting somewhere for extracting the code?

TFS version is 2012 Express Visual Studio version is 2010 Professional

like image 243
Stefan Avatar asked Jan 13 '23 19:01

Stefan


1 Answers

I had this issue recently with TFS 2012. I think it boils down to this:

In the lastest build definition files, it appears that it performs a Clean task before updating the workspace. This means that if you do something that causes the Clean part of the build to fail, it will never download the new files in order to fix it.

Recently, I was making big changes to my build file and inevitably made a lot of mistakes, I found that if one of these mistakes caused the Clean to break, I had to go onto the Build server and change the file manually to get it working again.

Does this sound like it might be the same issue?

like image 75
gregpakes Avatar answered Feb 02 '23 12:02

gregpakes