sonar bitbucket server-unable to fetch data from sonar qube server Edited



We are using sonar bitbucket server plugin to analyse the pull request.
we have configured all the required settings.We ran the build using gradle build script. Below the sonarqube properties

sonarqube {

properties {
property "", "http://srmsbox01:8180"
property "sonar.sources", "${projectDir}/src,${projectDir}/WebContent/js/application,${projectDir}/WebContent/cuwi-ng"
property "sonar.projectKey", ""
property 'sonar.branch', "feature/DE-810-gradle-task-to-retrieve-sms-version-new"


The build was success and it created the analysis in the sonar qube server. how ever when create and access pull request. we are getting below message

"Was not able to fetch data for Sonar project "". Either the build is not finished yet, your pull request has not been analyzed or a non-existing Sonar project is referenced. You can configure the referenced Sonar project in the repository settings."

Why its appending project key(twice) instead of branch name "" and trying to pull the details from sonar server

Ideally the sonar bit bucket server plugin should pull the analysis details with


The project key in sonar server is:


If we change the project key and run the build again. its giving different message.


we tried all the options but did not success.


please help.



0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

420 views 79 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you