A Jenkins Plugin to deploy an Azure App Service (currently supports only Web App).
Register and authorize your client application.
Retrieve and use Client ID and Client Secret to be sent to Azure AD during authentication.
Refer to
- Download the azure-app-service.hpi file from here
- Within the Jenkins dashboard, click Manage Jenkins.
- In the Manage Jenkins page, click Manage Plugins.
- Click the Advanced tab.
- Click on the Choose file button in the Upload Plugin section and choose the azure-webapp-plugin.hpi file.
- Click the Upload button in the Upload Plugin section.
- Click either “Install without restart” or “Download now and install after restart”.
- Restart Jenkins if necessary.
- Within the Jenkins dashboard, Select a Job then select Configure
- Scroll to the "Add post-build action" drop down.
- Select "Azure WebApp Configuration"
- Enter the subscription ID, Client ID, Client Secret and the OAuth 2.0 Token Endpoint in the Azure Profile Configuration section.
- Enter the Resource Group Name, Location, Hosting Plan Name, Web App Name, Sku Name, Sku Capacity, War File Path in the WebApp Configuration section.
- Save Job and click on Build now.
- Jenkins will create an Azure WebApp and deploy the War file to the WebApp if it doesn't exist. Otherwise, the War file will be deployed to the existing WebApp.
- Logs are available in the builds console logs.