Hi, I have installed sonarqube developer edition-7.7. I am trying to enable pr decoration. I have followed all the steps mentioned:
https://docs.sonarqube.org/latest/instance-administration/github-application/.
But when I have created a pr, I don’t see any git qonar result in github PR. Do I need to make any config changes/ or set any property at project level ?
Hi,
Did you pass the PR parameters on the analysis side? Also, you’ve said “I don’t see any git [s]onar results in github PR”. What do you see?
Ann
Hi Ann, Thanks for reply,
From git hub side on PR, if I click to check tab, then I see the newly created github-app, And it shows it is queued. And when I see the delivery status of the github app, I see this message.“We couldn’t deliver this payload: Failure when receiving data from the peer” . I have passed 4 parameters from maven pom.xml.
sonar.pullrequest.base
sonar.pullrequest.branch
sonar.pullrequest.key
sonar.pullrequest.github.repository
Note: I also wanted to know what should be the value of sonar.pullrequest.key ? Is this the PR number ? In that case we need to update it with every new PR.
Hi,
Yes, the sonar.pullrequest.key
needs to be the key of the PR, per the docs. Generally the pull request-related parameters would all be passed on the command line (-Dsonar.pullrequest...
) rather than edited into the POM.
Ann
Thanks, I now see the below warning on sonar side, on github side the github app is still queued for ever.
message on sonar-side:Pull request decoration did not happen. Please install SonarQube Github application on the repository’s organization or user.
On git hub app :
We couldn’t deliver this payload: Failure when receiving data from the peer
Can you please guide me, how can I fix this issue.