WinBoss
WinBoss

Reputation: 923

Azure DevOps Multi-Stage Pipelines. Running Throttled Amount of Stages

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

Answers (1)

Leo Liu
Leo Liu

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:

enter image description here

enter image description here

Upvotes: 1

Related Questions