locked
How to write azure-pipeline.yaml script when integrating java webapp (.war) from azure devops repo into azure appservice linux plan ? RRS feed

  • Question

  • I started with this first scirpt using task assistant but .war file wasn't finally deployed correctly, I need some help to organize this azure-pipeline.yaml file with the right commands to deploy app correctly.

    # 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

    Wednesday, May 20, 2020 3:35 PM

Answers

All replies

  • The Azure DevOps team and community are active and answering questions on https://developercommunity.visualstudio.com/spaces/21/index.html can you please post your question there instead? This forum is specifically for Azure App Configuration questions.
    Wednesday, May 20, 2020 4:14 PM
  • Also try asking for help over here.

    https://stackoverflow.com/questions/tagged/azure-devops

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Marked as answer by Guido Franzke Wednesday, May 27, 2020 9:02 AM
    Wednesday, May 20, 2020 4:23 PM
  • Ok. Thanks for feedback
    Wednesday, May 20, 2020 5:20 PM
  • You're welcome.

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Wednesday, May 20, 2020 6:04 PM