SonarQube Azure DevOps pipeline coverage is zero by lcov.info 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\lcov.info, 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\lcov.info. Seek file with path: D:\a\1\s\xxxx\coverage\lcov.info

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

Hi,

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?

 
HTH,
Ann

Thanks, i have solve this issue.

1 Like