开发者

Trigger Teamcity-Build on VCS checkin only when queue is empty

开发者 https://www.devze.com 2023-01-15 01:30 出处:网络
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 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#PredefinedProp开发者_JAVA百科erties-ServerBuildProperties

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


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...


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号