如何在Pipelines上配置SonarQube参数可以其正确读取lcov.info 文件,从而在SonarQube上显示覆盖率呢?
我已经尝试了sonar.javascript.lcov.reportPaths=$(Build.SourcesDirectory)\项目名\coverage\lcov.info,但是会报警告,提示找不到lcov.info文件,所以我应该如何配置Pipelines才可以在SonarQube正常显示覆盖率呢?
下面是一些警告信息,FYI。
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