Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity prevent simultaneous branch builds

Tags:

git

teamcity

I have a Git setup with the typical master --> develop --> feature structure. I have 5 TeamCity (v8.1) build agents. Is it possible to configure TeamCity so that if multiple people commit to develop at the same time, the develop branch won't run concurrent builds? Part of our CI process is deploy-on-success, so I don't want two builds to be deploying to the same endpoint at the same time.

(I would want this setup for all branches, not just develop)

like image 348
Matt Avatar asked Feb 13 '14 17:02

Matt


1 Answers

On the General Settings configuration page you can set the number of simultaneous builds to 1 instead of 0 for unlimited. This means that it am queue up say 5 builds but only 1 will run at a time.

like image 58
Welsh Avatar answered Sep 21 '22 22:09

Welsh