azure-devops - 错误 : More than one package matched with specified pattern Azure Function Release Pipeline in Azure DevOps

标签 azure-devops azure-functions azure-pipelines devops azure-pipelines-release-pipeline

我已经成功配置 build我的 Azure Function 的管道配置在 Azure DevOps .现在我正在使用 Azure App Service Deploy 配置发布管道任务,我总是收到错误消息“Error: More than one package matched with specified pattern: d:\a\r1\a\**\*.zip. Please restrain the search pattern.

enter image description here

有人遇到过这个问题吗?任何帮助都非常感谢。

最佳答案

最后我能够弄清楚这个问题。这背后的原因是,您的解决方案中有许多项目,并且每个项目在工件中都有自己的 zip 文件夹,因此要解决此问题,我们应该在管道任务的包部分中指定我们的 Azure 函数项目。

单击 Azure 应用服务部署任务,然后转到包或文件夹部分,然后单击三个点。

enter image description here

现在您应该可以选择正确的 zip 文件。

enter image description here

现在再次创建发布,您应该看到发布成功。

enter image description here

希望能帮助到你。

关于azure-devops - 错误 : More than one package matched with specified pattern Azure Function Release Pipeline in Azure DevOps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56950661/

相关文章:

Azure函数ModuleNotFound错误 'azure.keyvault'

azure - Azure DevOps 中生成的 PAT key 未显示在概述中

Azure管道: How to block pipeline A if pipeline B is running

Azure devops 分支控制不应验证模板文件的分支

azure - 静默安装 Azure 部署代理

azure - 独占锁管道级别 - Azure

azure - 功能应用程序时间触发器不起作用

azure-functions - Application Insights 和 Azure Functions - 跟踪分布式操作

pandas - 在 Azure 函数上使用 Pandas 库

xml - 如何访问 log4net 附加程序文件值并在 azure 管道中替换