仅当队列为空时才在 VCS 签入时触发 Teamcity-Build

发布于 2024-09-16 16:41:07 字数 479 浏览 3 评论 0原文

我有一台 TeamCity (5.1.2) 服务器,当前有一个代理。白天,它是空闲的,除非有人手动触发构建。

我想触发 VCS-Changes 上的构建以使最近的构建可用。然而,当人们安排手动构建/测试等时,这不应该阻塞构建服务器,因为这具有优先权。有没有办法添加一个查看队列长度的构建条件?

我在文档中找不到这样的变量: http://confluence.jetbrains.net/display/TCD5/Predefined+ Properties#PredefinedProperties-ServerBuildProperties

对于这种情况是否有未记录的内容或其他合理的启发式?

I have a TeamCity (5.1.2) server with currently one agent. During the day, it is idle, unless somebody manually triggers a build.

I would like to trigger builds on VCS-Changes to have recent builds available. However, this should not clog the build server at times when people are scheduling manual builds/tests etc, since this has priority. Is there a way to add a build condition that looks at the queue length?

I could not find such a variable in the docs:
http://confluence.jetbrains.net/display/TCD5/Predefined+Properties#PredefinedProperties-ServerBuildProperties

Is there something undocumented, or another reasonable heuristic for this scenario?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

〃安静 2024-09-23 16:41:11

正如 Siydub 所说,TeamCity 允许 3 个构建代理,但这些代理不必位于单独的计算机上。您可以临时在同一台计算机上设置 1 或 2 个附加代理。一台服务器上的多个 TeamCity 构建代理

此外,如果有人要手动触发构建,他们可以将其构建推到队列顶部(它将在当前运行的构建之后构建)建造)。您可以通过单击要运行的构建的运行按钮旁边的省略号 (...) 来执行此操作。对话框底部有一个选项,用于将构建置于队列顶部。另外,您可以在构建队列选项卡上更改顺序或队列构建,这是通过拖放完成的。

As Siydub has said TeamCity allows for 3 build agents but these do not have to be on seperate machines. You could in the interim setup 1 or 2 aditional agents on the same machine.Multiple TeamCity Build Agents on one Server

Also if someone is going to trigger a build manually, they can bump their build to the top of the queue (It will build after the currently running build). You do this by clicking the ellipsis (...) next to the run button of the build you want to run. At the bottom of the dialog is an option to put the build at the top of the queue. Additional you can change the order or the queue builds on the build queue tab, this is done via drag and drop.

东北女汉子 2024-09-23 16:41:09

您只安装一个代理有什么特殊原因吗?即使在其免费专业版上,TeamCity 也最多允许 3 个代理。我们在一台功能中等的机器上安装了两个代理,没有出现任何问题。

无论如何,除了新的 构建队列优先级插件...

Any particular reason you only have one Agent installed? TeamCity allows up to 3 Agents even on its free Professional Edition. We've got two Agents installed on one moderately powerful machine and had no issues.

Anyways I can't think of anything that I've come across with TC that will help, apart from perhaps the new Build Queue Priorities plugin...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文