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

安稳与你 提交于 2019-12-10 10:04:51

问题


When using the Publish Build Artifacts task, the following error gets thrown in the build (just after "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

I am using the VSTS (formally known as VSO) Host Agent.


回答1:


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.



来源:https://stackoverflow.com/questions/33917308/vso-vsts-error-when-using-publish-build-artifacts-on-the-host-agent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!