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

How to generate and see the analysis report when using this plug-in

Open rajeshhereforyou opened this issue 6 years ago • 8 comments

Hi, I'm using sonarqube 6.3 and the corresponding plugin version (3.0) and trying to understand what are the next steps to generate the report and see the report. Please help me on this ASAP.

rajeshhereforyou avatar Sep 21 '18 20:09 rajeshhereforyou

Hi, Do you use mvn, gradle, sonar scanner or other ?

gabrie-allaigre avatar Sep 21 '18 21:09 gabrie-allaigre

I'm using gradle

rajeshhereforyou avatar Sep 21 '18 21:09 rajeshhereforyou

HI, Can you please suggest me on this at the earliest.

rajeshhereforyou avatar Sep 24 '18 13:09 rajeshhereforyou

have you looked in the issues? #57

Thanks

gabrie-allaigre avatar Sep 24 '18 13:09 gabrie-allaigre

Thanks for sharing this. Let me try that. Meanwhile I've coupe of questions here.

  1. I want to first try this in my machine before deploying it onto the server. For this, How do i do this?
  2. I'm using TeamCity for build. Can you please suggest me how can i use this plugin with TeamCity?

rajeshhereforyou avatar Sep 24 '18 13:09 rajeshhereforyou

Hi added all the necessary dependencies (for this plugin) to my gradle file and also added the plug-ins required for sonar integration and I can see the build is generating sonar results but I don't see this plugin generating any report in my GitLab.

I did the below configuration in SonarQube

  1. Setup GItlab URL
  2. Setup the User Token
  3. Setup the Global template

I'm running the below gradle command in my local ./gradlew sonarqube

Please suggest me if I'm missing anything.

rajeshhereforyou avatar Sep 24 '18 14:09 rajeshhereforyou

I'm using the below template from #154 in my sonarQube --> Gitlab tab

https://github.com/gabrie-allaigre/sonar-gitlab-plugin/blob/master/templates/global/all-issues.md

rajeshhereforyou avatar Sep 24 '18 14:09 rajeshhereforyou

Hi, In #57, you are referring to gitlab-ci.yml. I think this would be come into picture if we are using gitlabci for CI/CD but we are not using that.

so my question is, when i create a merge request for changes in Gitlab, how do I configure to enable this plugin to trigger the sonarqube analysis and report it back to Gitlab and show the details with the merge request.

rajeshhereforyou avatar Oct 25 '18 15:10 rajeshhereforyou