Commit a9cdf6bf authored by Jan Grewe's avatar Jan Grewe
Browse files

[ci skip] use commit hash as project version

parent a92fcb15
Pipeline #388 skipped
......@@ -11,7 +11,7 @@ sonarqube:
image: registry.faked.org/gitlab-ci/sonar-scanner
stage: test
script:
- sonar-scanner -Dsonar.projectBaseDir=$(pwd)
- sonar-scanner -Dsonar.projectBaseDir=$(pwd) -Dsonar.projectVersion=${CI_COMMIT_SHA}
```
Make sure you put a `sonar-project.properties` file into the root of your repo:
......@@ -20,6 +20,5 @@ sonar.host.url=https://sonar.example.com
sonar.login=AValidSonarqubeUserToken
sonar.projectKey=myproject
sonar.projectName=My Project
sonar.projectVersion=1
sonar.sources=app
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment