-
Create Sonar cloud account on https://sonarcloud.io
-
Generate an Authentication token on SonarQube Account --> my account --> Security --> Generate Tokens
-
On Jenkins create credentials Manage Jenkins --> manage credentials --> system --> Global credentials --> add credentials - Credentials type:
Secret text
- ID:sonarqube-key
-
Install SonarQube plugin Manage Jenkins --> Available plugins Search for
sonarqube scanner
-
Configure sonarqube server Manage Jenkins --> Configure System --> sonarqube server Add Sonarqube server - Name:
sonar-server
- Server URL:https://sonarcloud.io/
- Server authentication token:sonarqube-key
-
Configure sonarqube scanner Manage Jenkins --> Global Tool configuration --> Sonarqube scanner Add sonarqube scanner - Sonarqube scanner:
sonar-scanner