Why Github PR is not updated with Sonar analysis


(Parashuram Vharagar) #1

I have followed [this] (https://docs.sonarqube.org/display/PLUG/GitHub+Plugin)article and did the setup as mentioned for dot net project. Below are the commands which are being used currently.

SonarScanner.MSBuild.exe begin /k:MyProjectKey /n:MyProjectName /v:v.1  /d:"sonar.analysis.mode=preview" /d:"sonar.github.pullRequest=11" /d:"sonar.github.repository=user/MyProject" /d:"sonar.github.oauth=authtoken"

MSBuild.exe "C:\MyProject\MyProject.sln" /t:Rebuild

SonarScanner.MSBuild.exe end

Analysis runs fine as I can see on the command prompt and doesn’t log any errors but somehow the PR is not getting updated back with the Sonar analysis done. What I am missing ?

Just for info, if I run this in Publish mode, this runs fine and I see the analysis on sonar server.

Thanks in advance!