AppVeyor 构建脚本文件下载间歇性失败

AppVeyor build script file downloads fail intermittently

我目前正在使用 AppVeyor 构建一个小型 Qt Creator 插件。作为构建的一部分,我正在下载 Qt Creator 源和安装包。

这曾经工作得很好,但在某些时候它停止工作了。现在,有时第一次下载成功,但至少有一次下载从未成功。

我已经尝试了安装的 curl 二进制文件和 appveyor DownloadFile 命令,但它们都失败了。

curl错误如下:

curl: (18) transfer closed with 31294991 bytes remaining to read

appveyor DownloadFile 命令不会产生错误,但解压缩生成的存档失败:

ERROR: qt-bin.7z
qt-bin.7z
Open ERROR: Can not open the file as [7z] archive
ERRORS:
Unexpected end of archive

可以在此处查看构建失败的示例 https://ci.appveyor.com/project/jesperhh/teamfoundation/build/3.6.49

尝试启用代理 - 这应该会有所帮助:http://www.appveyor.com/docs/how-to/http-proxy