发布管道中未下载工件 - Azure DevOps [英] Artifact not being downloaded in release pipeline - Azure DevOps

查看:25
本文介绍了发布管道中未下载工件 - Azure DevOps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力解决 Azure DevOps 中的一个问题,我可以通过构建管道成功构建工件(我使用发布工件任务).我可以看到工件已成功构建,因为我可以下载它,稍后我可以在发布管道中引用它.

I've been struggling with an issue in Azure DevOps where I can build successfully an artifact through a build pipeline (I use the publish artifact task). I can see that the artifact is built successfully, as I can download it and I can reference it later in the release pipeline.

问题是当托管代理启动时,没有工件下载到机器上,我的 $(System.DefaultWorkingDirectory) 始终为空.我不知道为什么在初始化托管代理时,实际上没有下载任何工件......

The issue is that when the hosted agent is started, no artifacts are downloaded to the machine, and my $(System.DefaultWorkingDirectory) is always empty. I am out of ideas on why in the initialization of the hosted agent, no artifacts are actually being downloaded....

推荐答案

这周我遇到了同样的问题.我使用发布管道工件"任务设置了我的构建并遇到了与您相同的问题,我在我的构建中将其替换为发布构建工件"任务,然后一切都解决了.

I had the same issue this week. I set up my build with the 'Publish pipeline artifact' task and ran into the same issue as you, i replaced this with 'Publish build artifact' task in my build and everything worked out then.

我了解到发布管道工件"仅用于在同一管道中上传/下载工件,因此这就是不会在您的版本中自动下载的原因.或者,您可以使用发布中的下载管道工件"任务来明确下载您的工件

I've read that 'Publish pipeline artifact' is only intended for uploading/downloading artifacts within the same pipeline, so thats why this won't get downloaded automatically in your release. Alternatively you could use the 'Download Pipeline Artifact' task in your release to explicitly download your artifact

这篇关于发布管道中未下载工件 - Azure DevOps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆