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 |
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.
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:
-
Log into your Jenkins dashboard.
-
In the dashboard, click Manage Jenkins.
-
In the Manage Jenkins page, click Manage Plugins.
-
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.
-
Restart Jenkins if necessary.
-
In your Jenkins dashboard, click one of your projects.
-
When your project's page appears, click Configure in the left-side menu.
-
In the Post-build Actions section, click the Add post-build action drop down menu and select Azure Webapp Configuration.
-
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.
-
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.
-
Click Save to save the settings for your project.
-
Click Build Now in the left-side menu.
Note
A Web App container will be created only when a Web App container does not already exist.
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.