Hi all,
I have gitlab project written in golang. I am running unit tests written in the project to calculate (go) code coverage using Jenkins.
I am using ’ SonarQube Scanner for Jenkins’ plugin.
Code coverage is getting calculated successfully and things are working fine. I am able to get all required information (coverage, lines covered, lines to be covered, etc.) using SonarQube server url.
Now, my requirement is I want to show total coverage count in email. For this, I have created html file.
But how to get total coverage count calculated by sonar-scanner? I can see that number in SonarQube server url at ‘Projects’ tab. But reading it from there in automation is not possible.
So, where does Sonar store all coverage related information, I mean in which file? So, that I can read it from there in automation.
Does it store coverage calculation information in Jenkins server, or sonarqube server?
I just want to get total percentage number. Can I get using ‘sonar-scanner.bat’ command?
Please help me and let me know how to get this count so that I can show it in my coverage report.
Thanks in advance.
Regards,
Nilesh