I have a Windows VM that hosts a VSTS build agent. Due to the number and length of builds that are running I would like to know whether multiple build agents can be hosted on one computer? That would allow a dedicated agent for slow builds, and a dedicated agent for quick builds.
https://www.visualstudio.com/en-us/docs/build/admin/agents/v2-windows
This repository contains images for the Visual Studio Team Services (VSTS) agent that runs tasks as part of a build or release. VSTS agent images are tagged according to the base OS, an optional Team Foundation Server (TFS) version, and tools that are installed.
Navigate to your project and choose Project settings, Agent pools. Navigate to your project and choose Project settings, Agent pools. Navigate to your project and choose Settings (gear icon) > Agent Queues. At this time you can view information about agent pools and queues, but not edit them, using the Azure CLI.
Azure DevOps Server 2019 and Azure DevOps Server 2020 Log on to the machine using the account for which you've prepared permissions as explained above. In your web browser, sign in to Azure DevOps Server 2019, and navigate to the Agent pools tab: Choose Azure DevOps, Organization settings. Choose Agent pools.
Yes you can run multiple agents in a single VM.
Make two directories say Agent1 and Agent2, extract the agent in each one of them and configure them with different names against your VSTS/TFS account.
It should work out of the box.
We run 4 agent jobs per machine concurrently with no issues. As mentioned above, should work out of the box. Just make sure you clean up directories. We have a script to do it every night
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With