Was not able to fetch data for Sonar project from bitbucket server when we create pull request

329 views
Skip to first unread message

Srinivas Neduri

unread,
Jul 10, 2017, 11:52:57 AM7/10/17
to SonarQube
I am getting below message in bitbucket server while trying to access pull request, after creating pull request. any suggestions please

"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, which is not available.Ideally the sonar bit bucket server plugin should pull the analysis details with com.siriusxm.de:sirius_uwi_cuwi:project_OAC_EBILL:<branch name>.


My sonar qube properties in the gradle build is:


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"
 
   }
}

G. Ann Campbell

unread,
Jul 11, 2017, 3:13:25 AM7/11/17
to SonarQube
Hi,

If you don't get an answer here, you might create a GitHub issue (altho i'm not certain the plugin is actively maintained anymore).


Ann
Reply all
Reply to author
Forward
0 new messages