MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Sonarqube: SonarQube Basic Workflow using Scanner CLI

In Workstation

Step 1 – Install Java

$ sudo apt update
$ sudo apt install openjdk-17-jdk
$ sudo apt install openjdk-17-jre
$ java –version

Step 2 – Download a Scanner

$ wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-7.1.0.4889-linux-x64.zip
$ sudo apt install unzip
$ unzip sonar-scanner-cli-7.1.0.4889-linux-x64.zip
$ unzip sonar-scanner-cli-7.1.0.4889-linux-x64.zip
$ mv sonar-scanner-7.1.0.4889-linux-x64 sonar-scanner

Step 3 – Download the source code

$ git clone https://github.com/devopsschool-demo-labs-projects/java-sonarqube-helloworld-src.git

Step 4 – Configure a scanner

$ cd sonar-scanner
$ cd conf
$ vi sonar-scanner.properties

sonar.host.url=http://3.109.214.5:9000/
sonar.login=squ_a428a75a14d702d278f56e6eda2801f74e7916ec

SonarQube account Security page with Generate Tokens form and an existing user token

Step 5 – Run the scanner on the source coce

$ cd java-sonarqube-helloworld-src
$ vi sonar-project.properties
$ /home/ubuntu/rajesh/sonar-scanner/bin/sonar-scanner

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

SonarQube Masterclass: 2-Day Hands-on Training for Developers, DevOps & Administrators

In modern software delivery, writing code is only one part of the engineering journey. Teams also need to ensure that the code is secure, maintainable, reliable, testable,…

Read More

Top 10 Static Code Analysis Tools: Features, Pros, Cons & Comparison

Introduction Static Code Analysis Tools are software solutions that automatically analyze source code without executing it to identify potential issues such as bugs, security vulnerabilities, performance bottlenecks,…

Read More

Top 10 Static Code Analysis Tools in 2026: Features, Pros, Cons & Comparison

Introduction Static code analysis tools have become a cornerstone of modern software development, helping developers detect bugs, vulnerabilities, and code quality issues before they become major problems….

Read More

Static Code Analysis Tools in 2024

The world of static code analysis (SCA) tools is constantly evolving, offering a wide range of options to suit diverse needs and preferences in 2024. Following is…

Read More

Code Quality tools in 2024

The code quality landscape continues to evolve rapidly in 2024, driven by several key trends: Here’s a look at some top code quality tools across categories in…

Read More

What is SonarQube and use cases of SonarQube?

What is SonarQube? SonarQube is a powerful and innovative tool that helps developers improve the quality of their code. It provides a range of static code analysis…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x