I am trying to build an Azure DevOps pipeline to deploy a Springboot Web app with embedded Tomcat packaged as a WAR file, using an Azure Pipeline deployment task. Something like this:
- task: AzureRmWebAppDeployment@4
displayName: 'Azure Web App Deploy: $(studioWebAppName)'
inputs:
azureSubscription: $(azureSubscription)
appType: webAppLinux
WebAppName: $(studioWebAppName)
package: '$(Pipeline.Workspace)/**/studio.war'
RuntimeStack: 'JAVA|11-java11'
StartupCommand: 'java -jar /home/site/wwwroot/studio.war --server.port=80'
However the deployment task insists on mucking about with the WAR file and unpacking ito into a JAR file and a directory containing the various resource and JSP files. The app then won't work.
I've been using a direct FTP Upload task as a workaround, but just now I've run into a problem with that task no longer working - I suspect because now the WAR file is in use.
Any suggestions for a simple solution to this? I can't be the only one with this problem.