# Sonarqube code coverage shows 0% after running build

**URL:** <https://community.sonarsource.com/t/sonarqube-code-coverage-shows-0-after-running-build/115477>\
**Category:** SonarQube Server / Community Build\
**Tags:** coverage\
**Created:** [May 16, 2024, 11:49am UTC](https://community.sonarsource.com/t/sonarqube-code-coverage-shows-0-after-running-build/115477 "2024-05-16T11:49:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkatanag](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@Venkatanag](https://community.sonarsource.com/u/Venkatanag)\
**Post date:** [May 16, 2024, 11:49am UTC](https://community.sonarsource.com/t/sonarqube-code-coverage-shows-0-after-running-build/115477/1 "2024-05-16T11:49:01Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)  
Sonarqube version : 9.1  
Plugin : SonarQube Scanner
- how is SonarQube deployed: zip, Docker, Helm : jenkins
- what are you trying to achieve :  
I’m trying to get Code coverage to show in SonarQube project page. Currently it is reporting as 0% but my generated open cover.xml
- what have you tried so far to achieve this

Problem: Jenkins job are successfully, we are getting the report with 0%.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [May 17, 2024, 5:46pm UTC](https://community.sonarsource.com/t/sonarqube-code-coverage-shows-0-after-running-build/115477/2 "2024-05-17T17:46:03Z")

</div>

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

> 9.1 → 9.9.4 → 10.5.1 (last step optional)

You may find these resources helpful:

- [Upgrade Guide](https://docs.sonarqube.org/latest/setup/upgrading/)
- [LTS to LTS release upgrade notes for 8.9 to 9.9](https://docs.sonarqube.org/9.9/setup-and-upgrade/lts-to-lts-release-upgrade-notes/)

If you have questions about upgrading, feel free to open a new thread for that [here](https://community.sonarsource.com/c/sq/9-9-lts-upgrade/47).

Once you’ve upgraded, [the docs](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/test-coverage/overview/) should get you started on coverage.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Venkatanag](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@Venkatanag](https://community.sonarsource.com/u/Venkatanag)\
**Post date:** [May 20, 2024, 7:17am UTC](https://community.sonarsource.com/t/sonarqube-code-coverage-shows-0-after-running-build/115477/3 "2024-05-20T07:17:52Z")

</div>

Hi G Ann Campbell,

1. Present we are using License SonarQube 9.1 version. We are purchase the license for the 9.1 Developer Edition version. Which version i have to upgrade?.
2. Do you know because of the 9.1 EOL version is the reason for this 0% code coverage issue.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [May 20, 2024, 12:16pm UTC](https://community.sonarsource.com/t/sonarqube-code-coverage-shows-0-after-running-build/115477/4 "2024-05-20T12:16:19Z")

</div>

Hi,

Your answer is pretty much the same as the one given by a person I’m coming to realize is probably your colleague. [Since my response to you would be the same as the one I gave them, I won’t bother to re-type it](https://community.sonarsource.com/t/sonarqube-showing-code-coverage-report-with-zero-percentage/115440/4).

In future, please coordinate your efforts better so that we’re not providing the same answers to the same questions for the same people over and over again.

&nbsp;  
Ann
