【问题标题】:How to use vmImage on pipeline using Azure DevOps Server?如何使用 Azure DevOps Server 在管道上使用 vmImage?
【发布时间】:2020-12-20 05:39:31
【问题描述】:

按照文档 here,我正在尝试在 Azure Devops Server 中使用 vmImage: 'ubuntu-latest'

如何在我的 Azure DevPps 服务器中使用 vmImage: 'ubuntu-latest'

【问题讨论】:

  • 没有获得您的最新信息,解决方法对您有帮助吗?或者,如果您有任何疑虑,请随时在此处分享。提醒一下this~

标签: azure-devops agent azure-devops-self-hosted-agent azure-devops-server


【解决方案1】:

我们不能在 Azure DevOps Server 中使用 ubuntu-latest

这些 VmImage 仅适用于 Microsoft-hosted agents,而 Microsoft 托管的代理仅适用于 Azure Devops 服务

请查看the documentation的声明:

Microsoft 托管的代理仅适用于 Azure DevOps Services, 它托管在云中。 您不能使用 Microsoft 托管的代理 或 Azure Pipelines 代理池带有本地 TFS 或 Azure DevOps 服务器。对于这些本地版本,您必须使用自托管 代理。

由于您使用的是 Azure Devops 服务器,因此您应该安装 Self-hosted agents。关于如何在自托管代理池中选择特定代理,您可以查看demands语法了解更多详情。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-12-17
    • 2021-09-23
    • 1970-01-01
    • 2022-01-02
    • 1970-01-01
    • 2021-11-01
    • 2020-03-11
    相关资源
    最近更新 更多