0
votes

how to deploy multiple jar files into Azure through VSTS using Azure App service deploy task.Currently I am deploying War files using azure app service deploy task but I am not able to deploy jar files.Its throwing the error.The task name is:Azure app service deploy.I tried to deploy using this pattern:$(System.DefaultWorkingDirectory)/project_name/drop/*.jar and $(System.DefaultWorkingDirectory)/project_name/drop/jarfile.jar

I am running the azure app service deploy task at the time of release definition.

Both patterns not working.throwing error.

So can anyone please help me out how to accomplish this task?

Errors:

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/*.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.

Pleas help me on this..How to give the pattern to upload multiple jar files.

1

1 Answers

0
votes

Uncheck Publish using Web Deploy option in Additional Deployment options section of Azure App Service Deploy task, then specify the folder path in Package or folder input box.

enter image description here

Update:

enter image description here

If there are some files in that folder that you don’t want to deploy to azure app services, you can copy necessary files to another folder through Copy File tasks

Update:

enter image description here