azure-pipelines-release-pipeline - 加快发布管理中工件的下载速度

标签 azure-pipelines-release-pipeline

我在 TFS 中有一个项目,构建后约有 3k 个文件。我们所说的文物。 我经常遇到这样的状态

No download tasks have completed in 1 minutes. Remaining task statuses:
WaitingForActivation: 1 task(s).
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
No download tasks have completed in 2 minutes. Remaining task statuses:
WaitingForActivation: 1 task(s).
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
No download tasks have completed in 3 minutes. Remaining task statuses:
WaitingForActivation: 1 task(s).
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
No download tasks have completed in 4 minutes. Remaining task statuses:
WaitingForActivation: 1 task(s).
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
No download tasks have completed in 5 minutes. Remaining task statuses:
WaitingForActivation: 1 task(s).
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
1 downloads remaining.
No download tasks have completed in 6 minutes. Remaining task statuses:
WaitingForActivation: 1 task(s).

我尝试压缩工件并下载一个文件。但我在这方面没有成功。

社区能给我一些关于如何加快工件下载的提示吗?我在构建期间存档并在发布期间解压缩的想法是一个好方法吗?

我已经尝试过,但无法仅下载创建的 zip 文件。

最佳答案

We have started using robocopy to download build artifacts in recent version of vsts-agent. Download performance using robocopy should be better than the performance with v1 agent as well. In case upgrading to TFS 2018 is not a viable solution, pl. get latest agent from here and configure against TFS server:

https://github.com/Microsoft/vsts-agent/releases

如果您没有使用TFS2018,建议您使用最新的构建代理,它将使用robocopy应该有更好的性能。

另一个选项是为每个公共(public)工件压缩或创建 nuget 包,然后在放置后解压缩。您可以使用 Archive Files任务或市场中的某些第三方扩展。看看下面两个相关问题:

此外,发布管理会下载您之前默认选择的构建定义发布的所有工件。现在,您可以为发布定义添加配置选项,以强制代理仅下载任务执行所需的工件。这也将加快您的发布流程。 注意:这仅适用于 TFS 2018 Update 2 中的本地版本。

详情请看此博客:Speed up your VSTS Releases by Partially Downloading Artifacts

关于azure-pipelines-release-pipeline - 加快发布管理中工件的下载速度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50381657/

相关文章:

azure-devops - 无法在 Azure DevOps(发布管道)中获取 Azure 容器注册表的服务连接

android - Azure管道– Release Gradle管道找不到gradlew

azure - 如何在 Azure 发布管道中的阶段之间共享 ARM 输出

TFS安全: Where is the "Create a new Publisher" permission?

azure - 为了触发发布管道(为构建工件配置),构建管道必须具有 "publish artifact"任务?

azure-devops - PackageReference 版本控制通配符 csproj

azure - 如何在 VSTS 中使用 CI/CD 管道构建和仅发布修改后的文件?

powershell - Azure Devops发布管道中的参数 block 问题

azure-devops - 如何使用 Azure DevOps NuGet 为其他阶段重新运行现有的 Azure DevOps 管道?

azure-devops - 如何部署具有已知(和可接受的)数据丢失的 DACPAC 版本