In the project i'm working on, when i run some of the pipelines, they are configure to use by default an old agent pool that supposedly doesn't exist anymore.
If i go to Project settings > Agent pools
i don't see it there anymore.
My question is if when i run the pipeline
If there is any place i can use to tell if the pipeline is using a self-hosted or microsoft-hosted agent?
CodePudding user response:
The pipeline logs show you which pool and which agent are being used:
Starting: Initialize job
Agent name: 'ReleaseServerB-A002'
Agent machine name: 'ReleaseServerB'
Current agent version: '2.195.2'
CodePudding user response:
You can use the variable Agent.Name If you want to write out or do something specific according to the agent.