diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3d6f3cc..8d55008 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,7 +38,7 @@ Code analysis: - go test -coverprofile=coverage.out ./... - /home/gitlab-runner/go/bin/golint ./... > golint-report.out - go vet ./... 2> govet-report.out - - /data/sonar-scanner/bin/sonar-scanner -Dsonar.projectVersion=$(git describe --abbrev=0) -Dsonar.host.url=https://sonar.thpeetz.de -Dsonar.login=ed0634e05811fb2b1cdd0f16b0a924f943623520 + - /data/sonar-scanner/bin/sonar-scanner -Dsonar.projectVersion=$(git describe --abbrev=0) -Dsonar.projectKey="$SONAR_PROJECT_KEY" -Dsonar.host.url="$SONAR_HOST_URL" -Dsonar.login="$SONAR_TOKEN" Deploy To Staging: stage: deploy diff --git a/sonar-project.properties b/sonar-project.properties index 153ec2b..be53e52 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,7 +1,4 @@ -sonar.projectKey=kalorienmanagerdomain-thpeetz_kalorienmanager_AX7qVcQrBSW-_-libBvi sonar.projectName='Kalorien Manager' -sonar.host.url=https://sonar.thpeetz.de -sonar.login=ed0634e05811fb2b1cdd0f16b0a924f943623520 sonar.sources=. sonar.exclusions=**/*_test.go,docs/**