I am currently using Sonarqube enterprise edition and followed steps in follwing pages to setup pr analysis reporting to sonarqube and pr decoration. Pull Request Analysis | SonarQube Docs and GitHub Enterprise Integration | SonarQube Docs.
I am able to post sonar-analysis results to sonarqube-enterprise-instance + PR decorator to a github PR when I configure below arguments on SonarQube UI Instance.
For PR decorator, additionally I pass -Dsonar.pullrequest.github.repository=/project
I do deal with multiple projects and have multiple github hosts within my organisation and for this reason I do not want this to be a global configuration.
When I try to pass the above said parameters through sonar-project.properties / sonar-scanner.properties / through command line as -Dsonar… instead of setting in sonar ui instance, PR analysis will to sonar will be successful but PR decoration fails with below message in sonar-server
Pull request decoration did not happen. Github Application configuration is incomplete. Contact your SonarQube administrator to fix it.
After multiple permutations and combinations, my observation is that the 5 parameters mentioned above will have effect (pr analysis to sonarqube + pr decoration) only when set through UI and when set through any other mode (command line, soanr-project.props, sonar-scanner.props) will have no influence.
Is this the expected behaviour or am I missing something here?
I checked sonar logs and I do not see any error as such.
Below is the configuration I tried on:
Sonarqube Enterprise edition - 126.96.36.199448
sonar-scanner - 188.8.131.522
Running analysis on a Java based project.