I'm new to TFS and have a big problem when I want to make builds in VS2010.
The builds don't run, they are always in Queue status (no error message). It's as if nothing happened. I searched all around the Internet and didn't find a solution to this problem.
The TFS Server is already configured (the Build agent and controller are successfully tested, MsDeploy full installed) and I have a public Drop folder (\MyServer\Drops ==> C://Drops) on my server (configured with a domain account with full rights on the directory).
My goal is to build and deploy my .net MVC project via TFS on the server (win server 2008 r2).
I initially started wit开发者_运维知识库h this article : http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html
Could someone tell where the problem could come ?
Ok.. I just created a new Build agent.. with 2 build agents (only one used) my builds run ! (I dont know why..)
Make sure that Build Controller and Build Agent both are running successfully. Go to Team Menu in Visual Studio and Click on Manage Build Controllers. It will open Manage Build Controller window,checkthat both Controller and Agent shows ****Status** as **Available****.
See the below code to check Queued Build status.
IQueuedBuild queBuild = buildServer.QueueBuild(request);
Console.WriteLine("Build queued...!");
while (true)
{
Thread.Sleep(5000);
queBuild.Refresh(QueryOptions.All);
Console.WriteLine("Refreshed...!");
if (queBuild.Status == QueueStatus.Completed || queBuild.Status == QueueStatus.Canceled)
{
break;
}
}
Console.WriteLine("Build Completed...!");
Try changing the parameter "Maximum number of concurrently running builds" on the Build Controller Properties page. This instantly solved it for me. The default is the same as the number of enabled Build Agents, and "running builds" is apparently including queued builds. So adding agents will solve this but if the added Agents are not used its not a good solution.
If you having admin access on build server, open TFS admin console and restart your agent or controller services and try again.
精彩评论