Fail to resolve files from scoverage.xml, but file paths are correct

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) - * Version 7.8 (build 26217)
  • what are you trying to achieve - we are trying to post code-coverage to Sonarqube dashboard
  • what have you tried so far to achieve this - we have modified the scoverage.xml file to include the correct paths, but even with correct paths it fails to resolve paths. To further explain, one can copy the path in the error output, and paste it into the console and it will find the file.

Any response to this issue. Having the same problem with scala. All files reported in the scoverage.xml are valid file paths.

  • Sonarqube * Community Edition Version 7.7
  • SonarScala Code Analyzer for Scala 1.5.0 (build 315)installed

16:39:35 [INFO] Importing coverage from /data/builds/workspace/service-project-2.0/apps/service-project/target/scoverage.xml

  • 0/0 source files have been analyzed
  • [WARNING] Fail to resolve 45 file(s). No coverage data will be imported on the following file(s):

Jenkins build log reporting issue


Hello @drod,

0/0 source files have been analyzed

It seems that you are not providing any file to analyze, and you can only import coverage for source files.
My guess is that coverage reports and properties are indeed correct, and the problem comes from a misconfiguration of properties? Especially sonar.source?