Search code examples
javagradlesonarqubesonarqube-scan

Project is not updated in sonarqube after scan


I upgraded my sonarqube from 5.6 to 6.4 with plugins according to sonarqube compability matrix. But after that errors such as this one started appear during gradle build. I set properties sonar.java.binaries=**/build/classes and sonar.java.binaries=**/test/classes and now build is successful, but project is not updated in sonarqube after scan.

Did anyone face with this issue? How can it be checked?

UPDATE: I removed the next parameters from gradle.properties and now it works fine:

systemProp.sonar.sources
systemProp.sonar.tests
systemProp.sonar.test.inclusions
systemProp.sonar.exclusion

Solution

  • I think you have to clear existing sonar files (existing sonar files) from your work space and build you project again.

    In your workspace sonar folder might be created which contain sonar file open that folder and remove all files present folder/files.

    enter image description here