How can I associate a project with an agent pool in TeamCity?

For my automated tests, I have a project added to the TeamCity server and 2 agent pools, one of which is Windows Server, and the other is MAC. The default agent pool is WIN, but I wanted to run my tests on the MAC server. To change the agent pool on the MAC, I tried to add the Agent Requirement by setting teamcity.agent.name to the MAC server from the list, but it was not added to the 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 to associate a MAC agent with my project?

+5
source share
1 answer

You will need to add the MAC agent to the agent pool for this project, which is configured in the "Agent" section, available in /agents.html?tab=agentPools for your TeamCity build server.

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

+10
source

All Articles