Skip to content

Latest commit

 

History

History
101 lines (75 loc) · 4.94 KB

app-service-web-azure-web-app-plugin-for-jenkins.md

File metadata and controls

101 lines (75 loc) · 4.94 KB
title description services documentationcenter author manager editor ms.assetid ms.service ms.workload ms.tgt_pltfrm ms.devlang ms.topic ms.date ms.author
How to use the Azure Web App Plugin with Jenkins Continuous Integration | Microsoft Docs
Describes how to use the Azure Web App Plugin with Jenkins Continuous Integration.
app-service\web
rmcmurray
erikre
be6c4e62-da76-44f6-bb00-464902734805
app-service-web
web
na
java
article
10/19/2016
robmcm

How to use the Azure Web App Plugin with Jenkins Continuous Integration

The Azure Web App plugin for Jenkins makes it easy to create web apps on Azure when running distributed builds, and deploy a WAR file to your web app.

Prerequisites

Before working through the steps in this article, you will need to register and authorize your client application, and then retrieve your Client ID and Client Secret which will be sent to Azure Active Directory during authentication. For more information on these prerequisites, see the following articles:

In addition, you will need to download the azure-webapp-plugin.hpi file from the following URL:

How to Install the Azure Web App Plugin for Jenkins

  1. Download the azure-webapp-plugin.hpi file from GitHub

  2. Log into your Jenkins dashboard.

  3. In the dashboard, click Manage Jenkins.

    Manage Jenkins

  4. In the Manage Jenkins page, click Manage Plugins.

    Manage Plugins

  5. Click the Advanced tab, and click Browse in the Upload Plugin section. Navigate to the location where you downloaded the azure-webapp-plugin.hpi file in the Prerequisites, and click the Upload once you have selected the file.

    Upload Plugin

  6. Restart Jenkins if necessary.

Configure the Azure Web App Plugin

  1. In your Jenkins dashboard, click one of your projects.

    Select Project

  2. When your project's page appears, click Configure in the left-side menu.

    Configure Project

  3. In the Post-build Actions section, click the Add post-build action drop down menu and select Azure Webapp Configuration.

    Advanced Options

  4. When the Azure Webapp Configuration section appears, enter your Subscription ID, Client ID, Client Secret and OAuth 2.0 Token Endpoint information in the Azure Profile Configuration.

    Azure Profile Configuration

  5. In the Webapp Configuration section, enter your Resource Group Name, Location, Hosting Plan Name, Web App Name, Sku Name, Sku Capacity and War File Path information.

    Webapp Configuration

  6. Click Save to save the settings for your project.

    Save Project

  7. Click Build Now in the left-side menu.

    Build Project

Note

A Web App container will be created only when a Web App container does not already exist.

See Also

For more information about using Azure with Java, see the Azure Java Developer Center.

For additional information about the Azure Web App Plugin for Jenkins, see the Azure Web App Plugin project on GitHub.