Skip to main content

Command Palette

Search for a command to run...

Azure DevOps pipeline using Self-hosted agents

Published
2 min read
Azure DevOps pipeline using Self-hosted agents

Self-Hosted agents

An agent that you set up and manage on your own to run jobs is a self-hosted agent. You can use self-hosted agents in Azure Pipelines or Azure DevOps Server, formerly named Team Foundation Server (TFS). Self-hosted agents give you more control to install dependent software needed for your builds and deployments. Also, machine-level caches and configuration persist from run to run, which can boost speed. Before using a Self-hosted agent you need to connect to the Azure Devops

Step:1 Build a basic ubuntu machine and connect using terminal

Step:2 Install jdk 17 and Maven

Step:3 Login to Azure DevOps and Create new Project and import repo

We can import the repo using CLI aswell

Create new repository

Step:4 Add SSH keys

Copy the id_rsa public key and paste in new key column

Copy the URL

Step:5 Adding the agents

Now navigate to project settings and agent pools

Preview

Preview

Preview

Preview

  • Now configure account and permissions Refer Here

  • Configure the agent according to the steps on documentation

  • Preview

Preview

Step:7 Creating Simple Azure Devops pipeline and run