DevOps Classroomnotes 08/Feb/2023

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
    Preview
    Preview
    Preview
    Preview
  • 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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner