【发布时间】:2017-05-13 19:01:36
【问题描述】:
我尝试使用 appveyor 构建和部署网站。 创建的站点将被推送到 Azure Web 应用程序上的 gitrepo,然后部署文件。
但是问题是,azure 服务器在推送哪个 git 返回到 stderr 时会给出反馈。
remote: Omitting next output lines...
remote: Finished successfully.
remote: Running post deployment command(s)...
remote: Deployment successful.
使用--quiet 和--porcelain 没有帮助。
在 PowerShell $ErrorActionPreference= 'silentlycontinue' 中设置此项会抑制除一个错误之外的所有错误。并且构建仍然失败。我无法抑制的最后一个错误是
Command executed with exception: remote: Deployment successful.
网站实际部署,一切都很好,除了 AppVeyor 中的构建被标记为失败并且我收到一封邮件。
这很烦人,很容易错过实际问题。
【问题讨论】:
标签: git powershell azure appveyor