Areasta
Areasta

Reputation: 57

Builds are always in "Queue" Status in Visual Studio 2010 (TFS 2010)

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 with this article : http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html

Could someone tell where the problem could come ?

Upvotes: 0

Views: 3714

Answers (5)

Amit
Amit

Reputation: 1

If you having admin access on build server, open TFS admin console and restart your agent or controller services and try again.

Upvotes: 0

sandos
sandos

Reputation: 852

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.

Upvotes: 0

Suresh
Suresh

Reputation: 1

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...!");

Upvotes: 0

Areasta
Areasta

Reputation: 57

Ok.. I just created a new Build agent.. with 2 build agents (only one used) my builds run ! (I dont know why..)

Upvotes: 1

Jehan33
Jehan33

Reputation: 3780

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****. enter image description here

Upvotes: 0

Related Questions