diff --git a/sonarqube/Jenkinsfile b/sonarqube/Jenkinsfile index 72d66c1..f606b5c 100644 --- a/sonarqube/Jenkinsfile +++ b/sonarqube/Jenkinsfile @@ -1,7 +1,7 @@ pipeline{ agent any environment { - PATH = "$PATH:/opt/apache-maven-3.8.2/bin" + PATH = "$PATH:/usr/share/maven" } stages{ stage('GetCode'){ @@ -18,7 +18,7 @@ pipeline{ // def scannerHome = tool 'SonarScanner 4.0'; steps{ withSonarQubeEnv('sonarqube-8.9') { - // If you have configured more than one global server connection, you can specify its name + // If you have configured mroe than one global server connection, you can specify its name. // sh "${scannerHome}/bin/sonar-scanner" sh "mvn sonar:sonar" } diff --git a/sonarqube/Setup_SonarQube.md b/sonarqube/Setup_SonarQube.md index b56db36..af9fdbb 100644 --- a/sonarqube/Setup_SonarQube.md +++ b/sonarqube/Setup_SonarQube.md @@ -35,7 +35,12 @@ Source: https://docs.sonarqube.org/latest/requirements/requirements/ ```bash http://:9000 ``` +4. login sonarqube with below username and password. + username : admin + + pwd :admin + ## 🧹 CleanUp 1. Stop SonarQube server ```sh