This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:git:sonar:addproject [2022/05/03 13:44] – created js | dev:git:sonar:addproject [2022/05/04 07:47] (current) – js | ||
---|---|---|---|
Line 35: | Line 35: | ||
- Value: https:// | - Value: https:// | ||
- Uncheck both: Protect Variable / Mask Variable \\ \\ | - Uncheck both: Protect Variable / Mask Variable \\ \\ | ||
+ | - enable shared runners in Settings -> CI/CD {{ : | ||
- add .sonar-wrapper script to project in root dir \\ We use the .sonar-wrapper script in the project main branch to configure files without extensions \\ \\ | - add .sonar-wrapper script to project in root dir \\ We use the .sonar-wrapper script in the project main branch to configure files without extensions \\ \\ | ||
- add sonarqube job in .gitlab-ci.yml< | - add sonarqube job in .gitlab-ci.yml< | ||
- sonarqube | - sonarqube | ||
- | + | | |
- | + | include: | |
- | sonarqube_check_job: | + | - remote: 'https://gitsrv.schnuerle.com:8443/sonar/ |
- | | + | |
- | refs: | + | |
- | | + | |
- | variables: | + | |
- | - $CI_COMMIT_TAG =~ / | + | |
- | image: | + | |
- | name: sonarsource/sonar-scanner-cli: | + | |
- | entrypoint: ["" | + | |
- | tags: | + | |
- | - sonarqube-runner | + | |
- | stage: sonarqube | + | |
- | variables: | + | |
- | SONAR_USER_HOME: | + | |
- | GIT_DEPTH: " | + | |
- | cache: | + | |
- | key: " | + | |
- | paths: | + | |
- | - .sonar/cache | + | |
- | script: | + | |
- | # we use a wrapper script to detect files without extension - all parameters after the sonar-wrapper | + | |
- | # additional we configure | + | |
- | # -X is used for sonar-scanner and sonar-wrapper for trace output | + | |
- | - chmod 0777 .sonar-wrapper | + | |
- | - ./ | + | |
</ | </ | ||