SonarQube 6.7 coverage on new code is not showing

(Hua Ting Liu) #1

SonarQube: 6.7
SCM: bitbucket/Git
CI: teamcity
I set up one teamcity job to run sonar analysis and I can get other analysis data on SonarQube but coverage on new code and duplicate on new code are not showing .

I tried to add tag in pom.xml specified connection, developerConnection and url. In the sonar build log for feature branch, I can find some information below, but not in develop branch( I also merged the code in feature branch to develop branch)

INFO: Sensor CPD Block Indexer (done) | time=29ms
[04:37:55][Step 3/4] 04:37:55.426 INFO: SCM provider for this project is: git
[04:37:55][Step 3/4] 04:37:55.427 INFO: 1 files to be analyzed
[04:37:55][Step 3/4] 04:37:55.469 DEBUG: readpipe [git, --version],/usr/bin
[04:37:56][Step 3/4] 04:37:55.484 DEBUG: readpipe may return 'git version 1.9.5'
[04:37:56][Step 3/4] 04:37:55.484 DEBUG: remaining output:
[04:37:56][Step 3/4] 
[04:37:56][Step 3/4] 04:37:55.485 DEBUG: readpipe [git, config, --system, --edit],/usr/bin
[04:37:56][Step 3/4] 04:37:55.488 DEBUG: readpipe may return '/usr/etc/gitconfig'
[04:37:56][Step 3/4] 04:37:55.488 DEBUG: remaining output:
[04:37:56][Step 3/4] 
[04:37:56][Step 3/4] 04:37:55.522 DEBUG: Blame file client-service/src/main/java/com/citi/citivelocity/iq/client/service/
[04:37:56][Step 3/4] 04:37:55.821 INFO: 1/1 files analyzed

Is there anything i missed in order to make coverage on new code working? thanks!