小编Wel*_*ist的帖子

Azure DevOps YAML 自托管代理管道构建停留在定位自代理上

操作:我尝试在自托管 Windows 计算机上配置并运行简单的 c++ azure 管道。我对这一切都很陌生。我运行了下面的脚本。

预期:查看构建任务、显示任务和清理任务。看到你好词。

结果:错误,脚本找不到我的构建代理。

##[warning]An image label with the label Weltgeist does not exist.
,##[error]The remote provider was unable to process the request.
Pool: Azure Pipelines
Image: Weltgeist
Started: Today at 10:16 p.m.
Duration: 14m 23s
Run Code Online (Sandbox Code Playgroud)

信息与测试:

  1. 我的自托管代理名称是 Weltgeist,它是默认代理池的一部分。它是一台 Windows 计算机,上面有所有 g++、mingw 和其他相关工具。

  2. 我在本地尝试了构建任务,没有任何问题。

  3. 我使用 azure 'ubuntu-latest' 代理尝试了我的构建任务,没有任何问题。

  4. 我按照这些规范创建了自托管代理。我是 azure 存储库的所有者。 https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops

如何正确配置自托管代理的池 ymal 参数?我需要在服务器端执行额外的步骤吗?或者在 azure repo 配置上?对出了什么问题还有其他想法吗?


# Starter pipeline
# Start with a minimal pipeline that you can customize to build …
Run Code Online (Sandbox Code Playgroud)

c++ continuous-integration yaml g++ azure-devops

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

azure-devops ×1

c++ ×1

continuous-integration ×1

g++ ×1

yaml ×1