Github Pull Request decoration not working with the plugin

github
pull-request
sonarcloud

(Maxwell) #1

Hi, I am trying to setup the pull request for internal repositories with the GithubPlugin, and can;t make it work, turning the debug mode on maven i can see the following error:

[DEBUG] 18:38:03.190 ‘GitHub Pull Request Issue Publisher’ skipped because one of the required properties is missing.

I have invoking maven sonar plugin with:

mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=ORG_NAME -Dsonar.login=TOKEN -Dsonar.pullrequest.base=master -Dsonar.pullrequest.branch=BRANCH_NAME -Dsonar.pullrequest.key=PULL_REQUEST_ID -Dsonar.pullrequest.provider=GitHub -Dsonar.pullrequest.github.repository=ORG_REPO_NAME

I have tried to also setup in the sonarcloud ui, all the required field, even if the doc say they are not necessary when using the plugin:

sonar.pullrequest.provider
sonar.pullrequest.github.endpoint
sonar.pullrequest.github.token.secured
sonar.pullrequest.github.repository

My account is still in trial mode, would that be the reason? Any idea where to look to have that integration working? What would be these properties maven plugin is complaining about?

Thanks


(Nicolas Bontoux) #2

Hi,

Is this related to:

? To help avoid parallel conversations. I guess it’s worth double-checking behaviour after the reply you got in that other thread.

Negative, trial period is fully-featured, no specific restrictions.


(Maxwell) #3

Hi Nicolas,

Yes sorry it was the same issue, actually it didnt work with the same command there, but it worked after I tried a different Token, I just can’t understand why I do need a token if I have installed the Github app, I understood from the documentation that installing the plugin would be enough.

Maybe a way to read logs, and debug these kind of issues would make easier for users.

Anyways it seems to be working now.

Thanks.