Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Where do i find the sonarqube runner file?


Asked by Spencer Atkinson on Dec 12, 2021 FAQ



Et voilà. To run the SonarQube Runner, you just have to launch the ‘sonar-runner.bat’ file located into the ‘..\bin’ directory. We will see that in our first SonarQube analysis. If you want to try by yourself, or if you want to get some code samples to test, SonarSource provides several examples from this page.
In this manner,
Display the ‘SONAR RUNNER HOME’ folder: Define the analysis directory ‘PROJECT HOME’ in a ‘\Projects’ directory that we create under the previous folder, and display it: To perform an analysis, the SonarQube Runner uses the file ‘sonar-project.properties’ located in our analysis environment: the directory ‘Projects’ created previously.
Likewise, You are all set with your SonarQube Server. Now, it’s time to run the SonarQube Scanner on your code or project. Go to your project folder which you want to scan. Create one new file inside your project's root folder path with name “sonar-project”.
In fact,
Sonar runner is usually executed as a maven plugin but Jenkins can invoke it without the need of maven through the Execute SonarQube Scanner task. Navigate to Manage Jenkins -> Manage Plugins` and ensure that the latest version of SonarQube plugin is installed.
Besides,
Open a command prompt, and go to project root folder. Execute “sonar-runner” command to run the analysis. You would see the analysis run. You would find your project listed under “PROJECTS”.