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

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube