azure - Visual Studio Team Services 发布失败 - 无关变量

标签 azure ms-release-management azure-devops

从周三东部时间下午 2:01 到 2:43 之间的某个时间,在部署网站期间,Visual Studio Team Service Release Management 开始在 Azure Web App 部署 任务中失败到 Azure 步骤并出现一般错误:

You cannot call a method on a null-valued expression

  • 我们创建了一个新的发布定义,但它出现了相同的问题。
  • 我尝试使用之前成功的构建版本进行发布,但它也出现了相同的异常。
  • 我已经确认没有deploy.cmd在存储库中。
  • 我已经验证了构建变更集中的项目。
    他们只触及了 1 个 .cs 文件、3 个 .js 文件,并更改了 <add key="Client.CacheVersion" value="X"> 的值。从 4 到 6。

尽管文档指出 -ErrorVariable 对于相关脚本有效。日志文件(故障前信息)中的唯一区别是添加了 -ErrorVariable publishAzureWebSiteError Publish-AzureWebsiteProject的结尾打电话。

有没有办法填充publishAzureWebSiteError,或者删除这个无关的变量?

更新: 添加system.debug后。我发现我无法解析 {mysite}.scm.azurewebsites.net

更新二 在与 Microsoft 进行了 2 小时的交流后,发布管理似乎在使用应用服务环境时遇到了一些困难。起初,它无法正确映射 scm URL,一旦我们将预期的后缀添加到 Web 应用程序名称字段,我们就会收到错误:

Conflict: The host name MY_WEB_APP.APP_SERVICE_NAME.p.azurewebsites.net is already assigned to another Azure website: MY_WEB_APP.

最终更新 看来这些版本现在正在按预期运行,至少在之前失败的版本上没有进行任何更改。由于微软显然改变了一些东西,这个问题不会给 future 的用户带来任何好处。我投票决定关闭它。

最佳答案

因为这个问题尚未结束。

对于之后的人:

该修复来自 Microsoft。今天早上,Premier 支持人员通过电子邮件向我发送了以下内容:

I just spoke to the developer who pushed the fix. And the fix has to do with correctly forming a SCM name which in your case is part of ASE. So there were no exceptions being raised this time and it worked for you.

因此,最终用户没有任何解决方法,甚至也无法进行更改。

关于azure - Visual Studio Team Services 发布失败 - 无关变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34950382/

相关文章:

visual-studio - Visual Studio发布管理-具有多行值的配置变量?

azure - 尝试创建 Azure SQL 逻辑服务器时 UpsertLogicalServerRequestAlreadyInProgress

javascript - Azure DevOps Rest API getWorkItems 不返回指定的字段

java - Microsoft Azure IoT 中心 (java) 发送消息后通知 "Lost connection to the server. Reconnecting 0 time."

python - 使用 Python 使用来自 Azure 事件中心的消息?

c# - 在 Azure Function .net 5 中处理 blob 触发器时出现 Microsoft.Azure.Functions.Worker.Diagnostics.Exceptions.FunctionInputConverterException

azure-devops - 如何访问工件的 BUILDNUMBER 是 Visual Studio Team Services 发布管理

用于列出代理池和运行的作业的 Azure CLI 命令

git - 在发布期间标记 TFS Git 存储库

c# - 使用 Azure Devops Rest API 的访问 token