Code Analysis Failing

sonarcloud

(Greg Pakes) #1

Hi,

I am suddenly getting failures in my build on the Code Analysis step. The error is below:

2019-02-14T01:25:32.7213146Z INFO: SCM collecting changed files in the branch
2019-02-14T01:25:36.0686153Z INFO: ------------------------------------------------------------------------
2019-02-14T01:25:36.0687050Z INFO: EXECUTION FAILURE
2019-02-14T01:25:36.0687538Z INFO: ------------------------------------------------------------------------
2019-02-14T01:25:36.0689337Z INFO: Total time: 47.787s
2019-02-14T01:25:36.1932159Z ##[error]ERROR: Error during SonarQube Scanner execution
ERROR: Unable to load component class org.sonar.scanner.scan.filesystem.ProjectFileIndexer
ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.FileIndexer
ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.MetadataGenerator
2019-02-14T01:25:36.1932740Z ERROR: Error during SonarQube Scanner execution
2019-02-14T01:25:36.1932984Z ERROR: Unable to load component class org.sonar.scanner.scan.filesystem.ProjectFileIndexer
2019-02-14T01:25:36.1933316Z ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.FileIndexer
2019-02-14T01:25:36.1933668Z ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.MetadataGenerator
2019-02-14T01:25:36.1933747Z INFO: Final Memory: 26M/345M
2019-02-14T01:25:36.1933805Z INFO: ------------------------------------------------------------------------
2019-02-14T01:25:36.1933994Z ##[error]ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.StatusDetection
ERROR: Caused by: Unable to load component class org.sonar.scanner.scm.ScmChangedFiles
ERROR:
2019-02-14T01:25:36.1934189Z ERROR: Caused by: Unable to load component class org.sonar.scanner.scan.filesystem.StatusDetection
2019-02-14T01:25:36.1934256Z ERROR: Caused by: Unable to load component class org.sonar.scanner.scm.ScmChangedFiles
2019-02-14T01:25:36.1934308Z ERROR:
2019-02-14T01:25:36.3762215Z ##[error]The SonarQube Scanner did not complete successfully
2019-02-14T01:25:36.3763904Z The SonarQube Scanner did not complete successfully
2019-02-14T01:25:36.3826053Z 01:25:36.364 Creating a summary markdown file...
2019-02-14T01:25:36.3830601Z ##[error]01:25:36.38 Post-processing failed. Exit code: 1
2019-02-14T01:25:36.3922701Z 01:25:36.38 Post-processing failed. Exit code: 1
2019-02-14T01:25:36.5454668Z ##[error]D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.5.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1

(Adam Gabryƛ) #2

Please add:

  • list of the installed plugins on SonarQube server
  • version of the SonarQube server
  • version of the used SonarSource Scanner

It seems to me that you have incompatible plugins with the server or the scanner.


(Greg Pakes) #3

@agabrys

Hi - We are using SonarCloud - so I think the answers are below:

  • None - we use SonarCloud
  • No idea - We use SonarCloud
  • We are using the Azure Devops task