问题
Is it possible to publish the output from a build on Visual Studio Team Services to Azure File Storage? I have looked at the Azure File Copy task but can see no way to copy to to anything but Azure Blob Storage or VMs with this. I was thinking I could possibly use AzCopy to achieve this but it seems like this should be supported out of the box. Any ideas?
回答1:
From this article, We know that it only support copy files to Azure storage Blog and VMs at currently. I think it does not support at currently. As a workaround, please use custom script to copy files to Azure File storage. Please also submit this request at Visual Studio Team Services feature request forum.
回答2:
Azure DevOps [aka VSTS earlier] do support Azure Files as Build and Release pipeline. Azure PowerShell tasks makes it easy to release artifacts to File Share. Refer to step by step guide - https://sanganakauthority.blogspot.com/2019/09/azure-devops-build-and-release-pipeline.html
Also the custom powershell built for this are available on - https://github.com/kunalchandratre1/AzureDevOpsReleaseToFileStorage
Hope this helps.
来源:https://stackoverflow.com/questions/39906089/vsts-publish-build-artifacts-to-azure-file-storage