Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force TeamCity to build on a specific agent

Tags:

teamcity

Is it possible, without disabling all other connected agents, to force TeamCity to build on a specific agents machine?

like image 631
El Toro Bauldo Avatar asked Oct 21 '09 13:10

El Toro Bauldo


People also ask

How do you trigger a build in TeamCity?

To run a custom build with specific changes, open the build results page, go to the Changes tab, expand the required change, click the Run build with this change, and proceed with the options in the Run Custom Build dialog. Use HTTP request or REST API request to TeamCity to trigger a build.

How do I authorize a build agent on TeamCity?

If a build agent is installed and running on the same computer as the TeamCity build server, it is authorized automatically. Agents are manually enabled/disabled via the web UI. The TeamCity server only distributes builds to agents that are enabled.

How do I change my agent pool in TeamCity?

To bind certain projects to an agent pool, open the Projects tab, click Assign projects, and select the required projects. You can choose to detach them from their previous pools, if necessary. After you save the settings, TeamCity will only be running builds of these projects on the agents from the current pool.


1 Answers

Under Build Configuration Settings go to Agent Requirements and set an Explicit Requirement for the specific agent name:

Parameter Name: system.agent.name

Condition: equals

Value: YOUR_SPECIFIC_AGENT_NAME

like image 77
Jim Geurts Avatar answered Oct 10 '22 15:10

Jim Geurts