1. SonarQube Scanner Address
In the previous article we installed the SonarQube-7.3 so that we can view the code quality on the page. But the specific scanning work needs Sonarqube scanner to complete.
Download page
1 https://Docs.sonarqube.org/display/scan/analyzing+with+sonarqube+scanner
2. Install Sonarqube Scanner2.1. Software Installation
1[Email protected] software]$pwd2/app/Software3[Email protected] software]$wgetHttps//Binaries.sonarsource.com/distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip4[Email protected] software]$Unzipsonar-scanner-cli-3.2.0.1227-linux.Zip5[Email protected] software]$MVsonar-scanner-3.2.0.1227-linux/app/6[Email protected] software]$ cd/app/7[Email protected] ~]$LN-S sonar-scanner-3.2.0.1227-linux/sonar-Scanner8[Email protected] ~]$ ll-d sonar-scanner*9lrwxrwxrwx1Yun Yun toOct - the: -Sonar-scanner-sonar-scanner-3.2.0.1227-linux/TenDrwxr-xr-x6Yun YunWuyiMay at the: +sonar-scanner-3.2.0.1227-linux
2.2. Configuration changes
1[Email protected] conf]$pwd2/app/sonar-scanner/conf3[Email protected] conf]$ vim sonar-scanner.properties4#-----Default SonarQube Server5Sonar.host.url=http://mini04:90006 7#-----Default Source code encoding8sonar.sourceencoding=utf-89 TenSonar.jdbc.username=Sonar Onesonar.jdbc.password=Sonar ASonar.jdbc.url=jdbc:mysql://Mini05:3306/sonar?useunicode=true&characterencoding=utf8
Continuous code Quality Management-sonarqube scanner deployment