VSTS: Publish build artifacts to Azure File Storage

谁说胖子不能爱 提交于 2019-12-22 08:17:18

问题


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

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