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.