Skip to content

Instantly share code, notes, and snippets.

@davidstaheli
Last active May 24, 2021 06:34
Show Gist options
  • Save davidstaheli/6bd694dff10fbb0c98d42299bb282a64 to your computer and use it in GitHub Desktop.
Save davidstaheli/6bd694dff10fbb0c98d42299bb282a64 to your computer and use it in GitHub Desktop.
Fan out, fan in with Azure Pipelines
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