mibexsoftware / sonar-bitbucket-plugin

SonarQube plug-in to create pull request comments for found issues in Bitbucket Cloud
Other
123 stars 72 forks source link

call back URL in the Bitbucket OAuth configuration for sonar plugin #106

Closed raghav-a closed 5 years ago

raghav-a commented 5 years ago

while running the command

mvn clean verify sonar:sonar --batch-mode --errors \ -Dsonar.bitbucket.repoSlug= \ -Dsonar.bitbucket.accountName= \ -Dsonar.bitbucket.teamName= \ -Dsonar.bitbucket.oauthClientKey= \ -Dsonar.bitbucket.oauthClientSecret= \ -Dsonar.bitbucket.branchName= \ -Dsonar.host.url= \ -Dsonar.login= \ -Dsonar.password= \ -Dsonar.analysis.mode=issues

I am using oauth for authentication with bitbucket and added

I m getting the error

Caused by: java.lang.IllegalStateException: [sonar4bitbucket] Could not create an OAuth access token: No callback uri defined for the OAuth client. Have you defined a callback URL in the Bitbucket OAuth configuration?

I did see an option of adding a call back uri while creating oauth consumer in bitbucket cloud but what should be the value of this call back URI ????

Plug-in version, SonarQube version, CI system, build type

sonarqube version 6.7.4

mrueegg commented 5 years ago

@raghav-a Please excuse my late response. The callback URI can have any value, it's just important that it is configured. I'll update the documentation in this regard.