From e50200f7ea6e7c053f13e4228faba180f63092c5 Mon Sep 17 00:00:00 2001 From: Balagurunathan Marimuthu <75424431+gmbalaa14@users.noreply.github.com> Date: Fri, 22 Sep 2023 06:32:03 +0530 Subject: [PATCH] Update Sonar_Integration_with_Jenkins.MD Fixed typos and grammatical errors. --- SonarQube/Sonar_Integration_with_Jenkins.MD | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/SonarQube/Sonar_Integration_with_Jenkins.MD b/SonarQube/Sonar_Integration_with_Jenkins.MD index ac359db..3214fb7 100644 --- a/SonarQube/Sonar_Integration_with_Jenkins.MD +++ b/SonarQube/Sonar_Integration_with_Jenkins.MD @@ -1,7 +1,7 @@ ## SonarQube Integration with Jenkins -Integration SonarQube server with Jenkins is necessary to store your reports. Follow below steps to enable that. +Integration SonarQube server with Jenkins is necessary to store your reports. Follow the below steps to enable that. ### Follow this in **[YouTube](https://www.youtube.com/watch?v=k-3krTRuAFA)** ### Prerequisites @@ -10,7 +10,7 @@ Integration SonarQube server with Jenkins is necessary to store your reports. Fo ### Implementation -Login to Jenkins server and install sonarqube scanner. +Login to Jenkins server and install SonarQube scanner. - SonarQube scanner URL : https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner - Package : https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip @@ -26,27 +26,27 @@ Set SonarQube server details in sonar-scanner property file - Sonar properties file: /opt/sonar_scanner/conf/sonar-scanner.properties - sonar.host.url=http://``:9000 -Login to Jenkins GUI console and install " SonarQube scanner" plugin +Login to Jenkins GUI console and install "SonarQube scanner" plugin - - `Manage Jenkins` > `Manage Plugins` > `Avalable` > `SonarQube scanner` + - `Manage Jenkins` > `Manage Plugins` > `Available` > `SonarQube scanner` Configure SonarQube scanner home path - `Manage Jenkins` > `Global Tool Configuration` > `SonarQube Scanner` - - Name : `sonar_scanner` - - SONAR_RUNNER_HOME : `/opt/sonar_scanner` + - Name: `sonar_scanner` + - SONAR_RUNNER_HOME: `/opt/sonar_scanner` -Configure SonarQube server name and authentication token +Configure the SonarQube server name and authentication token - `Manage Jenkins` > `Configure Systems` > `SonarQube Servers` - - Name : `SonarQube` + - Name: `SonarQube` - ServerURL : `http://:9000/sonar` - Server `authentication token` -To Get Authentication code follow below steps. - Login to SonarQube server as a admin `My Account` > `Security` > `Generate Token` +To Get an Authentication code follow the below steps. + Login to the SonarQube server as an admin `My Account` > `Security` > `Generate Token` Create a job to test SonarQube. Provide below sonar properties details in the job under build - Build: - - `Execute SonarQube Scanner` > `Analysis properties` (it is mandatary). + - `Execute SonarQube Scanner` > `Analysis properties` (it is mandatory). - sonar.projectKey=`Valaxy` - sonar.projectName=`ValaxyDemo` - sonar.projectVersion=`1.0`