Restricting concurrent builds

Hi,

I am wondering if we can restrict builds on same branch. Let's say there is a feature branch "feature-1", the build is triggered by git refresh rate. If there is a new commit on the same branch then can we cancel the previous build and build the new one? 

0
1 comment

Hi Somarjun.

This isn't currently possible, the option here would be to increase the quiet period to something that spans the build time. We have this request for your scenario in our tracker https://youtrack.jetbrains.com/issue/TW-1858, please feel free to watch, vote and add comments if you consider your scenario isn't properly considered.

Just keep in mind that this has a number of drawbacks in the scenario of teamcity tracking changes and tests through different builds. To simply stop builds from taking over agents allowing only one concurrent build of the configuration, you can use a shared resource (https://confluence.jetbrains.com/display/TCD10/Shared+Resources). Simply set a resource to a quota of 1 and it will work.

0

Please sign in to leave a comment.