Reputation: 923
We have a Multi-Stage YAML Pipeline that consists of 20 stages and 4 Hosted Agents. 5 specific stages must not be running at the same time, these specific stages must not be running more than 2 at the same time. Is there a syntax for that?
Upvotes: 0
Views: 118
Reputation: 76986
Azure DevOps Multi-Stage Pipelines. Running Throttled Amount of Stages
You could try to set the same environment for those 5 specific stages. then add a Exclusive Lock in Approvals and checks
for this environment, which limit access to this resource to only a single stage at a time:
Environments
-> Select the Environment-> Approvals and checks
->See all
:
Upvotes: 1