6
votes

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
Hi, just want to check whether Shayki's answer and update could help you? If yes, Appreciate for marking it as an answer which will also help others in the community.Merlin Liang - MSFT

1 Answers

7
votes

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:

enter image description here

Or per job:

enter image description here