TeamCity prevents branch assembly at the same time

I have a Git installation with a typical structure of master → development →. I have 5 TeamCity build agents (v8.1). Is it possible to configure TeamCity so that if several people are committed to developing at the same time, the development branch will not start parallel assemblies? Part of our CI process is deployment upon successful completion, so I don't want two assemblies to be deployed to the same endpoint at the same time.

(I would like this setting for all branches, not just for development)

+4
source share
3 answers

On the settings page of the general settings, you can set the number of simultaneous assemblies to 1 instead of 0 for unlimited. This means that he is standing in line, they say 5 lines, but only 1 will be launched at a time.

+5
source

Are you trying to prevent multiple checks in one branch from creating multiple assemblies for this branch? You can do this without changing the concurrency settings by setting some parameters in the VCS Trigger part of your build configuration. There is a parameter “Silent period”, which waits X seconds before assembling, in case several commits appear at once.

Here is a screenshot of the corresponding menu in TeamCity 8.x :

Screenshot of the TeamCity menu for configuration the quiet period on a build configuration.

: - . , . 1+. , , , , .

+4

, :), 1 build max , , . , , 120 180 , .

0

Source: https://habr.com/ru/post/1526782/


All Articles