Azure devops AzureDevOps构建管道任务50分钟后发布工件

Azure devops AzureDevOps构建管道任务50分钟后发布工件,azure-devops,azure-pipelines,azure-pipelines-build-task,Azure Devops,Azure Pipelines,Azure Pipelines Build Task,我已经创建了构建我的移动应用程序的构建定义。最后一步是发布.apk工件。该文件位于100mb,因为它是一个调试版本。但是代理需要50分钟才能发布它。这肯定是不对的 我们正在使用一个位于VM上的自托管代理 控制台日志 ##[section]Starting: Publish Artifact: STARS.Mobile.Android.$(BuildConfiguration) ============================================================

我已经创建了构建我的移动应用程序的构建定义。最后一步是发布.apk工件。该文件位于100mb,因为它是一个调试版本。但是代理需要50分钟才能发布它。这肯定是不对的

我们正在使用一个位于VM上的自托管代理

控制台日志

##[section]Starting: Publish Artifact: STARS.Mobile.Android.$(BuildConfiguration)
==============================================================================
Task         : Publish build artifacts
Description  : Publish build artifacts to Azure Pipelines or a Windows file share
Version      : 1.151.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/publish-build-artifacts
==============================================================================
##[section]Async Command Start: Upload Artifact
Uploading 1 files
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Uploading 'STARS.Mobile.Android.Debug/com.app.apk' (7%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
Total file: 1 ---- Processed file: 0 (0%)
...

我如何提高这个速度

如果将
system.debug
变量设置为
true
,您可能会发现更多信息。这种情况是经常发生还是偶尔发生?如果是前者,您可以检查您使用的vm是否与您所在的地区相同。如果没有,您可以将vm区域修改到您的位置,这将提高速度。如果偶尔发生这种情况,这可能是服务器出现问题的原因。这对您的特定问题没有帮助,只是作为参考。我在托管代理上有一个大约100MB的工件,它在11秒内运行发布步骤。它看起来更像是缓慢的网络。