VSO/VSTS:在主机代理上使用 Publish Build Artifacts 时出错

VSO/VSTS: Error when using Publish Build Artifacts on the host agent

使用 Publish Build Artifacts 任务时,构建中会抛出以下错误(就在 "Get sources" 之后):

The definition for the task does not have a handler that matches any supported by this agent. Supported handlers: AzurePowerShell, AzurePowerShellHandler, PowerShell, PowerShellHandler, PowerShellExe, PowerShellExeHandler, Process, ProcessHandler

我正在使用 VSTS(正式名称为 VSO)主机代理。

我也可以重现这个问题。检查了“Publish build artifacts", this issue seems to be caused by the PowerShell script is missing. I have help you submit a feedback to MS, you can track the status here.

的源代码

现在,您可以使用 "Copy and Publish Build Artifacts" 任务来发布您的工件。