将其他文件添加到VSTS Release到azure Web应用程序 [英] Adding additional files to VSTS Release to azure web app
问题描述
我在VSTS中发布了一个版本,可以将我的Web应用程序部署到Azure应用服务中.为此,我使用Azure App Service部署步骤.在正常部署Webapp之后,我想从另一个构建结果中添加一个附加的zip工件.我只想将那些文件复制到Azure上Web应用程序的特定路径.我该怎么办?
I have a release in VSTS to deploy my webapp to the azure app service. For this I use a Azure App Service deploy step. After the normal deploy of the webapp I want to add an additional zip artifact from another build result. I want to copy only those file to a specific path of the web application on azure. How can I do that?
推荐答案
如果zip文件是Web部署程序包,则可以参考Joy的答案.(需要检查应用程序"选项)
If the zip file is the web deploy package, you can refer to Joy’s answer. (Need to check Application option)
否则,简单的方法是使用Kudu REST API(保留文件夹结构),步骤:
Otherwise, the simple way is using Kudu REST API (remain folder structure), steps:
- 取消选中Azure App Service部署任务的使用Web Deploy发布选项
- (可选)添加解压缩任务以将zip文件解压缩到工件文件夹(您想要在应用服务中的文件夹,例如
D:/1/1/a/mylib
)中的文件夹中 - 在包或文件夹"输入框中指定文件夹(步骤2的父文件夹,以保留文件夹结构)或包(zip)
这篇关于将其他文件添加到VSTS Release到azure Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!