Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
Project Blocking
Permanently deleted user
Created
We need to Create a Blocking process that will not build a project if a different project is in the process of building. Is there any way that this can be done.
We have a slighty similar requirement, with two build configurations, A and B. We need to block any executions of B, if A is executing but only on main branch. If A is running but on any other branch than main, it should not block B.
Did you try to use Shared resources with Locks on resources on custom values to set the default branch in your VCS root? It seems to me that it could be a solution.
Not yet. How would it work? If I add the default branch as a custom value, the build config lock it regardless of which branch is it using. or not? Maybe if I lock on the current branch in BC A, and try to lock the default main on BC B?
Hi,
You can create shared resource for this purpose and add a write locks for needed build configurations.
Hi there,
We have a slighty similar requirement, with two build configurations, A and B. We need to block any executions of B, if A is executing but only on main branch. If A is running but on any other branch than main, it should not block B.
Hi Balogh,
Did you try to use Shared resources with Locks on resources on custom values to set the default branch in your VCS root? It seems to me that it could be a solution.
Regards,
Guilherme
Hi Guilherme,
Not yet. How would it work? If I add the default branch as a custom value, the build config lock it regardless of which branch is it using. or not? Maybe if I lock on the current branch in BC A, and try to lock the default main on BC B?
Thanks,
Mihály