Sonaqube Bitbucket Cloud PR Decoration

Must-share information (formatted with Markdown):

  • Developer Edition Version 7.9.1 (build 27448)
  • Sonaqube Bitbucket Cloud PR Decoration
  • I followed this guide to integrate my sonar developer edition to bitbucket (cloud). I maked a pull request to test my configuration and trigger pr analisys issuing this command from may maven module:

mvn org.sonarsource.scanner.maven:sonar-maven-plugin: -Dsonar.pullrequest.key=29 -Dsonar.pullrequest.branch=pr-decoration-test -Dsonar.pullrequest.base=prod

but it seems not work. On sonar web gui, under my project i have this warning:

Pull request decoration did not happen. Failed to access Bitbucket Server, the repository or the pull request

and from sonar docker logs (enabled also debug):

java.lang.IllegalStateException: Unable to contact Bitbucket server
at com.sonarsource.C.C.A.A.C.A(Unknown Source)
at com.sonarsource.C.C.A.A.C.A(Unknown Source)
at com.sonarsource.C.C.A.A.C.A(Unknown Source)
at com.sonarsource.C.C.A.G.A(Unknown Source)
at com.sonarsource.C.C.A.G.A(Unknown Source)
at com.sonarsource.C.C.A.C.A(Unknown Source)
at com.sonarsource.C.C.Z.A(Unknown Source)
at java.base/java.util.Optional.ifPresent(
at com.sonarsource.C.C.Z.B(Unknown Source)
at com.sonarsource.C.C.Z.A(Unknown Source)
at org.sonar.ce.async.SynchronousAsyncExecution.addToQueue(
at com.sonarsource.C.C.Z.A(Unknown Source)
at java.base/java.util.Optional.ifPresent(
at com.sonarsource.C.C.Z.finished(Unknown Source)
at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.executeTask(
at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.finished(
at org.sonar.ce.task.step.ComputationStepExecutor.executeListener(
at org.sonar.ce.task.step.ComputationStepExecutor.execute(
at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(
at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(
at org.sonar.ce.taskprocessor.CeWorkerImpl$
at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(
at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(
at java.base/
at java.base/java.util.concurrent.Executors$
at java.base/
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at java.base/
Caused by: Too many follow-up requests: 21
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(
at okhttp3.internal.http.RealInterceptorChain.proceed(
at okhttp3.internal.http.RealInterceptorChain.proceed(
at okhttp3.RealCall.getResponseWithInterceptorChain(
at okhttp3.RealCall.execute(
… 32 common frames omitted

I think that sonar is correctly configured with bitbucket credentials (key and secret) and the bitbucket cloud (server) is reachable (i maked an oauth call to have a valid access token and i did).
I can not understand why this error and this warning appens. Could you please halp me? I buy the developer edition only to use the pullrequest decoration feature but seems not work for a reason…:frowning:

Hi @governator84,

welcome to the community !
Quick question before trying to answer your issue:

are you trying to decorate PR in Bitbucket Cloud, using SonarQube?

The guide you followed is for authentication, not PR decoration.

SonarQube works with Bitbucket Server, as mentioned in our documentation here:

If you use Bitbucket Cloud, I would recommend to have a look at SonarCloud and PR documentation here:


So you can confirm to me that sonarQube is not compabile with bitbucket cloud and i must use sonarCloud to integrate with bitbucket cloud? So compatibility . is only beetween server versions and cloud versions of both appplications?

I would also know :i buy the developer edition also to use PR decoration. Is required/needed the license to use this feature with sonar cloud version?

I saw that to make private my code i need to by a sonar cloud license but i already have a developer edition license. Is eventually possible use my license with nexus cloud version?

@governator84, there is no “license” on SonarCloud, but “plans” according to your privacy needs for your projects.

Either you are on a free plan, which means public projects, or you want to keep your code private, then you’ll move to a “private” plan, which pricing is here:
And on this page, you’ll find the main differences between free and private plans.