Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use specific private agent under agent pool without YAML?

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.

like image 884
PDBR Avatar asked Nov 04 '19 05:11

PDBR


People also ask

How do I specify agent pool in YAML?

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.


Video Answer


1 Answers

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

like image 170
Shayki Abramczyk Avatar answered Nov 15 '22 10:11

Shayki Abramczyk