I have setup 2 private agents under agent pool but when I run the pipeline I want a specific agent to run the pipeline but its not happening.
How to select or where to select specific agent to run the pipeline with YAML configuration.
For more information, see the YAML schema for pools. To choose a pool and agent in the classic editor, navigate to the pipeline settings, select the desired Agent pool, and then the desired image from the Agent Specification drop-down. The default Agent Specification is windows-2019.
You need to specify a demand with your agent name you want. you enter the demand in the yaml after the pool name:
pool:
name: Private
demands: Agent.Name -equals Test
More info you can find here.
Without YAML the demands exist under the Options tab:
Or per job:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With