【发布时间】:2021-12-28 10:07:49
【问题描述】:
我在 YAML 文件中定义了管道,其中存在以下部分
jobs:
- displayName: Name X
pool: pool1
我在运行日志中看到了Agent name: 'agent1'(agent1 是pool1 的一部分)。
到目前为止,一切看起来都不错。但是,当我在命令下运行时(11764 是我的管道的构建之一),我收到:
$ az pipelines runs show --org=${ORG} --project="${PROJECT}" --id 11764 | jq .queue
{
"id": 9,
"name": "Azure Pipelines",
"pool": {
"id": 9,
"isHosted": true,
"name": "Azure Pipelines"
},
"url": null
}
问题是。我应该以不同的方式还是在另一个级别上定义池?或者也许有什么我没有考虑到的?
【问题讨论】:
-
什么是
pool1?是 MS 池还是私人池? -
在您的管道 yaml 中,作业定义看起来不正确;不应该以
-job: NameX开头吗? -
pool1是一个私有池
标签: azure-devops azure-pipelines