Professional Documents
Culture Documents
Sonar Qube
Sonar Qube
Sonar Qube
=============
1) Enterprise Edition
2) Community Edition
==============
Sonar Issues
==============
1) Bugs
====================
Sonar Server Setup
====================
https://github.com/ashokitschool/DevOps-Documents/blob/main/05-Sonar-Setup-
Docker.md
================================================
Integrate Sonar server with Java Maven App
=================================================
<properties>
<sonar.host.url>http://13.235.69.171:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>admin</sonar.password>
</properties>
-> After build success, goto sonar dashboard and verify the results
Note: Instead of username and pwd we can configure sonar token in pom.xml
=======================
Working with Sonar Token
=======================
-> Goto Sonar Server Dashboard -> Login -> Click on profile -> My Account ->
Security -> Generate Token
-> Copy the token and configure that token in pom.xml file like below
<sonar.host.url>http://13.233.106.91:9000/</sonar.host.url>
<sonar.login>10f56df67747b0b12246e3d1160fcba718b85118</sonar.login>
==================
Quality Profile
==================
=============
Quality Gate
=============
1) Passed
2) Failed
============================================
How code review will happen in realtime ?
=============================================
=> SonarQube server will be configured with Jenkins Pipeline to perform code
review.
Note : SonarQube server setup and jenkins pipeline will be taken care by DevOps
team in project.
=> As a developer we will run jenkins pipeline and we will check sonar dashboard
for code review report.
================
Lessons learnt
================
1) sonar fixes
4) Bug fixing