如何将VSTS工件复制到Azure存储帐户容器文件夹? [英] How to copy a VSTS artifact to a Azure Storage account container folder?

查看:81
本文介绍了如何将VSTS工件复制到Azure存储帐户容器文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VSTS发布管道,我需要在其中将构建工件复制到存储帐户blob容器中. 使用Azure File Copy任务非常容易,但是困难之处在于需要在容器中指定一个文件夹来将文件复制到.

I have a VSTS release pipeline in which I need to copy the build artifact to a storage account blob container. This is pretty easy with the Azure File Copy task, but the difficulty seems in the need to specify a folder in the container to copy the file to.

我尝试扩展容器名称,但是(显然)不起作用.都不在其他参数"部分中重写目标.从任务的源头看,我在那个方向上找不到任何东西,所以我想知道这是否有可能.

I tried extending the container name, but that (obviously) doesn't work. Rewriting the destination in the "additional arguments" section neither. Looking at the source of the task I cannot find anything in that direction, so I'm wondering whether it is even possible.

关于如何使用构建任务执行此操作的任何想法? 还是我需要为此使用Powershell?

Any idea on how to do this using the build task? Or do I need to use Powershell for this?

推荐答案

您可以将文件夹(例如 A )放在另一个文件夹( R )中,然后指定< Azure File Copy任务的源"框中的strong> R 文件夹路径,则文件夹 A 将位于容器中.

You can put the folder (e.g. A) in another folder (R), then specify R folder path in Source box of Azure File Copy task, then the folder A will be in container.

这篇关于如何将VSTS工件复制到Azure存储帐户容器文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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