Visual Studio Team Services发布/部署失败-“未找到具有指定模式的程序包" [英] Visual Studio Team Services Release/Deploy fails - "No package found with specified pattern"

查看:116
本文介绍了Visual Studio Team Services发布/部署失败-“未找到具有指定模式的程序包"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对我的DEV Azure应用服务实施持续集成和持续部署.我正在Visual Studio Team Services上使用托管代理.我的发布定义上的将网站部署到Azure"步骤始终失败,并显示错误找不到具有指定模式的程序包".有什么想法吗?

I'm trying to implement continuous integration and continuous deployment to my DEV Azure App Service. I'm using the hosted agent on Visual Studio Team Services. The "Deploy Website to Azure" step on my Release definition keeps failing with the error "No package found with specified pattern". Any ideas?

推荐答案

多个包与指定模式匹配.请限制搜索模式[sic]."由于您在任务的包或文件夹"设置中输入了"xxx \ *.zip",因此任务找到2个或更多包时,通常会发生错误.因此,您只需要更新它以指定详细的软件包名称即可.此处类似的问题:

"More than one package matched with specified pattern. Please restrain the search patern [sic]." error usually occurs when 2 or more packages were found by the task since you entered "xxx\*.zip" in "Package or Folder" setting of the task. So you just need to update it to specify the detailed package name. Similar question here: Deploy azure website and webjobs in same sln using VSO - Error - There can be only one.

对于您的原始问题,也可以通过创建新的构建定义来解决它,方法是在构建"选项卡上选择"Visual Studio",在部署"选项卡上选择"Azure WebApp".这将创建一个构建定义,并添加必需的装饰.

And for you original issue, you can also fix it by creating a new build definition with "Visual Studio" selected on "Build" tab and "Azure WebApp" selected on "Deployment" tab. This will create a build definition with required arugments added.

这篇关于Visual Studio Team Services发布/部署失败-“未找到具有指定模式的程序包"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆