Allow to configure different GitHub application per project

Hi,
We wonder if it will be possible to specify different GitHub Application settings for Pull Request plugin for each project.
At the moment (7.7) there is only global settings for setting:

  • sonar.pullrequest.github.endpoint
  • sonar.alm.github.app.name
  • sonar.alm.github.app.id
  • sonar.alm.github.app.privateKey.secured
    Which we found is very unhandy for our GitHub Enterprise use case. Basically we have plenty of teams working in separated projects with miscellaneous CI configuration.

Another problem with one GitHub application is one Webhook API - in this scenario we can’t simply hook our Jenkins Job as webhook and rebuild report.

Of course I’ve tried to set those properties in my sonar.properties file, but those are simply ignored, didn’t help to execute sonar-scanner (3.0.3.778) with -D... flag.

Proposal:
Expose properties that are used by Pull Request plugin to Project Level, so that they can be overridden for each project separately.

Hi Piotr,

If I understand correctly, you have one GitHub Enterprise and one GitHub App per project in your GitHub Enterprise (meaning one GitHub Enterprise instance and several GitHub App that would like to configure per project), is that correct ?
If I may, how many different GitHub App do you currently have?

Thanks,

Hi, that’s correct. We have one GHE, with approximately c.a. 30 projects. Some of them use Jenkins to build, some other CI solutions - inhouse included.

Problem with the current - one global GH Application is that we have only one web hook to handle retry functionality.

If from the another side we’d have a possibility to specify GH App per Sonar Project, wet could manage those teams in much more flexible way and scaling will be not a problem.

Cheers