Home > OS >  How can i know that a pipeline is using a microsoft hosted agent when running a pipeline?
How can i know that a pipeline is using a microsoft hosted agent when running a pipeline?

Time:12-25

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

enter image description here

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:

"Initialize job" pipeline log

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.

  • Related