I am doing sample Stash and SonarQube Integartion. How I can make sonar runner to scan and analyze the Git repository that I have created via stash instead of analyzing code placed locally at absolute path like C:/javaCode.
Steps that I have already followed, but I could not find the answer for the above query:
- I have installed the SonarQube, Sonar-Runner, Stash.All three are running fine.
- I have installed the SonarQube Plugin and configured it in Stash as well.
- In sonar-runner.bat file, we need to give project home.So I gave :
set PROJECT_HOME=C:/javaCode
Under this directory C:/javaCode, I have below files:
- sonar-project.properties
- Three Some java files.
Now, since sonar-project.properties contains key-value pairs like:
sonar.sources=C:/JavaCode
project.home=C:/JavaCode
So, I am looking for the way by which I can make this Sonar-Runner to scan and analyze code placed on remote Git Repository created via Stash instead of above given locally placed code i.e. at location C:/JavaCode