sonar-scoverage-plugin icon indicating copy to clipboard operation
sonar-scoverage-plugin copied to clipboard

Support for SonarQube version 6.x

Open meddulla opened this issue 8 years ago • 15 comments

Hi,

Are there any plans to upgrade to the latest SonarQube (6.x)? If not, do you have any idea on the amount of work required and would you be open to a pull request on this?

Thanks

meddulla avatar Feb 14 '17 13:02 meddulla

i'm also in need of getting this to work with SonarQube version 6.0 ...

s3ni0r avatar Feb 25 '17 18:02 s3ni0r

I can try to look at it within a week...Thanks.

RadoBuransky avatar Mar 01 '17 20:03 RadoBuransky

There's quite a lot of breaking changes and deprecated stuff. I am not sure if I have enough time to fix it. Or I am just too lazy. Any volunteers?

RadoBuransky avatar Mar 03 '17 23:03 RadoBuransky

I really would like to, but i'm not familiar with the code base, it will take me even longer to understand and fix what has to be fixed.

s3ni0r avatar Apr 06 '17 17:04 s3ni0r

@RadoBuransky push the branch with draft u have to repo, ppl can send PRs when time permits +1 for support

zafarella avatar Apr 08 '17 14:04 zafarella

I haven't gotten anywhere practically. Feel free to be the first one!

RadoBuransky avatar Apr 10 '17 16:04 RadoBuransky

hey guys,

I have sketched out an update to version 6.3 for our own environment. You can find it on the dev branch of my fork. However there are some major issues (see Readme).

If somebody wants to continue from there feel free to do so. An alternative would be a rewrite dropping support for old scoverage files, revisting the whole relative / absolute branch issues ...

Also checkout https://github.com/Sagacify/sonar-scala I think it would be best to join efforts! Especially since I have a feeling that some of the issues might be related to "hacky" language definition ...

Best regards Michael

MichaelZinsmaier avatar Apr 25 '17 22:04 MichaelZinsmaier

@MichaelZinsmaier I tried to build and upload your plugin but got the following error: java.lang.IllegalStateException: Unable to read plugin manifest from jar : /opt/sonarqube/extensions/plugins/sonar-scoverage-plugin-5.1.3.jar Any ideas?

ryan-barker-zefr avatar May 12 '17 00:05 ryan-barker-zefr

hm not much could be a version conflict? My current dev branch is intended for SonarQube 6.3 apart from that I just run a standard maven build and then drop the jar file in the extension folder (test system is a linux system)

sry never saw this happening good luck

MichaelZinsmaier avatar May 14 '17 14:05 MichaelZinsmaier

@MichaelZinsmaier So we ( @ryan-barker-zefr and I ) were able to get the plugin installed on SonarQube 6.3 but the scala language is not showing up as something I can put on a Quality Profile. Any ideas where to start?

Zephirin avatar May 18 '17 21:05 Zephirin

Hi guys, I would like to update the plugin code in order to add support for Sonarqube 6.x. Anybody knows If there are a small manual or tutorials about how to to start it.

JlccX avatar May 30 '17 13:05 JlccX

@Zephirin sorry no idea what the issue could be @JL-ChoqueChavez

I used mainly the following sources github extension guide release notes

sadly the sonar guys do change a lot between versions and plugin documentation is sparse and slightly outdated. Looking at Git / the code is quite helpful from time to time.

good luck!

MichaelZinsmaier avatar May 30 '17 15:05 MichaelZinsmaier

@Zephirin

Just in case I tried to use SonarQube 6.4 with the scoverage plugin. If you use the scoverage plugin version 5.1.2, SonarQube detects and allow you to create the Scala profile, after to set as default the Scala profile I executed the sonar-scanner application and the scoverage report content was successfully imported to SonarQube 6.4.

but this logic is not working with the scoverage plugin 5.1.3, because you cannot create the Scala profile.

JlccX avatar Jun 08 '17 20:06 JlccX

@JlccX how did you view statement coverage on SonarQube? As I understand, the plugin creates custom widget to view it. But all custom dashboards and widgets was dropped in SonarQube v6.2 (SONAR-8354).

Could you please provide some document or steps how to view statement coverage on SonarQube 6.4 with this plugin?

dmtwng avatar Aug 08 '17 10:08 dmtwng

Hi guys Just in case I found a new plugin that you can use to import scoverage (scala) code coverage reports into sonarqube 6.x.

The plugins link is: https://github.com/Sagacify/sonar-scala/releases

JlccX avatar Jan 02 '18 21:01 JlccX