Agents for https://dev.azure.com/ref12/9ad4586c-d584-42dd-81cc-a3a95b83ba9b/_release?releaseId=591&_a=release-summary - $(System.DefinitionName) - 0.20230914.3 #515
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
{ | |
"name": "RunnerDispatch", | |
"run-name": "Agents for ${{ inputs.buildNumber }}", | |
"on": { | |
"workflow_dispatch": { | |
"inputs": { | |
"runnerIds" : { | |
"description": "List of comma separated integer ids for the runners.", | |
"required": true, | |
"default": "1, 2" | |
}, | |
"buildNumber" : { | |
"description": "The requesting pipeline build number.", | |
"required": true, | |
"default": "unknown" | |
} | |
} | |
} | |
}, | |
"jobs": { | |
"build": { | |
"strategy": { | |
"matrix": { | |
"runnerId": "${{ fromJSON(format('[{0}]', inputs.runnerIds)) }}" | |
} | |
}, | |
"runs-on": "windows-latest", | |
"steps": [ | |
{ | |
"name": "Checkout repository", | |
"uses": "actions/checkout@v2" | |
}, | |
{ | |
"name": "Run PowerShell script", | |
"env": { | |
"AZP_URL": "${{ secrets.AZP_URL }}", | |
"AZP_TOKEN": "${{ secrets.AZP_TOKEN }}", | |
"AZP_POOL": "RunnerPool", | |
"AZP_WORK": "C:/azdev/agent", | |
}, | |
"run": "Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass\n./startup.ps1\n" | |
} | |
] | |
} | |
} | |
} |