简体   繁体   English

在运行管道时,我如何知道管道正在使用 Microsoft 托管代理?

[英]How can i know that a pipeline is using a microsoft hosted agent when running a pipeline?

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.如果我将 go 转到Project settings > Agent pools ,我再也看不到它了。

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?如果有什么地方我可以用来判断管道是使用自托管代理还是微软托管代理?

The pipeline logs show you which pool and which agent are being used:管道日志显示正在使用的池和代理:

“初始化作业”管道日志

Starting: Initialize job开始:初始化作业
Agent name: 'ReleaseServerB-A002'代理名称:'ReleaseServerB-A002'
Agent machine name: 'ReleaseServerB'代理机器名称:'ReleaseServerB'
Current agent version: '2.195.2'当前代理版本:“2.195.2”

You can use the variable Agent.Name If you want to write out or do something specific according to the agent.您可以使用变量Agent.Name 如果您想根据代理写出或做一些特定的事情。

The answer of @VinceBowdren gives an hint how we can get information about the agent of the running pipeline. @VinceBowdren 的回答提示了我们如何获取有关正在运行的管道的代理的信息。

But specifically about the agent pools asked in the question, "Hosted" and "Hosted VS2017", they are deprecated microsoft hosted agents.但特别是关于“托管”和“托管 VS2017”问题中提出的代理池,它们是已弃用的微软托管代理。 Thats the reason they dont appear anymore in the agent pools list.这就是它们不再出现在代理池列表中的原因。

Pipelines that are configured using this agent pools will still be able to use them, but as soon as we save the pipeline to use another agent pool, it will not be possible to use them ever again.使用此代理池配置的管道仍然可以使用它们,但是一旦我们保存管道以使用另一个代理池,就不可能再次使用它们。

We can confirm that these agent pools were deprecated here https://docs.microsoft.com/en-us/azure/devops/release-notes/2019/sprint-155-update#single-hosted-pool我们可以确认这些代理池已在此处弃用https://docs.microsoft.com/en-us/azure/devops/release-notes/2019/sprint-155-update#single-hosted-pool

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何知道管道使用的是 Microsoft 托管代理还是自托管代理 - How can I know if the pipeline is using a Microsoft-hosted agent or self-hosted agent Azure Devops 管道,知道管道何时完成的方法,使用自托管代理 - Azure Devops pipeline , way to know when pipeline is done , using self hosted agent 如何在 Azure 管道 Microsoft 托管代理上升级 java 版本? - How to upgrade java version on an Azure pipeline Microsoft-hosted agent? “创建管道时出错。” 在 Azure 管道自托管代理中运行 powershell 脚本时 - "An error occurred while creating the pipeline." when running powershell script in Azure pipeline self-hosted agent 如何在 Azure 管道中托管 VM 映像来运行任务而不是使用自托管代理? - How to host a VM image in Azure pipeline to run the tasks instead of using self hosted agent? Azure 管道如何为托管代理构建使用更大的服务器? - Azure pipeline How to use bigger server for hosted agent builds? 如何在自托管的 Windows 代理中安装 Liquibase? (Azure Devops 管道) - How to install Liquibase in a self hosted Windows agent ? (Azure Devops Pipeline) 在 Azure 管道中运行 Docker 容器,该管道也在容器中运行的自托管代理上运行 - Running Docker container in Azure pipeline running on self hosted agent that is running in the container as well 在 azure 构建管道中,一旦推送自托管代理,如何清理 docker 图像(作为管道的一部分创建)? - In the azure build pipeline, how to cleanup the docker images (created as part of the pipeline) from self hosted agent once it is pushed? 托管代理失败的 Azure DevOps 构建管道 - Azure DevOps build pipeline with hosted agent failing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM