Cicd documentation layout


· Understanding the results



Download 6.25 Mb.
Page19/39
Date15.06.2023
Size6.25 Mb.
#61535
1   ...   15   16   17   18   19   20   21   22   ...   39
CIcd
· Understanding the results: After the analysis, results are published and made available on SonarQube web console.
On project level, it gives a snapshot of overall issues with severity wise breakup, duplications, technical debt etc.
Issues: During analysis, SonarQube raises an issue whenever a piece of code breaks a coding rule. Developers can also manually raise issues that cannot be detected by SonarQube (examples: the implementation of the method does not comply to the functional requirements, the java doc of the method does not match its implementation, etc.). Each issue has one of the five securities e.g. blocker, critical, major, minor, info.

6.3. SonarQube Installation in Linux and Run as a service


Step:1 Download & Install Sonarqube
Download the latest sonarqube installation file to /opt folder. You can get the latest download link from here. http://www.sonarqube.org/downloads/
Unzip package install & unzip sonarqube
[root@cicdapi opt]#wget https://sonarsource.bintray.com/Distribution/sonarqube/ sonarqube-6.7.6.zip
[root@cicdapi opt]# yum install unzip -y
[root@cicdapi opt]# unzip sonarqube-6.7.6.zip
Step:2 Start Sonarqube Service
Giving Permissions To User & Navigate to the start script directory to start Sonarqube service
[cicdapiadmin@cicd opt]$ sudo chown -R cicdapiadmin:cicdapiadmin sonarqube-6.7.6
[cicdapiadmin@cicd opt]$ cd /opt/sonarqube-6.7.6/bin/linux-x86-64
[cicdapiadmin@cicd opt]$ sudo ./sonar.sh start
[cicdapiadmin@cicd opt]$ sudo ./sonar.sh status
Step:3 Setting up SonarQube As A Service
Run below commands to Auto restart SonarQube at the time of VM restart
[cicdapiadmin@cicd opt]$ sudo chkconfig sonar on
[cicdapiadmin@cicd opt]$ sudo service sonar start
[cicdapiadmin@cicd opt]$ sudo service sonar status

  • Now go to browser, :9000

SonarQube page will open




  • Change default password

Click on username icon ----> Select My Account

Under that Click on Security, set new password and save. Once finish login again with new password.


Download 6.25 Mb.

Share with your friends:
1   ...   15   16   17   18   19   20   21   22   ...   39




The database is protected by copyright ©ininet.org 2024
send message

    Main page