Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube-7.9 LTS
Scanner- 4.0.0.1744
-
what are you trying to achieve
We are configuring pull request decoration using sonar-scanner/githubEnterprise/Jenkins to publish the reports to sonar dashboard, -
what have you tried so far to achieve this
As we setup GitHub app and updated same in sonarqube…as per docs…
Problem:
Issue is we are facing the changed code is not pushed to sonar or coverage is 0% even after we have changed 2 files in PR brach, it shows below in logs:
Initial logs:
Merge made by the ‘recursive’ strategy.
13:54:57 - file.py | 5 +++++
13:54:57 - …file.java | 16 +++++++++±-----
13:54:57 - 2 files changed, 15 insertions(+), 6 deletions(-)
13:55:10 - 08:25:10.529 INFO: Load active rules (done) | time=662ms
13:55:10 - 08:25:10.540 INFO: Pull request 455 for merge into master-branch from pr-branch
13:55:10 - 08:25:10.552 INFO: SCM collecting changed files in the branch
13:55:10 - 08:25:10.611 DEBUG: readpipe [git, --version],/usr/bin
13:55:10 - 08:25:10.623 DEBUG: readpipe may return ‘git version 2.9.3’
13:55:10 - 08:25:10.623 DEBUG: remaining output:
13:55:10 -
13:55:10 - 08:25:10.623 DEBUG: readpipe [git, config, --system, --edit],/usr/bin
13:55:10 - 08:25:10.626 DEBUG: readpipe may return ‘/etc/gitconfig’
13:55:10 - 08:25:10.626 DEBUG: remaining output:
13:55:10 -
13:55:10 - 08:25:10.744 DEBUG: Merge base sha1: 8888888888888888888
13:55:10 - 08:25:10.768 INFO: SCM collecting changed files in the branch (done) | time=216ms
13:55:10 - 08:25:10.768 DEBUG: SCM reported 0 files changed in the branch
13:55:10 - 08:25:10.790 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : /*.css,/.less,**/.scss
Down in the logs:
SCM collecting changed files in the branch (done) | time=216ms
13:55:10 - 08:25:10.768 DEBUG: SCM reported 0 files changed in the branch
DEBUG: SCM reported changed lines for 0 files in the branch