问题
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