SlideShare a Scribd company logo
3
Most read
4
Most read
6
Most read
The story of SonarQube told to a DevOps
Engineer

Manu PK
@manupk12
http://blog.manupk.com/
DevOps Bangalore Meetup March 1,2014
About Me
Agenda



Defining & Measuring code quality



DevOps and Code Quality



SonarQube Platform Overview



SonarQube - DevOps View



Lessons Learned
Defining & Measuring code quality


Code Quality or Intrinsic value of a software is
typically measured by the term Technical Debt.



Technical debt metaphor referring to the eventual
consequences of poor software development
practices within a codebase – Wiki



Technical debt and Cost of Change



Parameters considered:- Coding standards breach,
Duplications, Lack of unit tests, Bad distribution of
complexity, Spaghetti Design etc...
DevOps and Code Quality


Typically managed by Dev Teams with some Tooling
support






What’s missing here…







Static code analyzers like findbugs, checkstyle, PMD
Design analyzer tools
Other tools…
Let’s make a fresh start - Finding new violations
Centralized Repository to manage and track issues
Convincing management for a re-factoring

Enter the …
What is SonarQube



SonarQube is an open source platform for
Continuous Inspection of code quality.
Main Features








Supports over 20 languages including Java, C#, C/C++,
PL/SQL, Javascript, PHP, Web, XML, etc.
Analyze Code, Report and Take Actions
Spot Trends with Continuous Time Series Reporting
Identify Defects on Latest Changes with Differential Views
Integrate and Automate

Read more @



http://www.sonarqube.org/features/
http://www.sonarsource.com/products/features/continuousinspection/
SonarQube Platform Overview
Demo
SonarQube - DevOps View


Database





VM to run the Sonar




MS SQL Server
My SQL
Windows or Linux

Locate the analyzer




Local Analysis from Dev machines(Preview mode) – To
be used to check the code before the check-in.
Trigger the analysis from CI server – Stores the date to
DB
SonarQube - DevOps View


Administration



Security, Access Control,
Update Centre





contd…

Plug-in based Architecture
Co-ordinate with Dev Teams to get the required plugins

Dashboards


Setup Basic Dashboards
Where does it fit in


Your CI Environment
Connecting to CI Server (like Hudson )


CI Support




Hudson, Jenkins

Download the Plug-in for Hudson




Configure the Sonar properties
Set the Trigger for analysis
Demo
Continuous Inspection of code
Lessons Learned


Communication






Developers
DBAs
Web Ops Team

Windows Services Issue
Summary



Detect the evil within!



DevOps help an organization rapidly produce
Quality software products and services




Measure Quality with SonarQube

Help your developers to make the code base cleaner
than Inherited 
Questions / Comments /
Feedback
@manupk12| manu.pk@outlook.com
Slides @
http://www.slideshare.net/pkmanu
References


SonarQube on Wiki



Sonar Documentation



DevOps Wiki
Thank You
for Listening

More Related Content

PDF
SonarQube - Should I Stay or Should I Go ?
PPTX
SonarQube - The leading platform for Continuous Code Quality
PPT
SonarQube Overview
PDF
Tech Talk #5 : Code Analysis SonarQube - Lương Trọng Nghĩa
PPTX
Sonar qube
PPTX
Sonarqube
PPTX
SonarQube Presentation.pptx
PPTX
Track code quality with SonarQube
SonarQube - Should I Stay or Should I Go ?
SonarQube - The leading platform for Continuous Code Quality
SonarQube Overview
Tech Talk #5 : Code Analysis SonarQube - Lương Trọng Nghĩa
Sonar qube
Sonarqube
SonarQube Presentation.pptx
Track code quality with SonarQube

What's hot (20)

PDF
SonarQube
PPTX
Sonar Review
PPTX
SonarQube: Continuous Code Inspection
PDF
Continuous Inspection of Code Quality: SonarQube
PPTX
Managing code quality with SonarQube
PDF
Code Quality Lightning Talk
PDF
Jenkins with SonarQube
PPTX
Track code quality with SonarQube - short version
PPTX
SonarQube.pptx
PDF
Java Source Code Analysis using SonarQube
PDF
Tracking and improving software quality with SonarQube
PPTX
Getting started with Jenkins
PPTX
Introduction to jenkins
PDF
DevOps
ODP
An Introduction To Jenkins
PPTX
PPTX
Maven Basics - Explained
PPTX
Sonarqube
 
SonarQube
Sonar Review
SonarQube: Continuous Code Inspection
Continuous Inspection of Code Quality: SonarQube
Managing code quality with SonarQube
Code Quality Lightning Talk
Jenkins with SonarQube
Track code quality with SonarQube - short version
SonarQube.pptx
Java Source Code Analysis using SonarQube
Tracking and improving software quality with SonarQube
Getting started with Jenkins
Introduction to jenkins
DevOps
An Introduction To Jenkins
Maven Basics - Explained
Sonarqube
 
Ad

Similar to The story of SonarQube told to a DevOps Engineer (20)

DOCX
What is SonarQube in DevOps.docx
PDF
Building an In-House DevOps Service Platform for Mobility Solutions | Mindtree
PPTX
postgres.pptx
PPT
Part5 - enforcing coding standard and best practices with jas forge v1.0
PDF
Control source code quality using the SonarQube platform
PPT
Part 2 improving your software development v1.0
PPTX
DevOps with Microsoft Stack
PPTX
Maven.pptx
PPTX
Continuous Integration and development environment approach
PPTX
mastering-code-quality-an-in-depth-guide-to-sonarqube.pptx
PDF
Devops Interview Question PDF By ScholarHat
PPTX
Agile & DevOps - It's all about project success
PDF
Code review automation and functional tests on Carrefour
PPTX
postdev.pptx
PPTX
DevOps Practices in a Nutshell
PDF
Continuous Testing - What QA means for DevOps
DOC
Sunny Agrawal
PPTX
mydevops.pptx
PPT
Presentation 1 open source tools in continuous integration environment v1.0
PDF
Introducing TDD to your project
What is SonarQube in DevOps.docx
Building an In-House DevOps Service Platform for Mobility Solutions | Mindtree
postgres.pptx
Part5 - enforcing coding standard and best practices with jas forge v1.0
Control source code quality using the SonarQube platform
Part 2 improving your software development v1.0
DevOps with Microsoft Stack
Maven.pptx
Continuous Integration and development environment approach
mastering-code-quality-an-in-depth-guide-to-sonarqube.pptx
Devops Interview Question PDF By ScholarHat
Agile & DevOps - It's all about project success
Code review automation and functional tests on Carrefour
postdev.pptx
DevOps Practices in a Nutshell
Continuous Testing - What QA means for DevOps
Sunny Agrawal
mydevops.pptx
Presentation 1 open source tools in continuous integration environment v1.0
Introducing TDD to your project
Ad

More from Manu Pk (7)

PDF
Software Architecture and Design in the Age of Code Assist tools.pdf
PDF
When to stay with modular monoliths over microservices
PDF
Practical communication strategies for software architects
PDF
Introduction to Microservices
PPTX
Do you need microservices architecture?
PDF
How can agile help you in clearing the technical debt
PPTX
Doing more as a Programmer
Software Architecture and Design in the Age of Code Assist tools.pdf
When to stay with modular monoliths over microservices
Practical communication strategies for software architects
Introduction to Microservices
Do you need microservices architecture?
How can agile help you in clearing the technical debt
Doing more as a Programmer

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Empathic Computing: Creating Shared Understanding
PDF
KodekX | Application Modernization Development
PPTX
A Presentation on Artificial Intelligence
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Electronic commerce courselecture one. Pdf
PPT
Teaching material agriculture food technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Spectral efficient network and resource selection model in 5G networks
Machine learning based COVID-19 study performance prediction
“AI and Expert System Decision Support & Business Intelligence Systems”
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Network Security Unit 5.pdf for BCA BBA.
Empathic Computing: Creating Shared Understanding
KodekX | Application Modernization Development
A Presentation on Artificial Intelligence
Per capita expenditure prediction using model stacking based on satellite ima...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Review of recent advances in non-invasive hemoglobin estimation
Electronic commerce courselecture one. Pdf
Teaching material agriculture food technology
Encapsulation_ Review paper, used for researhc scholars
Understanding_Digital_Forensics_Presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Spectral efficient network and resource selection model in 5G networks

The story of SonarQube told to a DevOps Engineer

  • 1. The story of SonarQube told to a DevOps Engineer Manu PK @manupk12 http://blog.manupk.com/ DevOps Bangalore Meetup March 1,2014
  • 3. Agenda  Defining & Measuring code quality  DevOps and Code Quality  SonarQube Platform Overview  SonarQube - DevOps View  Lessons Learned
  • 4. Defining & Measuring code quality  Code Quality or Intrinsic value of a software is typically measured by the term Technical Debt.  Technical debt metaphor referring to the eventual consequences of poor software development practices within a codebase – Wiki  Technical debt and Cost of Change  Parameters considered:- Coding standards breach, Duplications, Lack of unit tests, Bad distribution of complexity, Spaghetti Design etc...
  • 5. DevOps and Code Quality  Typically managed by Dev Teams with some Tooling support     What’s missing here…     Static code analyzers like findbugs, checkstyle, PMD Design analyzer tools Other tools… Let’s make a fresh start - Finding new violations Centralized Repository to manage and track issues Convincing management for a re-factoring Enter the …
  • 6. What is SonarQube   SonarQube is an open source platform for Continuous Inspection of code quality. Main Features       Supports over 20 languages including Java, C#, C/C++, PL/SQL, Javascript, PHP, Web, XML, etc. Analyze Code, Report and Take Actions Spot Trends with Continuous Time Series Reporting Identify Defects on Latest Changes with Differential Views Integrate and Automate Read more @   http://www.sonarqube.org/features/ http://www.sonarsource.com/products/features/continuousinspection/
  • 9. SonarQube - DevOps View  Database    VM to run the Sonar   MS SQL Server My SQL Windows or Linux Locate the analyzer   Local Analysis from Dev machines(Preview mode) – To be used to check the code before the check-in. Trigger the analysis from CI server – Stores the date to DB
  • 10. SonarQube - DevOps View  Administration   Security, Access Control, Update Centre    contd… Plug-in based Architecture Co-ordinate with Dev Teams to get the required plugins Dashboards  Setup Basic Dashboards
  • 11. Where does it fit in  Your CI Environment
  • 12. Connecting to CI Server (like Hudson )  CI Support   Hudson, Jenkins Download the Plug-in for Hudson    Configure the Sonar properties Set the Trigger for analysis Demo
  • 15. Summary  Detect the evil within!  DevOps help an organization rapidly produce Quality software products and services   Measure Quality with SonarQube Help your developers to make the code base cleaner than Inherited 
  • 16. Questions / Comments / Feedback @manupk12| manu.pk@outlook.com Slides @ http://www.slideshare.net/pkmanu
  • 17. References  SonarQube on Wiki  Sonar Documentation  DevOps Wiki