I have the following needs in developing a pipeline on Azure Devops with our own instances running as agents:
- I need stages to execute concurrently
- Each stage needs to be guaranteed to execute on its own agent
I have #1 going. The problem is that I am running into resource and port contentions. I am outputting the build ID on stage runs and they often report the same agent:
steps:
- task: Bash@3
displayName: Debug
inputs:
targetType: 'inline'
script: |
echo "Agent ID: $(Agent.Id)"
How do I make sure that each agent only runs one stage and/or job at a time?