You are on page 1of 5

More

viswateja15@gmail.com
Dashboard
Sign Out

DevOps - Mithun Technologies +91-9980923226


Interesting platform to up skill

Showing posts with label SonarQube Server. Show all posts Search This Blog

Search

Monday, September 30, 2019

Home
SonarQube Server Integration with Jenkins Mithun
Technologies - +919980923226
About Me

             Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com


Mithun Technologies
                                                       http://mithuntechnologies.com/

View my complete
                                                       http://mithuntechnologies.co.in/ 
profile

Pre Requisite:

SonarQuber Server

Jenkins Server
Report Labels
Abuse
Ansible
Step
1) Install "SonarQube Scanner"  plugin in Jenkins as follow.
Argo CLI
 

Step 2) Integrate SonarQube server with Jenkins  as


follows. AWS

DataBases

Manage Jenkins ---> Configure


System ---> SonarQube servers DevOps

DevOps
Interview
Questions

DevOps Videos

Docker

Docker Swarm

Git

Gradle

HTTP Server

Java

Jboss
Wildfly
Generate the SonarQube server authentication token 
Jenkins
 
Login into SonarQube with Admin
user. JFrog
Artifactory
http://<<IP Address>>:9000/
Default Credentials: Kubernetes
User: admin
Linux
Password: admin
Linux
Commands
Click on Administration tab.
MAC Book

Maven
Mithun
Technologies

MithunTechnol
ogies

mongo

Monitoring
Tools

Nexus Server

Node JS

Open Shift
Click on Tokens
Packer

PipeLine

Postgre SQL
DB

Python

Scala

ShellScript

SonarQube
Server

Spark

sshkeygen

Tekton CLI

Tekton
Dashboard

Terraform

Tomcat

Ubuntu

Vault

Blog Archive

November 2021 (7)

September 2021 (6)

May 2021 (1)

March 2021 (1)

February 2021 (2)

December 2020 (3)

November 2020 (1)

September 2020 (8)

August 2020 (3)

July 2020 (4)

June 2020 (1)

May 2020 (2)


March 2020 (4)

February 2020 (6)

January 2020 (3)

November 2019 (1)

October 2019 (7)

September 2019 (4)

August 2019 (2)

July 2019 (1)

Step3) Execute the SonarQube report for Maven Java Project.

Select the job , to which we need to run the sonarqube report, click on configure, in Post-build Actions
options, click on Add post-build action --> Select the SonarQube report for Maven project.

at
September 30, 2019

Labels:
SonarQube Server

Tuesday, August 27, 2019

SonarQube Installation - Linux - Mithun Technologies -


9980923226

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/

                                                       http://mithuntechnologies.co.in/ 

SonarQube Server Installation

#!/bin/bash     

#title                : Install SonarQube server

#description     : Execute this script as a normal user

#author             : Mthun Technologies

#date                 : 08112012

#version            : 1.0   

#CopyRights     : Mithun Technologies

#Contact            : 9980923226 | devopstrainingblr@gmail.com

#Hardware Requirements for SonarQube

#----------------------------------------------------

#The SonarQube server requires at least 2GB of RAM to run efficiently and 1GB of free RAM for the
OS.

#Login as a root user.

sudo su -

#Download the SonarqQube Server software.

cd /opt

yum install wget unzip -y

wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.8.zip

unzip sonarqube-7.8.zip

#As
a good security practice, SonarQuber Server is not advised to run sonar
service as a root user,
so create a new user called nexus and grant sudo access to manage nexus services as follows.

useradd sonar

Give the sudo access to sonar user

visudo

sonar   ALL=(ALL)       NOPASSWD: ALL

Change the owner and group permissions to /opt/sonarqube-7.8/ directory.

chown -R sonar:sonar /opt/sonarqube-7.8/

chmod -R 775 /opt/sonarqube-7.8/

su - sonar

cd /opt/sonarqube-7.8/bin/linux-x86-64/

./sonar.sh start

Troubleshooting

--------------------

sonar service is not starting?

a)make sure you need to change the ownership and group to /opt/sonarqube-7.6/ directory for sonar
user.

b)make sure you are trying to start sonar service with sonar user.

c)check java is installed or not using java -version command.

Unable to access SonarQube server URL in browser?

a)make sure port 9000 is opened in security groups - AWS ec2 instance.

Create SonarQube server as a sonar service

--------------------------------------------------------

ln /opt/sonarqube-7.8/bin/linux-x86-64/sonar.sh /etc/init.d/sonar

vi /etc/init.d/sonar

#add below lines in /etc/init.d/sonar

SONAR_HOME=/opt/sonarqube-7.8

PLATFORM=linux-x86-64

WRAPPER_CMD="${SONAR_HOME}/bin/${PLATFORM}/wrapper"

WRAPPER_CONF="${SONAR_HOME}/conf/wrapper.conf"

PIDDIR="/opt/sonarqube-7.8/"

#Enable the sonar service

sudo systemctl enable sonar

#Start the sonar service

sudo systemctl start sonar

#Check the status of the  sonar service

sudo systemctl status sonar

Connect to Mithun Technologies...

www.facebook.com/mithuntechnologies

www.facebook.com/mithunsoftwaresolutions

www.linkedin.com/in/mithuntechnologies/

at
August 27, 2019

Labels:
SonarQube Server

Home Older Posts

Subscribe to:
Posts (Atom)

JBoss/Wildfly Installation in RedHat Linux Server - Mithun Technologies - +91 99809


23226

  Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com


                                                ...

Convert pem(Privacy-Enhanced Mail) file to ppk(PuTTY Private Key) file - Mithun


Technologies +91-9980923226
  Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com
                                                ...

Package Management in Linux (RHEL) using yum (Yellowdog Updater, Modified) - Mithun
Technologies - +91-9980923226
Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com
                                                 ...

Linux Commands - Mithun Technologies - +91 - 9980923226


                                                     Linux Commands  2 Mithun Technologies            +91-9980923226           
  de...

Awesome Inc. theme. Powered by Blogger.

You might also like