Wednesday, January 25, 2023

Azure Build Pipeline for building Java Project using Maven using Self-hosted Linux Build agent | How to Build a Java Project using Azure Build Agent

Building pipelines in Azure DevOps is really easy, you can migrate your web applications from any where into Azure Cloud by using Azure pipelines.

Pre-requisites:

Create Azure Build YAML pipeline in Azure DevOps

Login to Azure DevOps organization, go to your project dashboard.

Click on Pipelines --> new pipeline


Select GitHub or where ever your source code is 


Select your code repo

Choose Maven option as below for automating Build of Java Web App

Now Review Azure pipeline code
Modify per below, add pool name

pool: Ubuntu18-VM-Pool
steps:
- task: Maven@3
inputs:
mavenPomFile: 'MyWebApp/pom.xml'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'

Save and Click on Run


Now you will see pipeline will be running on agent



No comments:

Post a Comment

DevSecOps Bootcamp Dec 2024 Schedule | DevSecOps & AWS Azure Cloud Coaching by Coach AK | DevSecOps and Cloud Computing Online Classes

Lot of new topics covered like GitHub Actions, GitHub Advanced Security, Helm, Prometheus and Grafana..) The DevOps requirements in the IT m...