I've two different pipelines with 3 enabled agents. My problem is that one of my pipelines fails if has multiple builds running at same time (because tets are running into conflict), so I want to queue an build request if there is another one running for this specific pipeline.
The first thing i've tried it's use capabilities and demands to identify one agent, so always has only one agent available to this pipeline, but it doesn't work with Microsoft-hosted agents and that it's what i have. Then I thought that maybe creating 2 agent pools I can specify on my pipeline config to use one of them, but one more time I can't create multiple pools for Microsoft-hosted agents
How can I prevent multiple builds running at same time?
Thanks!