在Azure DevOps中,我使用多级YAML管道进行构建和部署。屏幕截图显示当前管道设置。我希望单独使用sandbox1,而不依赖于构建。
trigger: none
pr: none
stages:
- stage: 'Build'
jobs:
- job: 'Build'
pool:
vmImage: ubuntu-16.04
steps:
- checkout: none
- powershell: |
echo "Hello Testing"
- stage: 'Sandbox'
jobs:
- job: 'Sandbox'
pool:
vmImage: ubuntu-16.04
steps:
- checkout: none
- powershell: |
echo "Hello Testing"
- stage: 'DEV'
jobs:
- job: 'DEV'
pool:
vmImage: ubuntu-16.04
steps:
- checkout: none
- powershell: |
echo "Hello Testing"
- stage: 'QA'
dependsOn: ['DEV','DEV1']
jobs:
- job: 'QA'
pool:
vmImage: ubuntu-16.04
steps:
- checkout: none
- powershell: |
echo "Hello Testing"
- stage: 'PROD'
jobs:
- job: 'DEV'
pool:
vmImage: ubuntu-16.04
steps:
- checkout: none
- powershell: |
echo "Hello Testing"
- stage: 'sandbox1'
dependsOn: 'Build'
jobs:
- job: 'DEV1'
pool:
vmImage: ubuntu-16.04
steps:
- checkout: none
- powershell: |
echo "Hello Testing"
- stage: 'DEV1'
jobs:
- job: 'DEV1'
pool:
vmImage: ubuntu-16.04
steps:
- checkout: none
- powershell: |
echo "Hello Testing"这就是我希望拥有的管道结构:

我添加了示例YAML代码
有可能吗?
发布于 2020-07-23 03:18:33
抱歉搞混了。我错过了一个特写。您的需求能够实现,只需使dependsOn为空即可。检查下面的示例:
- stage: 'sandbox1'
dependsOn: [] # this removes the implicit dependency on previous stage and causes this to run in parallel

https://stackoverflow.com/questions/63027893
复制相似问题