SonarQube Jenkins/git integration when cloning to a subdirectory

Braden Source

I have Jenkins' git plug-in clone my repository to a subdirectory of WORKSPACE. Accordingly, I set

sonar.sources=my/subdir

SCM detection doesn't seem to be informed by the above setting, however; and setting

sonar.scm.provider=git

…yields:

ERROR: Not inside a Git work tree: /path/to/my/workspace

How do I inform SonarQube's git plug-in of the location of my sources? (And why isn't it clever enough to use sonar.sources?)

gitjenkinssonarqubesonarqube-scan

Answers

comments powered by Disqus