Skip to content

Sample Project for Spring Boot Sonarqube Quality Measurement

Notifications You must be signed in to change notification settings

tasdemirbahadir/quality-measurement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Project for Spring Boot Sonarqube Quality Measurement

Perquisites

  • Maven 3.x or higher version
  • Java 11

Bootstrap Servers

docker-compose -f .build/docker-compose.yml up -d

Close Down Servers

docker-compose -f .build/docker-compose.yml down

docker-compose.yml file is references from this source: https://gist.github.com/Warchant/0d0f0104fe7adf3b310937d2db67b512

Run tests with sonar report

mvn clean install sonar:sonar

Setup Scan Workflow

For the workflow to be successfull you'll need these variables below to Github Action Secrets:

Tutorial

SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }}

SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }}

Optional: Setup slack notifications:

You'll need to create a Slack App/Bot, add it to a prefered slack channel, and get the Incoming Webhook URL:

Tutorial

After you complete the tutorial, you can go ahead and uncomment the tasks in the workflow file and replace {incoming webhook link} with the Incoming Webhook URL;

About

Sample Project for Spring Boot Sonarqube Quality Measurement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published