Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I associate a project to an agent pool on TeamCity?

For my automated tests I have a project added to TeamCity server and 2 Agent Pool, one is a Windows Server and the other one is a MAC. The default agent pool is WIN but I wanted to run my tests on the MAC server. To change the agent pool to MAC, I tried to add Agent Requirement by setting teamcity.agent.name to the MAC server from the list but it is not added to list of compatible agents associated with the project, but added to compatible agents with this warning on top of it: Following agents belong to the agent pools which are not associated with "Tests" project where Tests is the name of my project.

How can I associate it MAC agent to my project?

like image 703
Mahsa Mortazavi Avatar asked Apr 28 '15 16:04

Mahsa Mortazavi


People also ask

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 add a project on TeamCity?

To add your first project, click Administration in the upper right corner of the TeamCity UI and then click Create project. There are several ways to create a project in TeamCity: automatically from a repository URL, from a connection to a specific VCS, or manually.


Video Answer


1 Answers

You'll have to add the MAC agent to the agent pool for this project - that's configured in the Agent section available at /agents.html?tab=agentPools for your TeamCity build server.

Alternatively you can create a new agent pool with the MAC agent, and add the project to that pool.

like image 155
BrokenGlass Avatar answered Sep 19 '22 16:09

BrokenGlass