【问题标题】:Error: More than one package matched with specified pattern Azure Function Release Pipeline in Azure DevOps错误:多个包与 Azure DevOps 中的指定模式 Azure Function Release Pipeline 匹配
【发布时间】:2023-03-23 03:46:02
【问题描述】:

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

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

【问题讨论】:

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


    【解决方案1】:

    我终于能够找出问题所在。这背后的原因是,您的解决方案中有许多项目,并且每个项目在工件中都有自己的 zip 文件夹,因此要解决此问题,我们应该在管道任务的 Package 部分中指定我们的 Azure Function Project。

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

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

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

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-02-22
      • 1970-01-01
      • 2019-05-15
      • 2021-06-09
      • 2020-08-05
      • 1970-01-01
      相关资源
      最近更新 更多