Azure Devops Pipelines

Error running analysis on Microsoft Agents in Azure Devops, in on-premise agent not appear this error.

  • versions used (SonarQube-8.9.3 Community on-premise, Scanner-4.6.2472, Plugin, Azure Devops SonarqubeAnalyze 5.4.0)

  • error observed
    ERROR: Error during SonarScanner execution
    org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
    Caused by: java.lang.IllegalStateException: Fail to download sonar-scanner-engine-shaded- to C:\Users\VssAdministrator.sonar\cache_tmp\fileCache234845678.tmp

  • steps to reproduce
    -Run sonarqube analysis in Azure Devops on Microsoft Agent.

  • potential workaround


Welcome to the community!

The first thing analysis does is reach out to the SonarQube server to get the basic data needed for analysis. It looks like one of those early calls is failing. This isn’t the first call - that’s a simple JSON response. But this is probably the first call that downloads anything. You should talk to your network folks.