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

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube