[英]How to share a file between two builds of same pipeline in Azure Devops?
I've recently started using Azure DevOps & I want to store a .json file generated during one nightly scheduled build run somewhere so that when the nightly scheduled build runs next time for the same pipeline, I should be able to use that stored json file in this current build run.我最近开始使用 Azure DevOps 并且我想在某处存储一个在每晚安排的生成运行期间生成的 .json 文件,以便当下次为同一管道运行每晚安排的生成时,我应该能够使用该存储的 json 文件在当前的构建运行中。 I've tried Publish and Download Pipeline Artifacts task but it ask me to specify the specific build from where the artifacts should be downloaded which in my case is not possible to specify as there are multiple Individual CI builds that happens throughout the day between those nightly scheduled build.
我已经尝试过发布和下载管道工件任务,但它要求我指定应该从哪里下载工件的特定构建,在我的情况下,这是不可能指定的,因为在那些夜间之间全天发生了多个单独的 CI 构建预定的构建。
You could use a pipeline tag to identify the right build:您可以使用管道标签来识别正确的构建:
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
project: 'FabrikamFiber'
pipeline: 12
runVersion: 'latest'
tags: 'nightly'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.