VSO/VSTS:在主机代理上使用“发布生成工件"时出错 [英] VSO/VSTS: Error when using Publish Build Artifacts on the host agent
问题描述
在使用发布构建工件"任务时,在构建过程中(在获取源代码"之后)会引发以下错误:
When using the Publish Build Artifacts task, the following error gets thrown in the build (just after "Get sources"):
任务的定义没有与任何匹配的处理程序 受此代理支持.支持的处理程序:AzurePowerShell, AzurePowerShellHandler,PowerShell,PowerShellHandler,PowerShellExe, PowerShellExeHandler,流程,ProcessHandler
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)主机代理.
I am using the VSTS (formally known as VSO) Host Agent.
推荐答案
我也可以重现此问题.检查了"发布构建工件的源代码. ,此问题似乎是由于缺少PowerShell脚本引起的.我可以帮助您向MS提交反馈,您可以在此处跟踪状态
I can reproduce this issue too. Checked the source code for "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.
目前,您可以使用复制和发布构建工件"任务来发布工件.
For now, you can use "Copy and Publish Build Artifacts" task to publish your artifacts.
这篇关于VSO/VSTS:在主机代理上使用“发布生成工件"时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!