Last active
May 24, 2021 06:34
-
-
Save davidstaheli/6bd694dff10fbb0c98d42299bb282a64 to your computer and use it in GitHub Desktop.
Fan out, fan in with Azure Pipelines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
containers: | |
- container: u14 | |
image: ubuntu:14.04 | |
- container: u16 | |
image: ubuntu:16.04 | |
- container: u18 | |
image: ubuntu:18.04 | |
jobs: | |
- job: InitialJob | |
pool: | |
vmImage: 'Ubuntu 16.04' | |
steps: | |
- script: echo hello from InitialJob | |
- job: FanOutA | |
dependsOn: InitialJob | |
pool: | |
vmImage: 'Ubuntu 16.04' | |
steps: | |
- script: echo hello from FanOutA | |
- job: FanOutB | |
dependsOn: InitialJob | |
pool: | |
vmImage: 'Ubuntu 16.04' | |
steps: | |
- script: echo hello from FanOutB | |
- job: FanIn | |
dependsOn: | |
- FanOutA | |
- FanOutB | |
pool: | |
vmImage: 'Ubuntu 16.04' | |
strategy: | |
maxParallel: 3 | |
matrix: | |
ubuntu14: | |
containerResource: u14 | |
ubuntu16: | |
containerResource: u16 | |
ubuntu18: | |
containerResource: u18 | |
container: $[ variables['containerResource'] ] | |
steps: | |
- script: echo hello from FanIn running in 1 of 3 containers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment