Shows 0 code coverage for node js application whereas Jenkins shows coverage from cobertura

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • 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.
    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/] 
**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/], first unresolved path: src/app/app.component.ts


your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.4 → 8.9.3 → 9.2.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, the missing coverage is unrelated to the error about TypeScript rules (which is likely to go away after your upgrade).