Skip to content
Snippets Groups Projects
Commit 12d1f60d authored by Lou Davila's avatar Lou Davila
Browse files

try CD job_quality

parent 741a36c4
No related branches found
No related tags found
No related merge requests found
stages:
- build
- quality
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
default:
image: node:lts-slim
build_job:
stage: build
script:
- npm ci # A la place de npm install
- npm run build
artifacts:
expire_in:
- 1 hour
paths:
- dist/
quality_job:
image: leadrien/isc-sonar-scanner-cli:latest
stage: quality
script:
- sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}"
cache:
policy: pull-push
key: "sonar-cache-$CI_COMMIT_REF_SLUG"
paths:
- "${SONAR_USER_HOME}/cache"
- sonar-scanner/
sonar.projectKey=davila-lou-breakout
sonar.qualitygate.wait=true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment