TFS 构建服务器 2015 卡在等待可用代理上
TFS build server 2015 stuck on waiting for an available agent
我正在使用 TFS 构建服务器 2015,我正在尝试 运行 构建,但构建始终停留在
waiting for an available agent
上 2-3 分钟,然后失败。
我试图下载 log.zip 但它是空的。
当我 运行 来自 cmd 的代理时,出现下一条消息:
The Agent failed to start this job. Error: An error occurred while
sending the request
我检查了事件查看器中的所有日志,完全没有错误。
我也尝试重新安装代理,但似乎没有任何帮助。
我的配置过程:
编辑:
我发现了问题。在 Team Foundation 管理控制台中,"Notification URL" 的 属性 具有不存在的服务器的无效值。
如果您的构建需要特定功能,那么代理必须具有这些功能。
When a build is queued, the system sends the job only to agents that have the capabilities demanded by the build definition.
检查构建定义要求和代理产品:在文档 Demands section 中有明确描述。
确保代理 运行 所属的帐户处于 "Agent Pool Service Account" 角色。
尝试更改属于 "Agent Pool Service Account" 角色的 Build Agent Service Accounts 组成员的域帐户,以查看代理是否工作。
添加截图:
我发现了问题。在 Team Foundation 管理控制台 中,"Notification URL" 的 属性 具有 无效值 不存在的服务器。
我正在使用 TFS 构建服务器 2015,我正在尝试 运行 构建,但构建始终停留在 waiting for an available agent
上 2-3 分钟,然后失败。
我试图下载 log.zip 但它是空的。
当我 运行 来自 cmd 的代理时,出现下一条消息:
The Agent failed to start this job. Error: An error occurred while sending the request
我检查了事件查看器中的所有日志,完全没有错误。
我也尝试重新安装代理,但似乎没有任何帮助。
我的配置过程:
编辑: 我发现了问题。在 Team Foundation 管理控制台中,"Notification URL" 的 属性 具有不存在的服务器的无效值。
如果您的构建需要特定功能,那么代理必须具有这些功能。
When a build is queued, the system sends the job only to agents that have the capabilities demanded by the build definition.
检查构建定义要求和代理产品:在文档 Demands section 中有明确描述。
确保代理 运行 所属的帐户处于 "Agent Pool Service Account" 角色。
尝试更改属于 "Agent Pool Service Account" 角色的 Build Agent Service Accounts 组成员的域帐户,以查看代理是否工作。
添加截图:
我发现了问题。在 Team Foundation 管理控制台 中,"Notification URL" 的 属性 具有 无效值 不存在的服务器。