SONARQUBE lcov import error - Could not resolve 1 file paths

北城余情 提交于 2019-12-09 12:58:18

问题


I am getting the below error whenever I try to import lcov report in to SONAR

15:00:17.230 WARN: Could not resolve 1 file paths in [/opt/app/workload/jenkins_25172/data/jobs/DEV02/workspace/coverage/lcov.info], first unresolved path: /opt/app/workload/jenkins_25172/data/jobs/DEV02/workspace/common/actions/actionCreators.js

SONAR properties:

sonar.login=**
sonar.password=**
sonar.verbose=true 
sonar.language=js
sonar.sources=.
sonar.projectBaseDir=/opt/app/workload/jenkins_25172/data/jobs/DEV02/workspace/
sonar.inclusions=coverage/**/*
sonar.javascript.lcov.reportPath=coverage/lcov.info
sonar.projectKey=test2 
sonar.projectName=test2 
sonar.projectVersion=version1 
sonar.branch=test
sonar.att.view.type=dev 
sonar.tattletale.enabled=false

Any input to fix this issue is appreciated.


回答1:


Someone looking for the same solution can try following:

reportPath to reportPaths

sonar.javascript.lcov.reportPaths=coverage/lcov.info

OR (in case of tyescript)

sonar.typescript.lcov.reportPath=coverage/lcov.info


来源:https://stackoverflow.com/questions/44033969/sonarqube-lcov-import-error-could-not-resolve-1-file-paths

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!