-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6728363
commit 58634f6
Showing
9 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
1. Create Sonar cloud account on https://sonarcloud.io | ||
2. Generate an Authentication token on SonarQube | ||
Account --> my account --> Security --> Generate Tokens | ||
|
||
3. On Jenkins create credentials | ||
Manage Jenkins --> manage credentials --> system --> Global credentials --> add credentials | ||
- Credentials type: `Secret text` | ||
- ID: `sonarqube-key` | ||
|
||
4. Install SonarQube plugin | ||
Manage Jenkins --> Available plugins | ||
Search for `sonarqube scanner` | ||
|
||
5. 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` | ||
|
||
6. Configure sonarqube scanner | ||
Manage Jenkins --> Global Tool configuration --> Sonarqube scanner | ||
Add sonarqube scanner | ||
- Sonarqube scanner: `sonar-scanner` | ||
|