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 : String
  • appName : String
  • resourceGroup : String
  • deleteTempImage : boolean (optional)
    If checked, the intermediate docker image will be removed from your build agent after build succeeds.
  • deployOnlyIfSuccessful : boolean (optional)
    If checked, application will only be deployed to Azure if the build was successful.
  • dockerFilePath : String (optional)
  • dockerImageName : String (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: <namePrefix.azurecr.io>/<repo> eg. xxx.azurecr.io/mysql, xxx.azurecr.io/yyy/mysql
  • dockerImageTag : String (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.
  • dockerRegistryEndpoint (optional)
      Nested Object
    • url : String
      URL to the Docker registry you are using. May be left blank to use the public DockerHub registry (currently https://index.docker.io/v1/).
    • credentialsId : String
  • filePath : String (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.

    Examples:

    • Java

      webapps/*.war
      **/*.zip

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

    • PHP

      **/*.php,composer.json
    • Python

      **/*.py,requirements.txt
    • Node.js

      **/*.js,package.json,process.json
  • publishType : String (optional)
  • skipDockerBuild : boolean (optional)
    If checked, will skip building docker image and assume it already exists in the registry.
  • slotName : String (optional)

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

    See this article for more details.

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

azureWebAppSwapSlots: Swap slots for an Azure Web App

  • azureCredentialsId : String
  • resourceGroup : String
  • appName : String
  • sourceSlotName : String
    Source slot needs to be swapped.
  • targetSlotName : String
    Target slot needs to be swapped. It is usually the production slot.

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.