问题
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.
回答1:
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:
来源:https://stackoverflow.com/questions/58687425/how-to-use-specific-private-agent-under-agent-pool-without-yaml