Reputation: 532
Is there any way of making the build in VSTS/Azure DevOps wait until another build in the same CI is done. I want to be able to use the Hosted agent but be able to do that. I don't want to use my own agent.
Upvotes: 1
Views: 1548
Reputation: 21
If you are using Classic way of configuring Azure Pipelines (Not using YAML),
then you may try to add Agent.Name equals "One of the available Agent name" condition in Demands section. You will find "Demands" section where you configure Agent Pool in Azure Pipelines.
Upvotes: 0
Reputation: 4896
If you create your Azure DevOps Pipelines CI build using YAML, you can do that. Using dependsOn
will enforce sequential jobs build.
For example:
jobs:
- job: Debug
steps:
- script: echo hello from the Debug build
- job: Release
dependsOn: Debug
steps:
- script: echo hello from the Release build
See also the official doc: https://learn.microsoft.com/en-us/azure/devops/pipelines/process/phases?view=azure-devops&tabs=yaml#dependencies
Upvotes: 1