Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:git:sonarqube [2022/04/27 13:16] jsdev:git:sonarqube [2022/05/09 11:31] (current) mb
Line 5: Line 5:
 Homepage: [[https://www.sonarqube.org/]] Homepage: [[https://www.sonarqube.org/]]
  
-==== Install Server ==== 
- 
- 
-==== Activate in Projekt on GitLab ==== 
-Doc: [[https://docs.sonarqube.org/latest/analysis/gitlab-integration/]] 
- 
-  - Create Access Token in Gitlab in the Group or Project 
-      - Token name: SonarQube 
-      - Scopes: api 
-      - Expiration date: empty = no 
-      - Role: Reporter 
-    Save the group access token 
- 
-  - Import GitLab Project into SonarQube 
-    - Add Projekt 
-    - Enter group access token 
-  - Select Project you want to add 
-  - Choose "With GitLab CI" for analyze your repository 
-  - Project key: Other 
-  - file: ./sonar-project.properties 
-      * In root dir of the project.  
-      * Filename: sonar-project.properties 
-      * Content: <code>sonar.projectKey=tests_firstgit_AYAi0enkA 
-sonar.qualitygate.wait=true 
-sonar.python.version=2 
-</code> 
-  - Add two vars to Project: Settings-> CI/CD -> Variables 
-      - key: SONAR_TOKEN 
-        - Value: generate token in SonarQube Webinterface 
-        - uncheck Protect Variable 
-        - CHECK "Mask Variable" 
-      - key: SONAR_HOST_URL 
  
 +  * [[dev:git:sonar:addproject|Add gitlab project to Sonarqube]]
 +  * [[dev:git:sonar:modifyrules|Modify rules in quality profile]]
 +  * [[dev:git:sonar:pipetrigger|Create and use pipeline trigger]]