Skip to content
Snippets Groups Projects
Commit 8b2f8314 authored by Lukasz Lopatowski's avatar Lukasz Lopatowski
Browse files

Added sonar scan CI job

parent b8b3ef3f
No related branches found
No related tags found
No related merge requests found
Pipeline #92624 passed
......@@ -28,6 +28,18 @@ test:
protoc/bin/protoc --proto_path=api/proto/v1 --proto_path=third_party --go_out=plugins=grpc:pkg/api/v1 config-service.proto
go test ./...
sonar:
stage: test
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
only:
- develop
- /^release/
script:
- sonar-scanner -Dsonar.host.url=${SONAR_HOST} -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.projectName=${SONAR_PROJECT_NAME} -Dsonar.branch.name=${CI_COMMIT_BRANCH} -Dsonar.login=${SONAR_LOGIN_TOKEN}
allow_failure: true
build_and_push_latest_image:
stage: build
only:
......
# must be unique in a given SonarQube instance
#sonar.projectKey=my:project
# --- optional properties ---
# defaults to project key
#sonar.projectName=My project
# defaults to 'not provided'
#sonar.projectVersion=1.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
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment