【发布时间】:2018-08-25 07:06:32
【问题描述】:
总结
日志中出现以下错误。
The content in ConfigPackage Name:Config and Version:1.0.0.20180315.2 in Service Manifest 'TwoServicePkg' has changed, but the version number is the same.
我只更改了其中一项服务的代码,因此我只更改了清单中的一个版本的代码。
在这种情况下,通过Visual Studio升级是没有问题的。
但是,通过 VSTS 升级会导致上述错误。
详情
我默认为 Service Fabric 创建了 VSTS CI/CD。 (管道:VSTS Git Repo -> 构建 -> 发布)
首先“提交 > 构建 > 发布”就可以了。
Service Fabric 清单版本
MyAppType: 1.0.0
OneService: Pkg 1.0.0 / Code 1.0.0 / Config 1.0.0
TwoService: Pkg 1.0.0 / Code 1.0.0 / Config 1.0.0
现在,我只修复 OneService 代码。并编辑服务结构清单的版本。
Service Fabric 清单版本
MyAppType: 1.0.1(*)
OneService: Pkg 1.0.1(*) / Code 1.0.1(*) / Config 1.0.0
TwoService: Pkg 1.0.0 / Code 1.0.0 / Config 1.0.0
第二次提交 > 构建没问题。但发布失败。 日志中出现以下错误。
The content in ConfigPackage Name:Config and Version:1.0.0.20180315.2 in Service Manifest 'TwoServicePkg' has changed, but the version number is the same.
但我没有修改 TwoService Pkg (Both Code, Config)。
此外,通过 VS2017 IDE 立即发布到“Azure Cloud Service Fabric Cluster”也很好。 (当然,“升级应用程序”选项已选中。)
当前的临时解决方案是对所有(所有 pkg / code / config)进行版本升级,如下所示。
Service Fabric 清单版本
MyAppType: 1.0.1(*)
OneService: Pkg 1.0.1(*) / Code 1.0.1(*) / Config 1.0.1(*)
TwoService: Pkg 1.0.1(*) / Code 1.0.1(*) / Config 1.0.1(*)
我想构建构建管道,但是很混乱。
其他信息
我只使用默认的 VSTS Service Fabric 模板。
并且只修改发布配置文件名称(Cloud.xml -> Cloud.Development.xml)。
【问题讨论】:
-
您的 VSTS 构建管道是什么样的,您正在使用哪些任务以及它们是如何配置的?
-
感谢您的关注。我添加了屏幕截图。
-
你能在 OneDrive 上分享详细的构建日志吗? (将 system.debug 变量设置为 true,然后排队构建并共享此日志)您能否在新项目中重现此问题?如果是这样,您可以在 OneDrive 上共享示例项目。
-
检查是否与确定性编译器标志有关:stackoverflow.com/questions/49236009/…
-
@starianchen-MSFT 我使用了默认模板并确认该选项已打开。该项目没有什么特别之处。 github 中的服务结构示例也会产生相同的错误。但在你的回答中,我有一些信息,它似乎很有帮助。谢谢你的回复。
标签: azure azure-devops azure-service-fabric azure-pipelines-release-pipeline