Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63729

Specifying targetDirectory has no effect

XMLWordPrintable

      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"

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

              Created:
              Updated: