SonarQube Azure DevOps pipeline coverage is zero by file

How to configure pipeline can make SonarQube coverage is not zero?
I’ve tried to configure sonar.javascript.lcov.reportPaths=$(Build.SourcesDirectory)\xxxx\coverage\, but it doesn’t take effect,
These are some warning messages., What should I do?

2021-11-10T03:25:28.9711622Z WARN: No coverage information will be saved because LCOV file cannot be found.

2021-11-10T03:25:28.9712625Z WARN: Provided LCOV file path: D:\a\1\s\xxxx\coverage\ Seek file with path: D:\a\1\s\xxxx\coverage\

2021-11-10T03:25:28.9719746Z WARN: No coverage information will be saved because all LCOV files cannot be found.

2021-11-10T03:25:28.9720987Z INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=2ms

2021-11-10T03:25:28.9832264Z WARN: Missing property:sonar.cfn.nag.reportFiles
2021-11-10T03:25:28.9833387Z WARN: Missing property:sonar.checkov.reportFiles

2021-11-10T03:26:48.0627550Z INFO: Sonargraph Integration: XML report file path not configured - using default ‘target/sonargraph/sonargraph-sonarqube-report.xml’

2021-11-10T03:26:48.0631031Z WARN: Sonargraph Integration: XML report file ‘D:\a\1\s\target\sonargraph\sonargraph-sonarqube-report.xml’ not found


Welcome to the community!

The ‘not found’ message is key here. Can you try providing a path that’s relative to where analysis starts from?


Thanks, i have solve this issue.

1 Like