Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
7.9.4 - what are you trying to achieve
To show code coverage in sonarQube . as of now I could see code coverage report on cobertura in jenkins but it is not being shown in sonarqube.
sonar property I am using below and lcov is getting generated here on that location.
sonar.javascript.lcov.reportPaths=./source/reports/cucumber/prebuild/coverage/lcov.info
Not sure if there is anyway to send cobertura-coverage.xml from source/cobertura-coverage.xml to sonarqube for javascript. - what have you tried so far to achieve this
tried to use sonar.typescript.lcov.reportPaths and sonar.javascript.lcov.reportPaths
Below is the log: I am not sure if it is becasue it says no valid rules has been specified
ERROR: No valid rules have been specified for TypeScript files
**11:35:19** INFO: 11 files analyzed out of 11
**11:35:19** INFO: Sensor SonarTS [typescript] (done) | time=3430ms
**11:35:19** INFO: Sensor JaCoCo XML Report Importer [jacoco]
**11:35:19** INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
**11:35:19** INFO: Sensor SonarJS [javascript]
**11:35:19** INFO: 1 source files to be analyzed
**11:35:19** INFO: Sensor SonarJS [javascript] (done) | time=72ms
**11:35:19** INFO: 1/1 source files have been analyzed
**11:35:19** INFO: Sensor ESLint-based SonarJS [javascript]
**11:35:19** INFO: Sensor ESLint-based SonarJS [javascript] (done) | time=0ms
**11:35:19** INFO: Sensor SonarJS Coverage [javascript]
**11:35:19** INFO: Analysing [/jenkins/jenkins.p/workspace/ngular-vaccination-poc-oci_Path5/./source/reports/cucumber/prebuild/coverage/lcov.info]
**11:35:19** WARN: Could not resolve 1 file paths in [/jenkins/jenkins.p/workspace/ngular-vaccination-poc-oci_Path5/./source/reports/cucumber/prebuild/coverage/lcov.info], first unresolved path: src/app/app.component.ts