我有一个CI管道,它生成一个叫做“build- artifact”的工件。我通过发布步骤发布了这个工件:
- publish: $(build.artifactStagingDirectory)
artifact: build-artifact我可以看到管道正确地发布了工件。然后在不同的管道中,我尝试按照here所描述的那样下载工件
resources:
pipelines:
- pipeline: 'cipipeline'
source: "receiver-ci"
steps:
- download: cipipeline
artifact: build-artifact我希望它能下载神器。相反,它会看到所有文件,但不会下载它们。这是运行上述管道的输出:
Starting: Download
==============================================================================
Task : Download pipeline artifact
Description : Download a named artifact from a pipeline to a local path
Version : 1.2.5
Author : Microsoft Corporation
Help : Download a named artifact from a pipeline to a local path
==============================================================================
Download from the specified build: #27608
Download artifact to: /home/vsts/work/1/cipipeline/build-artifact
ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session 5a3786ae-b9b7-42ff-bae1-be29821e4d0f
DedupManifestArtifactClient will correlate http requests with X-TFS-Session 5a3786ae-b9b7-42ff-bae1-be29821e4d0f
Minimatch patterns: [**]
Filtered 24 files from the Minimatch filters supplied.
Downloaded 0.0 MB out of 0.0 MB (0%).
Downloaded 0.0 MB out of 0.0 MB (100%).
Download statistics:
Total Content: 0.0 MB
Physical Content Downloaded: 0.0 MB
Compression Saved: 0.0 MB
Local Caching Saved: 0.0 MB
Chunks Downloaded: 24
Nodes Downloaded: 0
Download completed.
ApplicationInsightsTelemetrySender correlated 2 events with X-TFS-Session 5a3786ae-b9b7-42ff-bae1-be29821e4d0f这是怎么回事?为什么azure不会下载这些工件?
发布于 2021-01-11 11:02:02
此工件已下载并保存在/home/vsts/work/1/cipipeline/build-artifact中。我们可以添加任务Publish Pipeline Artifacts并检查它。
示例:
resources:
pipelines:
- pipeline: 'cipipeline'
source: "receiver-ci"
steps:
- download: cipipeline
artifact: build-artifact
- publish: /home/vsts/work/1/cipipeline/build-artifact
artifact: test此外,如果工件小于1MB,您可能会看到消息Downloaded 0.0 MB out of 0.0 MB (100%)。
我的测试结果:

https://stackoverflow.com/questions/65638435
复制相似问题