TeamCity On-Premises 2026.1 Help

管理代理池

代理池将构建代理分组并控制哪些项目可以使用它们。 teamcity pool 命令组允许列出池子、视图池子详情以及管理项目与池子的关联。

列出池子

视图所有已配置的代理池子:

teamcity pool list
列出代理池

以 JSON 格式输出:

teamcity pool list --json teamcity pool list --json=id,name,maxAgents

查看池详情

视图某个特定池子的详情,包括其代理和关联的项目:

teamcity pool view 0 teamcity pool view 1 --web teamcity pool view 1 --json
查看包含代理和项目的池详情

将项目链接到池

将项目链接到代理池,让该项目的构建可以在该池的代理上运行:

teamcity pool link 1 MyProject

第一个实参是池子 ID,第二个是项目 ID。

取消项目与池的关联

移除项目对池中代理的访问权限:

teamcity pool unlink 1 MyProject
2026年 8月 6日