We are using Analyzing with SonarQube Extension for VSTS/TFS in a release pipeline within Azure DevOps.
We get the following error response in the console at the Run Code Analysis step;
2019-02-24T13:15:56.0673324Z ##[section]Starting: Run Code Analysis - Website
2019-02-24T13:15:56.0676326Z ==============================================================================
2019-02-24T13:15:56.0676431Z Task : Run Code Analysis
2019-02-24T13:15:56.0676491Z Description : Run scanner and upload the results to the SonarQube server.
2019-02-24T13:15:56.0676559Z Version : 4.5.1
2019-02-24T13:15:56.0676607Z Author : sonarsource
2019-02-24T13:15:56.0676702Z Help : This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.More Information
2019-02-24T13:15:56.0676808Z ==============================================================================
2019-02-24T13:15:56.3795288Z [command]D:\a_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.5.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe end
2019-02-24T13:15:56.4457312Z SonarScanner for MSBuild 4.5
2019-02-24T13:15:56.4458457Z Using the .NET Framework version of the Scanner for MSBuild
2019-02-24T13:15:56.4990756Z Default properties file was found at D:\a_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.5.1\classic-sonar-scanner-msbuild\SonarQube.Analysis.xml
2019-02-24T13:15:56.4991365Z Loading analysis properties from D:\a_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.5.1\classic-sonar-scanner-msbuild\SonarQube.Analysis.xml
2019-02-24T13:15:56.4995905Z Post-processing started.
2019-02-24T13:15:56.6737713Z 13:15:56.657 Fetching code coverage report information from TFS…
2019-02-24T13:15:56.6758971Z 13:15:56.673 Attempting to locate a test results (.trx) file…
2019-02-24T13:15:56.7292679Z
2019-02-24T13:15:56.7293226Z ##[error]Unhandled Exception:
2019-02-24T13:15:56.7294610Z ##[error]System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption)
at SonarScanner.MSBuild.TFS.TrxFileReader.FindTrxFiles(String buildRootDirectory, Boolean shouldLog)
at SonarScanner.MSBuild.TFS.BuildVNextCoverageReportProcessor.TryGetTrxFiles(AnalysisConfig config, ITeamBuildSettings settings, IEnumerable1& trxFilePaths) at SonarScanner.MSBuild.TFS.CoverageReportProcessorBase.ProcessCoverageReports() at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.Execute(String[] args, AnalysisConfig config, ITeamBuildSettings settings) at SonarScanner.MSBuild.BootstrapperClass.PostProcess() at SonarScanner.MSBuild.BootstrapperClass.Execute() at SonarScanner.MSBuild.Program.Execute(String[] args, ILogger logger) at SonarScanner.MSBuild.Program.Main(String[] args) 2019-02-24T13:15:56.7295264Z System.ArgumentNullException: Value cannot be null. 2019-02-24T13:15:56.7295484Z Parameter name: path 2019-02-24T13:15:56.7295703Z at System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption) 2019-02-24T13:15:56.7296559Z at SonarScanner.MSBuild.TFS.TrxFileReader.FindTrxFiles(String buildRootDirectory, Boolean shouldLog) 2019-02-24T13:15:56.7296793Z at SonarScanner.MSBuild.TFS.BuildVNextCoverageReportProcessor.TryGetTrxFiles(AnalysisConfig config, ITeamBuildSettings settings, IEnumerable
1& trxFilePaths)
2019-02-24T13:15:56.7297035Z at SonarScanner.MSBuild.TFS.CoverageReportProcessorBase.ProcessCoverageReports()
2019-02-24T13:15:56.7297270Z at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.Execute(String args, AnalysisConfig config, ITeamBuildSettings settings)
2019-02-24T13:15:56.7297477Z at SonarScanner.MSBuild.BootstrapperClass.PostProcess()
2019-02-24T13:15:56.7297689Z at SonarScanner.MSBuild.BootstrapperClass.Execute()
2019-02-24T13:15:56.7297965Z at SonarScanner.MSBuild.Program.Execute(String args, ILogger logger)
2019-02-24T13:15:56.7298557Z
2019-02-24T13:15:56.7458593Z ##[error]D:\a_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.5.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 3762504530
2019-02-24T13:15:56.7528209Z ##[section]Finishing: Run Code Analysis - Website
Any suggestion to resolve this issue?