The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Azure App Service Plugin

azureWebAppPublish: Publish an Azure Web App

  • azureCredentialsId
    The Azure Service Principal credentials used to communicate with the Azure services. Check the following documentation for more information about the service principal:
    • Type: String
  • appName
    The Azure Web App name.
    • Type: String
  • resourceGroup
    The resource group name that the app will be associated with.
    • Type: String
  • deleteTempImage (optional)
    If checked, the intermediate docker image will be removed from your build agent after build succeeds.
    • Type: boolean
  • deployOnlyIfSuccessful (optional)
    If checked, application will only be deployed to Azure if the build was successful.
    • Type: boolean
  • dockerFilePath (optional)
    • Type: String
  • dockerImageName (optional)
    The docker image name. Leave blank if you want to use the same name as it on Azure.
    Be sure to include the registry and account if any. See examples:
    Docker hub format: <username>/<name> eg. bitname/mysql
    Azure registry format: <>/<repo> eg.,
    • Type: String
  • dockerImageTag (optional)
    Tha tag for your image. It's recommended to use a different tag for every single build otherwise your previous images might be overridden. We suggest you to append the BuildNumber to your tag so you can easily know that with which image your web app is currently running.
    • Type: String
  • dockerRegistryEndpoint (optional)
      Nested Object
    • url
      URL to the Docker registry you are using. May be left blank to use the public DockerHub registry (currently
      • Type: String
    • credentialsId
      • Type: String
  • filePath (optional)

    The file paths that will be deployed.

    You can use wildcards like module/dist/**/*.py. See the includes attribute of Ant fileset for the exact format. Multiple files can be separated by ','. The base directory is the workspace. You can only deploy files that are located in your workspace.


    • Java


      Note: For Java application, if you choose WAR deployment, usually you should put your war file under the 'webapps' directory.

    • PHP

    • Python

    • Node.js

    • Type: String
  • publishType (optional)
    • Type: String
  • skipDockerBuild (optional)
    If checked, will skip building docker image and assume it already exists in the registry.
    • Type: boolean
  • slotName (optional)

    If not blank, will deploy to this deployment slot instead of the default production slot.

    See this article for more details.

    • Type: String
  • sourceDirectory (optional)
    Source directory relative to the workspace.
    • Type: String
  • targetDirectory (optional)
    Target directory relative to the site root.
    • Type: String

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?


See existing feedback here.