如何使用 Azure 应用服务部署任务通过 VSTS 将多个 jar 文件上传到 Azure

How to upload multiple jar files into Azure through VSTS using Azure App service deploy task

如何使用 Azure 应用服务部署通过 VSTS 将多个 jar 文件部署到 Azure task.Currently 我正在使用 azure 应用服务部署任务部署 War 文件,但我无法部署 jar files.Its 抛出 error.The 任务名称 is:Azure 应用程序服务 deploy.I 尝试使用此模式进行部署:$(System.DefaultWorkingDirectory)/project_name/drop/*.jar 和 $ (System.DefaultWorkingDirectory)/project_name/drop/jarfile.jar

我是 运行 发布定义时的 azure 应用程序服务部署任务。

两种模式都不是 working.throwing 错误。

那么谁能帮我完成这个任务吗?

错误:

当我在 VSTS 中的 Azure 应用程序服务部署任务的包或文件夹选项中给出以下模式时出错。

$(System.DefaultWorkingDirectory)/project_name/drop/*.jar

Error:
More than one package matched with specified pattern. Please restrain the search pattern.


Error getting when I am giving the below pattern in package or folder option in azure app service deploy task in VSTS.

$(System.DefaultWorkingDirectory)/project_name/drop/jarfile.jar


 [command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='d:\a\r1\a\project_name\drop\direcotry1\target\jarfile.jar' -dest:contentPath='abc-dev',ComputerName='https://abc-dev.scm.azurewebsites.net:443/msdeploy.axd?site=abc-dev',UserName='********',Password='********',AuthType='Basic' -enableRule:DoNotDeleteRule -userAgent:VSTS_f2463a61-0e8b-4b3a-841d-15b916aae127_release_4_236_570_1
2017-11-02T11:12:56.6532444Z ##[error]Failed to deploy web package to App Service.
2017-11-02T11:12:56.6542438Z ##[error]Error: Package file 'd:\a\r1\a\project_name\drop\direcotry1\target\jarfile.jar' does not have a .zip file name extension.
Error count: 1.

请帮我解决这个问题..如何给出上传多个 jar 文件的模式。

Azure App Service DeployAdditional Deployment options部分取消选中Publish using Web Deploy选项]任务,然后在包或文件夹输入框中指定文件夹路径。

更新:

如果该文件夹中有一些文件您不想部署到 Azure 应用程序服务,您可以通过 Copy File 任务

将必要的文件复制到另一个文件夹

更新: