Add sonar scanner
This commit is contained in:
parent
2206728fa6
commit
9ba7cb69cc
9
.gitlab-ci.yml
Normal file
9
.gitlab-ci.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
stages:
|
||||
- scan
|
||||
|
||||
sonar_scan:
|
||||
stage: scan
|
||||
image: registry.ivayloivanov.eu/infstrct/dockerfiles/amd64/sonar-scanner-base
|
||||
script:
|
||||
- $HOME/sonar-scanner/bin/sonar-scanner -Dsonar.login=$SONAR_TOKEN
|
16
sonar-project.properties
Normal file
16
sonar-project.properties
Normal file
@ -0,0 +1,16 @@
|
||||
#----- Default SonarQube server
|
||||
sonar.host.url=http://192.168.3.2:9000
|
||||
|
||||
# must be unique in a given SonarQube instance
|
||||
sonar.projectKey=tuwien:unix
|
||||
|
||||
# defaults to project key
|
||||
sonar.projectName=tuwien:unix
|
||||
# defaults to 'not provided'
|
||||
sonar.projectVersion=1.0.0
|
||||
|
||||
# Path is relative to the sonar-project.properties file. Defaults to .
|
||||
sonar.sources=.
|
||||
|
||||
# Encoding of the source code. Default is default system encoding
|
||||
sonar.sourceEncoding=UTF-8
|
Reference in New Issue
Block a user