Questions tagged [sonar-gerrit]

Sonar-Gerrit Jenkins plugin

Plugin page

24 questions
4
votes
1 answer

Can i do sonar scan on the Gerrit patch?

As part of my precheckin workflow in Gerrit I want to configure sonarqube to perform scan on the submitted patch, I am using sonar-gerrit plugin in my Jenkins and configured gerrit-trigger to run this analysis job. This job is configured with…
3
votes
1 answer

Sonar-Gerrit Jenkins plugin ambiguous results

I use Gerrit-Sonar plugin in my Jenkins jobs. When I run the job, I get an exact result in the logs, that "n issues were found" and the report was sent to Gerrit. However, when I watch the review in Gerrit, it says that "No issues were found" and…
user
  • 3,058
  • 23
  • 45
2
votes
1 answer

What is the use of auth.restTokenPrivateKey in gerrit's secure.config for?

I came across this variable which got generated and stored in secure.config file on gerrit review_site, Is it possible for me to make use of this restTokenPrivateKey value to call rest api to gerrit instance?
1
vote
1 answer

sonar pull request analysis is not showing any measures or code

Helllo, we have enterirpise SQ setup on premis and it is setup to do pull request analyis with Sonar Gerrit plugin. issues is that analysis shows no code or measures and just PASSED. is there a setting that am…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
1
vote
1 answer

Incompatibility with Sonar7.7

Jenkins version:2.204.3 Sonarqube version:7.9.2 sonar-gerrit plugin: 2.30 I meet a issue:starting Sonarqube 7.7 in the preview mode (-Dsonar.analysis.mode=preview) was removed, making it incompatible with the plugin. How can I fix this issue…
JainPing
  • 75
  • 1
  • 7
1
vote
1 answer

SonarToGerrit plugin, how to get use it for multi module project

I have used the sonarToGerrit plugin for a while and now I looking into how I can improve the performance when the preview mode is removed. I'm testing at the moment with latest LTS version 7.9.2 of sonarqube togheter with the branch plugin. But the…
1
vote
3 answers

Sonarqube not reporting results back to Jenkins and Gerrit

Context: Right now I have a Jenkins freestyle job that is triggered by some Gerrit events. When it is triggered, it downloads the changes and runs a Sonarqube Analysis on them. After the analysis is done, it is supposed to post comments on Gerrit…
lockijazz
  • 75
  • 2
  • 9
1
vote
1 answer

Gerrit build posting comments from post build actions in Jenkins

I have integrated Sonar gerrit plugin to post sonar reports as comment in the gerrit web ui. Posting the sonar comments is configured in the post build action of the gerrit build to be posted under sonar-verified category.Verified scoring is posted…
saurav
  • 5,388
  • 10
  • 56
  • 101
1
vote
2 answers

Scoring in Code-Review gerrit category is not happening

I have configured Sonar gerrit jenkins plugin which is initiated by gerrit trigger plugin through gerrit rest APIs. https://wiki.jenkins-ci.org/display/JENKINS/Sonar+Gerrit I followed all the instructions mentioned and it working fine. There is only…
saurav
  • 5,388
  • 10
  • 56
  • 101
0
votes
1 answer

jenksinfile to post long comment in multiple lines using gerrits plugin

I am using gerrits plugin to post comments to gerrit. how to post a new line or say, break the comment into multiple newlines? below is going as a comment on gerrit as single line. I want to break it in two 3 lines. how would…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
0 answers

sonar2gerrit plugin not posting coverage percentage to gerrit pull branch analysis

Team, sonar2gerrit plugin v377.v8f3808963dc5 is installed on my jenkins and am not sure if am missing any flag or is this feature not available. sonar2gerrit plugin is just posting scan results as comments without coverage percentage. sonar plugin…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
0 answers

change url in gerrit comments posted by sonarqube plugin pull branch analysis

Team, I am able to post comment in gerrit on patchset but i am not able to figure out how to change the url that is set in along with comment se in green in pic. any hint? Please observe the screen shot and I want to set a property in my jenkinsfile…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
0 answers

Sonar pull request analysis is scanning entire repo instead of just the changed files in gerrit git

Helllo, we have enterirpise SQ setup on premis and it is setup to do Sonar Gerrit but we are observing that scan is taking long to complete as it is running on entire repo and not JUST scanning the changed files. any guidance how can we avoid delay…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
0
votes
0 answers

Sonar-Gerrit integration shows error in Jenkins

There is a Jenkins freestyle job that is triggered by some Gerrit events.In response to triggers, it downloads the changes and runs a Sonarqube Analysis. The Sonarqube comments detailing the results are to be posted on Gerrit after the analysis is…
0
votes
1 answer

Sonar-Gerrit Jenkins plugin not reporting issues on Gerrit

Jenkins and SonarQube Environment Information Jenkins - 2.235.5 Gerrit Trigger - 2.31.0 Sonar Gerrit Plugin - 2.4.3 SonarQube Scanner for Jenkins - 2.12 SonarQube Version - 6.7.7 (LTS). Configuration: - Freestyle Job. Jenkins Job Console…
user4948798
  • 1,924
  • 4
  • 43
  • 89
1
2