I’m using Sonarqube 8.9 LTS (8.9.1 currently), and I’m trying to have Sonarqube comment my GitLab merge requests.
After setting up the configuration according to the documentation, here is what I have in web.log :
2021.11.15 11:20:17 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.s.a.c.g.GitlabHttpClient] get projects : [https://mygitlab.mycomp.fr/api/v4/projects]
2021.11.15 11:20:17 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.i.c.TaskRunner] Q10008 scheduled after 0 <C2><B5>s: OkHttp ConnectionPool
2021.11.15 11:20:17 DEBUG web[][o.i.c.TaskRunner] Q10008 starting : OkHttp ConnectionPool
2021.11.15 11:20:17 DEBUG web[][o.i.c.TaskRunner] Q10008 run again after 300 s : OkHttp ConnectionPool
2021.11.15 11:20:17 DEBUG web[][o.i.c.TaskRunner] Q10008 finished run in 1 ms: OkHttp ConnectionPool
2021.11.15 11:20:17 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.i.c.TaskRunner] Q10008 scheduled after 0 <C2><B5>s: OkHttp ConnectionPool
2021.11.15 11:20:17 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.s.a.c.g.GitlabHttpClient] get current user : [https://mygitlab.mycomp.fr/api/v4/user]
2021.11.15 11:20:17 DEBUG web[][o.i.c.TaskRunner] Q10008 starting : OkHttp ConnectionPool
2021.11.15 11:20:17 DEBUG web[][o.i.c.TaskRunner] Q10008 run again after 300 s : OkHttp ConnectionPool
2021.11.15 11:20:17 DEBUG web[][o.i.c.TaskRunner] Q10008 finished run in 429 <C2><B5>s: OkHttp ConnectionPool
2021.11.15 11:20:18 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.i.c.TaskRunner] Q10008 scheduled after 0 <C2><B5>s: OkHttp ConnectionPool
2021.11.15 11:20:18 DEBUG web[][o.i.c.TaskRunner] Q10008 starting : OkHttp ConnectionPool
2021.11.15 11:20:18 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.s.a.c.g.GitlabHttpClient] get projects : [https://mygitlab.mycomp.fr/api/v4/projects]
2021.11.15 11:20:18 DEBUG web[][o.i.c.TaskRunner] Q10008 run again after 300 s : OkHttp ConnectionPool
2021.11.15 11:20:18 DEBUG web[][o.i.c.TaskRunner] Q10008 finished run in 362 <C2><B5>s: OkHttp ConnectionPool
2021.11.15 11:20:20 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.i.c.TaskRunner] Q10008 scheduled after 0 <C2><B5>s: OkHttp ConnectionPool
2021.11.15 11:20:20 DEBUG web[][o.i.c.TaskRunner] Q10008 starting : OkHttp ConnectionPool
2021.11.15 11:20:20 DEBUG web[][o.i.c.TaskRunner] Q10008 run again after 300 s : OkHttp ConnectionPool
2021.11.15 11:20:20 DEBUG web[][o.i.c.TaskRunner] Q10008 finished run in 275 <C2><B5>s: OkHttp ConnectionPool
2021.11.15 11:20:20 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.s.a.c.g.GitlabHttpClient] verify write permission by formating some markdown : [https://mygitlab.mycomp.fr/api/v4/markdown]
2021.11.15 11:20:20 DEBUG web[AX0hmd5Lq7nLRYn1AAB3][o.i.c.TaskRunner] Q10008 scheduled after 0 <C2><B5>s: OkHttp ConnectionPool
2021.11.15 11:20:20 DEBUG web[][o.i.c.TaskRunner] Q10008 starting : OkHttp ConnectionPool
2021.11.15 11:20:20 DEBUG web[][o.i.c.TaskRunner] Q10008 run again after 300 s : OkHttp ConnectionPool
2021.11.15 11:20:20 DEBUG web[][o.i.c.TaskRunner] Q10008 finished run in 405 <C2><B5>s: OkHttp ConnectionPool
No warning, no error, but my merge request is still uncommented. I suspect the “auto-magic parameters” which are supposed to be set by “Branch Source plugin” (cf end of Pull Request Analysis | SonarQube Docs) are not set, but how can I check this ?
Also if they are not set, what would be the way to get them ? Is there some plans for Sonarqube to be compatible with “https://plugins.jenkins.io/gitlab-plugin/” much more popular than “https://plugins.jenkins.io/gitlab-branch-source/” ?
Thank you !