I install both SonarQube and sonar-runner. And I want to know how to start working. My project uses PHP language. So I want to check the code analysis of my project. But how to get started working?

Is Eclipse is needed for SonarQube?

Should we just add a file like sonar-runner-properties into the local project?

2 Answers 2


Here is the step-by-step procedure to perform the scenario:

  • Setup a Jenkins server if already not using.
  • Goto plugin-manager of Jenkins to install “SonarQube Plugin”.
  • Goto “System-configuration” of Jenkins to provide “SonarQube” server’s details
  • Create a Jenkins job and choose one source code management option (say git).
  • Under build, add “Execute Shell” as build step and write commands to run unit tests.
  • Add “Invoke Standalone SonarQube Analysis” as another build step and add below lines to “Analysis properties” block:

    sonar.projectKey=App Name- Any Identifier
    sonar.projectDescription=Static analysis for the AppName
    sonar.sources=path/to/code/src, path/to/code/grails-app

This tutorial guides us in triggering a Sonar Project from within Jenkins.


Normally there should be some thing or some one to push data to sonar qube. In my project i use Jenkins to push data to sonar qube. Seems to be in you case you are trying to use Eclips to push data to sonar qube. So please refer the below video https://www.youtube.com/watch?v=0QGOI_dkHLM&t=4s

  • please tell How to integrate with jenkins ? I want to use jenkins
    – user21268
    Dec 29, 2016 at 8:08
  • Download jenkins and set up jenkins server.its a website where you can progrmaticaly add all your sonar scripts.
    – ChathuD
    Dec 31, 2016 at 6:41
  • But I want to test in my local project. Is there any git repository needed in jenkins ? I don't have access permission in jenkins. so how should I check my code.
    – user21268
    Dec 31, 2016 at 7:50
  • Then make a local jenkins server on your own PC
    – ChathuD
    Dec 31, 2016 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.