1
votes

I'm relatively new to Azure DevOps. I have Azure DevOps Server 2019 installed on a Windows 2016 server. I created an Azure pipeline using the classic editor. I have four steps in my agent job which are: install node, 'npm install', 'dotnet restore', and 'ng test'. When I run the build I get the following error:

 No agent found in pool Default which satisfies the specified demands:
     Agent.Version -gtVersion 2.115.0 

I looked at other StackOverflow posts and installed Visual Studio 2019 on the server to try to solve the problem. Still got the same error. Do I need to add something to the pipeline?

2

2 Answers

3
votes

You can either have Microsoft-hosted agents (provided by Microsoft to run jobs) or you can have Self-hosted agents (running on your own hardware or some VM). When you configure to run against the Default pool, that would be the one setup for you to register any Self-Hosted agents.

If you navigate to agent pool for "Default" (Settings >> Agent Pools), I would guess you will see that Default doesn't have any configured agents. You should probably walk through the documentation to download and register an agent for that pool.

From the Agent Pool screen for Default, there will also be a "New Agent" button you can press to get the download link with instructions.

1
votes

So basically it tells that your agent version is not modern enough. The doc here says

Starting with Azure DevOps Server 2019, you don't have to wait for a new server release. You can upload a new version of the agent to your application tier, and that version will be offered as an upgrade.

And the next section provides info on upgrading. It's a matter of grabbing the newer version from the Github and unpacking it to the %ProgramData%\Microsoft\Azure DevOps\Agents.