Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

srinivasa rao neduri
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2017

Hi,

 

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 "sonar.host.url", "http://srmsbox01:8180"
property "sonar.sources", "${projectDir}/src,${projectDir}/WebContent/js/application,${projectDir}/WebContent/cuwi-ng"
property "sonar.projectKey", "com.siriusxm.de:sirius_uwi_cuwi:project-OAC_EBILL"
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 "com.siriusxm.de:sirius_uwi_cuwi:project_OAC_EBILL:project_OAC_EBILL". 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 "com.siriusxm.de:sirius_uwi_cuwi:project_OAC_EBILL:project_OAC_EBILL" and trying to pull the details from sonar server


Ideally the sonar bit bucket server plugin should pull the analysis details with com.siriusxm.de:sirius_uwi_cuwi:project_OAC_EBILL:feature/DE-810-gradle-task-to-retrieve-sms-version-new.

 

The project key in sonar server is:

com.siriusxm.de:sirius_uwi_cuwi:project_OAC_EBILL:feature/DE-810-gradle-task-to-retrieve-sms-version-new

 

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
TAGS
AUG Leaders

Atlassian Community Events