Hi all,
I’m having an issue with missing git blame information, am wondering if an update to JGit is required for SonarQube/Scanner. Initially found the issue when attempting to upload scan results to our SonarQube Developer instance (windows host) from a Jenkins build machine (linux-based). First, I verified the server was not using a sparse checkout/shallow clone. I was then able to reproduce the problem with a local scan from my Ubuntu 20.04.2 LTS machine. The scan is being performed using branches (git and SonarQube), if that makes a difference.
- SonarQube 8.9.1 LTS Developer Edition, tested with sonar-scanner-cli-4.4.0.2170-linux, sonar-scanner-cli-4.6.2.2472-linux
- Observed the following logs during analysis:
INFO: SCM Publisher 0/7 source files have been analyzed (done) | time=1519ms
WARN: Missing blame information for the following files:
WARN: * (redacted).js
WARN: * (redacted).js
WARN: * (redacted).js
...
WARN: This may lead to missing/broken features in SonarQube
- I followed investigative steps from SCM Integration | SonarQube Docs and was able to run latest version of JGit (org.eclipse.jgit.pgm-5.12.0.202106070339-r) successfully against the problem files via console with no issues
- Also found a similar discussion topic occurring in an AWS Codebuild environment Missing blame information on AWS CodeBuild