DevOps Classroomnotes 20/Aug/2022

SonarQube

  • Refer Here for the official docs of SonarQube
  • Installing SonarQube on Local System
  • Sonar Qube requires JDK 11
    • If java is not installed on your system, launch powershell as admin and execute choco install jdk11 -y
    • Close and Relaunch powershell java -version
      Preview
  • Run sonarqube by executing the commands from docs and navigate to http://localhost:9000. Default username is admin and password is admin
  • Lets run the analysis of one maven project (java). To install maven choco install maven
  • Lets get some opensource code. Refer Here
mkdir c:\temp\spc
cd c:\temp\spc
git clone  https://github.com/spring-projects/spring-petclinic.git
cd spring-petclinic
mvn package
  • Now run the scanning based on the command from sonar qube
mvn clean verify sonar:sonar   -Dsonar.projectKey=test   -Dsonar.host.url=http://localhost:9000   -Dsonar.login=sqp_b9a78cff3c8a840035070fa05f043fd4e324b15f 

Preview

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner