我使用任务助手开始了第一个scirpt,但.war文件最终没有正确部署,我需要一些帮助来组织这个azure-pipeline.yaml文件与正确的命令来正确部署应用程序。
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'Free Trial(XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)'
appType: 'webAppLinux'
WebAppName: 'usernamephp01'
packageForLinux: '$(System.DefaultWorkingDirectory)/**/*.war'
RuntimeStack: 'TOMCAT|8.5-java11'