Pause TeamCity projects while others are running

Id like to indicate that one build project should pause while another specified project is running.

In my case, there is project No. 1, which builds and deploys the compiled code to our servers and project No. 2, which runs Selenium tests on this deployed code. Testing can take a few minutes, and Id would like to make sure that assembly and deployment does not occur in the middle of testing.

So, Id like to stop # 1 (build) while running # 2 (test).

Dependencies or triggers do not provide this option, as far as I can tell. Can this be customized?

+4
source share
2 answers

There is a request to track TeamCity TW-3798 problems. You can vote and watch.

This functionality is currently under development. At the moment, you can use one of the functions provided by GroovyPlugin called StartBuildPrecondition. To ensure that only one assembly is executed, add the same write lock to both assemblies

+3
source

How we do this by restricting them to a single build agent. They are insured that only one works at a time.

0
source

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


All Articles