Pull requests not getting decorated in bitbucket cloud

I am trying to decorate the pull requests with sonarcloud analysis in bitbucket cloud.

I am using the following command from the Jenkins pipeline

mvn sonar:sonar \
                          -Dsonar.projectKey={key} \
                          -Dsonar.organization={org} \
                          -Dsonar.host.url=https://sonarcloud.io \
                          -Dsonar.login={token} \
                          -Dsonar.pullrequest.base={...} \
                          -Dsonar.pullrequest.branch={...} \
                          -Dsonar.pullrequest.key=13 \
                          -Dsonar.pullrequest.provider=bitbucketcloud \
                          -Dsonar.pullrequest.bitbucketcloud.owner={uuid} \
                          -Dsonar.pullrequest.bitbucketcloud.repository={uuid} "

Earlier i got some warnings like - “the organization is not bound”. Which have been resolved.
I see the code quality section to be empty. There is no information abt the issues in the pull request.

Hi,

I don’t know how you have configured your Jenkins pipeline, but in Bitbucket Pipelines, PR builds are triggered on a merge commit. It means the sha1 of the code being analyzed when the scanner is executed is not the HEAD of the PR branch.
To decorate the PR, Bitbucket REST API is expecting us to pass this commit sha1.

That’s why we have another property, used by our Bitbucket Pipelines integration:
-Dsonar.pullrequest.bitbucketcloud.triggerCommit=the_sha1_of_the_branch_head

Depending on what you do in your Jenkins, you may have to also pass it.