Skip to content

Commit

Permalink
added sonarqube setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
ValaxyTech committed Jun 26, 2023
1 parent 6728363 commit 58634f6
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions lab-docs/L9-SonarQube_setup.md
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`

0 comments on commit 58634f6

Please sign in to comment.