Configuring Self hosted Agent in Azure DevOps
Lets create an Ubuntu 24.04 Agent
- Softwares:
- Azure DevOps Agent Setup:
- This requires a PAT (Personal Access Token)

Activity
- Lets create a pipeline to build the maven project
- Azure Devops YAML Schema
- Generic Pipeline:
- When to run
- What has to be executed
- Where it has to run
- metadata
- In Azure DevOps Pipelines
- What is decided by steps
- Where is decided by pool section
- when is decided by triggers
- Manual step
git clone <url>
cd <folder>
mvn package
- When: whenver any change is pushed to main branch
- Where: ON a self hosted agent
- Refer Here for the first pipeline
name: spring-pet-clinic
trigger:
- main
pool: Default
steps:
- script: ./mvnw clean package
name: spring-pet-clinic
trigger:
- main
pool: Default
steps:
- task: Maven@4
displayName: Maven Build
inputs:
mavenPOMFile: 'pom.xml'
goals: 'package'
testResultsFiles: '**/surefire-reports/TEST-*.xml'
Azure DevOps Steps
Like this:
Like Loading...