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

查看:61
本文介绍了没有在发布管道中下载工件-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天全站免登陆