I have a basic Azure app service, with Tomcat 9.0. I want to deploy some pure web content directly to the folder /site/wwwroot/webapps/ROOT on the app service, using the Azure App Service Plugin in a Jenkins pipeline.

      But whatever I specify as the targetDirectory attribute to the azureWebAppPublish-command in my Jenkinsfile, the content of my .zip-file ends up in the folder /site/wwwroot/

      Is my understanding of the plugin wrong here, or how can I acheive my goal? My plugin command is like this:

      azureWebAppPublish 
        azureCredentialsId: "myPrincipal", 
        resourceGroup: "my-resource-group", 
        appName: "my-app-service-name", 
        targetDirectory: "ignored?", 
        filePath: "my-files.zip"

          [JENKINS-63729] Specifying targetDirectory has no effect

          Marius Stenbek created issue -
          Marius Stenbek made changes -
          Description Original: I have a basic Azure app service, with Tomcat 9.0. I want to deploy some pure web content directly to the folder _/site/webroot/webapps/ROOT_ on the app service, using the Azure App Service Plugin in a Jenkins pipeline.

          But whatever I specify as the *targetDirectory* attribute to the *azureWebAppPublish*-command in my Jenkinsfile, the content of my .zip-file ends up in the folder _/site/wwwroot/_. 

          Is my understanding of the plugin wrong here, or how can I acheive my goal? My plugin command is like this:
          {code:java}
          azureWebAppPublish
            azureCredentialsId: "myPrincipal",
            resourceGroup: "my-resource-group",
            appName: "my-app-service-name",
            targetDirectory: "ignored?",
            filePath: "my-files.zip"{code}
          New: I have a basic Azure app service, with Tomcat 9.0. I want to deploy some pure web content directly to the folder _/site/wwwroot/webapps/ROOT_ on the app service, using the Azure App Service Plugin in a Jenkins pipeline.

          But whatever I specify as the *targetDirectory* attribute to the *azureWebAppPublish*-command in my Jenkinsfile, the content of my .zip-file ends up in the folder _/site/wwwroot/_. 

          Is my understanding of the plugin wrong here, or how can I acheive my goal? My plugin command is like this:
          {code:java}
          azureWebAppPublish
            azureCredentialsId: "myPrincipal",
            resourceGroup: "my-resource-group",
            appName: "my-app-service-name",
            targetDirectory: "ignored?",
            filePath: "my-files.zip"{code}

            azure_devops Azure DevOps
            codenor Marius Stenbek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: