我尝试设置持续集成,以便在 Team Services 中的 git Push
事件上自动部署我的 Azure Service Fabric 群集。我遵循基于本指南的团队服务构建定义和团队服务发布定义的默认模板:
Set up continuous integration for a Service Fabric application by using Visual Studio Team Services
在大多数情况下,第一次部署时一切正常。之后它会抛出以下错误:
An application with name 'fabric:/<APP>' already exists, its type is '<APP>Type' and version is '1.0.0.20160812.7'. You must first remove the existing application before a new application can be deployed or provide a new name for the application.
由此看来,它似乎正在尝试完全重新部署服务,而不仅仅是升级服务。我已搜索了所有设置并尝试创建和重新创建任务,但未能解决。
有人遇到过这种情况吗?
最佳答案
您需要添加或更新发布配置文件以启用升级模式,并在首次部署成功后使用该配置文件部署 Service Fabric。
要快速完成此操作,您可以右键单击您的项目并从 Visual Studio 中选择“发布”,选中“升级应用程序”选项并单击“配置升级设置”(如果需要),然后单击“保存配置文件”链接并提交/推送更改。
关于c# - Azure Service Fabric 持续集成在 Visual Studio Team Services 中失败(以前是 VSO),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38945060/