Skip to content
Snippets Groups Projects
Commit f5c5ffcc authored by Gaelle.Barris's avatar Gaelle.Barris
Browse files

add sonarqube-check

parent 6d3ace57
Branches
Tags
No related merge requests found
......@@ -2,6 +2,7 @@ image: node:16.14.0
stages:
- build
- check
- publish-package
- publish-docker-image
......@@ -37,6 +38,26 @@ build:
- main
- tags
sonarqube-check:
stage: check
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"
GIT_DEPTH: "0"
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- sonar-scanner
allow_failure: true
only:
- merge_requests
- main
- tags
publish-package:
stage: publish-package
needs: ["build"]
......
sonar.projectKey=d-demomap
sonar.qualitygate.wait=true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment