I am using Pull Request analysis configured with GitHub Enterprise and Jenkins.
After creating PR, the scan works fine as expected and results are updated back to GitHub. However, when I update the status of an issue in SonarQube, the updates are not sent back to GitHub.
What is the issue here ?
This isn’t an issue so much as a misalignment of expectations. We don’t do PR decoration following an issue status change. You’d need to trigger a fresh scan on the PR if you wanted to see the decoration get updated.
I stand corrected! I didn’t think we did anything to reach back out to update after issue changes in the SonarQube UI, but we do. At least in 8.5, I can see the update take place if I mark issues resolved manually. If debug-level logging is enabled, you can see the update take place in your web.log - perhaps this then is also where you could see evidence of any error.
After enabling debug logs, this is what I see in web.log after PR analysis completes:
See attachment with time starting from *2020.10.27 14:25:37
Once I update the issue status in SonarQube, this is what I see in web.log: (I have redacted some log)
See attachment with time starting from *2020.10.27 14:26:47
I don’t see any errors as such. And why is there {Server: GitHub.com} ? I am using GitHub Enterprise.web.log (8.0 KB)