-1

I am trying to run sonarqube analysis on code commit itself . I have added 1) prepare analysis configuration and 2) run code analysis, tasks in CI build. But I am getting an error : " No agent found in pool mypool which satisfies the specified demands: msbuild visualstudio java Agent.Version -gtVersion 2.119.1"

Can anyone please guide on what the issue is ? Thanks in Advance !

Raq
  • 433
  • 1
  • 7
  • 20

1 Answers1

0

Configuring Sonarqube analysis in CI build in VSTS

According to the error message:

error : " No agent found in pool mypool which satisfies the specified demands: msbuild visualstudio java Agent.Version -gtVersion 2.119.1"

Which means that your private agent does not meet all the demands you set, including msbuild, visualstudio, java, Agent.Version -gtVersion 2.119.1.

So, you should double check if your private agent has those demands, you could move those demands one by one, to check which one is not up to the requirements.

AFAIK, to configure Sonarqube analysis in CI build in Azure Devops, we need following demands:

  • Make sure the .NET Framework v4.6+ is installed
  • Make sure the Java Runtime Environment 8 is installed
  • Install the extension SonarQube from the marketplace

Check the document Analyzing with SonarQube Extension for VSTS-TFS for some details.

Hope this helps.

Leo Liu
  • 71,098
  • 10
  • 114
  • 135