any way to restrict an agent from being auto-selected for a job, but still enable manual selection?
I want one agent to be reserved for doing special builds - I don't want it to be able to be selected automatically by Team City. But I don't want to exclude it using Agent Requirements, because I want to be able to select that machine manually through the REST API. How to do that?
Please sign in to leave a comment.
Please check the Run Configuration Policy for agents: https://www.jetbrains.com/help/teamcity/assigning-build-configurations-to-specific-build-agents.html#Establishing+a+Run+Configuration+Policy
One way to implement this is to have a separate build configuration without the triggers assigned to this agent and trigger it when needed with API requests. For ease of maintenance, both build configurations (with triggers and without) may be based on the same template, so changing the template will change both configurations: https://www.jetbrains.com/help/teamcity/build-configuration-template.html
Best regards,
Anton