本文介绍了“下载管道神器"vs.“下载构建工件"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下载管道工件"和下载构建工件"有什么区别?应该在什么时候使用哪一个?

What is the difference between "Download pipeline artifact" and "Download build artifacts"? Which one should be used and when?

推荐答案

Pipeline artifact:提供一种在管道中的阶段之间或在不同管道之间共享文件的方法.它们通常是需要由另一个作业使用或部署的构建过程的输出.工件与生成它们的运行相关联,并在运行完成后保持可用.

Pipeline artifact: provide a way to share files between stages in a pipeline or between different pipelines. They are typically the output of a build process that need to be consumed by another job or be deployed. Artifacts are associated with the run they were produced in and remain available after the run has completed.

在构建或发布管道中使用下载管道工件从该管道的早期阶段或从另一个管道下载管道工件.

Using Download Pipeline Artifacts in a build or release pipeline to download pipeline artifacts from earlier stages in this pipeline, or from another pipeline.

构建工件 :工件是您希望构建生成的文件.工件可以是您的团队测试或部署您的应用所需的任何东西.

Build artifact :Artifacts are the files that you want your build to produce. Artifacts can be anything that your team needs to test or deploy your app.

在构建或发布管道中使用下载构建工件下载构建工件.

Using Download Build Artifacts in a build or release pipeline to download build artifacts.

管道工件是下一代的构建工件,并且是处理工件的推荐方式.使用发布构建工件任务发布的工件可以继续使用下载构建工件下载,但也可以使用最新的下载管道工件任务下载.

Pipeline artifacts are the next generation of build artifacts and are the recommended way to work with artifacts. Artifacts published using the Publish Build Artifacts task can continue to be downloaded using Download Build Artifacts, but can also be downloaded using the latest Download Pipeline Artifact task.

注意:为了更快的输出存储速度,建议从构建工件升级到管道工件.

Note: It is recommended upgrading from build artifacts to pipeline artifacts for faster output storage speeds.

以下是一些您可以参考的文档:

Here are some documents you can refer to:

  • Pipeline artifacts in Azure Pipelines - Download Pipeline Artifacts task
  • Build Artifacts in Azure Pipelines - Download Build Artifacts task

这篇关于“下载管道神器"vs.“下载构建工件"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 09:48