Azure DevOps
Configuring Self Hosted Agent
- Lets configure a self hosted agent.
- Create a ubuntu vm
- Lets try to build this application
- Self Hosted agents can be created in custom pools or
default
pool
- To configure the self hosted agent we need to create PAT (Personal Access Tokens) Refer Here and Refer Here for linux agents
- The pipeline for sample dotnet project Refer Here is
---
pool: Default
trigger:
- master
jobs:
- job: Build_Job
displayName: Build dotnet project
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: src/dotnet-demoapp.csproj
- job: Test_Job
displayName: Test dotnet
dependsOn: Build_Job
condition: succeeded()
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: tests/tests.csproj