How to copy a VSTS artifact to a Azure Storage account container folder?

ぐ巨炮叔叔 提交于 2019-12-24 20:00:41

问题


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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/50949081/how-to-copy-a-vsts-artifact-to-a-azure-storage-account-container-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!