通过 VSTS 升级 Azure Service Fabric 时出错 CI/CD

Error while upgrading Azure Service Fabric through VSTS CI/CD

我正在使用 VSTS 来设置 CI/CD 服务结构构建和部署。第一次部署没有错误,但第二次更新部署给我以下错误。

The content in ConfigPackage Name:Config and Version:1.0.0.20180312.1 in Service Manifest 'SampleWebPkg' has changed, but the version number is the same.

我遵循了以下说明

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-deploy-app-with-cicd-vsts

发生这种情况是因为您更新了服务二进制文件但没有更新清单,清单指向与以前相同的版本但二进制文件不同。

An example how this might occur is when you rebuild your service and deploy a new version without changing the version numbers in the manifest files

检查:

  • 如果servicesmanifest.xml中的服务版本与之前相比有更新,如果没有,请升级

  • applicationmanifest.xml中的服务版本较之前更新