Azure DevOps等到同一CI中的另一个构建



是否有任何方法可以使VSTS/Azure DevOps中的构建等待,直到完成同一CI中的另一个构建。我希望能够使用托管代理,但能够做到这一点。我不想使用自己的代理。

如果使用yaml创建Azure DevOps Pipelines CI构建,则可以做到这一点。使用dependsOn将执行顺序作业。

例如:

jobs:
- job: Debug
  steps:
  - script: echo hello from the Debug build
- job: Release
  dependsOn: Debug
  steps:
  - script: echo hello from the Release build

另请参阅官方文档:https://learn.microsoft.com/en-us/azure/devops/pipelines/process/process/phasses?view= azure-devops& tabs = yaml#dependendencies

如果您使用的是配置Azure Pipelines(不使用YAML(的经典方法,

然后,您可以尝试添加代理。NAME等于"需求"部分中的"可用代理名称之一"条件。您会在Azure Pipelines中配置代理池的"需求"部分。

最新更新