- Provision VM (here image: CentOS7)
- Install initial packages (Java11 OpenJDK, Maven, GIT...)
- Create directory for agent installation
mkdir myagent && cd myagent
- Download and extract installation files
wget https://vstsagentpackage.azureedge.net/agent/2.211.1/vsts-agent-linux-x64-2.211.1.tar.gz
tar zxvf vsts-agent-linux-x64-2.211.1.tar.gz
- Run
config.sh
to install and configure agent. You need to have agent pool already created in AzureDevOps. On this step you add Azure DevOps token. sudo ./svc.sh install vagrant
(by each next VM start agent is started and connected to AzureDevOps automatically).sudo ./svc.sh start
and check if runningsudo ./svc.sh status
.- Check Azure DevOps portal if your agent is available and run sample pipeline defining usage of this agent.