Github integration with Sonarqube isn’t working

I followed the steps of integration of github with Sonarqube for PR checks as mentioned in the Sonarqube documentation like creating a GitHub app and configuring the Sonarqube instance but after that I am not able to see any PR checks of Sonarqube in my Github…I am doing for the first time please help me with the required steps to do this …like what should I have to do after creating the github app and configuring the Sonarqube instance to do get decoration of PR checks?

Please help me asap.

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hi,

One step that’s implicit in those directions is that you need a CI engine in the middle to notice your PR creation / update and fire the build/analysis. Do you have that in place?

 
Ann

Hi Ann,

Thanks for your reply.
CI engine in between you mean is like Jenkins ? So for integration Github with Sonarqube… I need to have some CI engine like Jenkins in between?? Can you please provide me the full steps to do the same?

Hi,

You might find people here in this community who are willing to step in and help you on that, but it’s really outside the scope of this community. I would try searching for something like “getting started with Continuous Integration” or even “getting started with Jenkins”. I’m sure there are dozens (at least!) of blogs and tutorials out there to get you started.

Just one thing tho: your CI (Jenkins?) instance should not be on the same server as your SonarQube instance.

 
HTH,
Ann

Hi Ann,

Definitely I will search for that…but one more question I want to ask to you that for integrating GitHub with Sonarqube …I have created the Github App and also set the Sonarqube instance as mentioned in the Sonarqube documentation…so after doing all this …Jenkins also need to be configured also for doing the integration?? or just Sonarqube and GitHub is required for integration because it nothing mentioned in Sonarqube documentation for Jenkins congratulation?

Please clear me with this question actually I am bit confused.

Please help me with this Ann…it would be great help for me.

Thanks,
Nisha

Hi Nisha,

It’s a triangle. You commit new code in GH, and…

  • GH notifies Jenkins
  • Jenkins checks out the code from GH and runs build and SonarQube analysis
  • SonarQube updates GH PR (using the access you set up with the GH App)

 
HTH,
Ann

Hi Ann,

Thanks for the help…
Can I use crontab instead of Jenkins in between GH and Sonarqube? And if yes, then how?

Thanks,
Nisha