Commit dcf4b5dc authored by Nicolo Parmiggiani's avatar Nicolo Parmiggiani
Browse files

Update .gitlab-ci.yml

parent b72a2191
Pipeline #8699 failed
...@@ -4,43 +4,51 @@ image: ...@@ -4,43 +4,51 @@ image:
sonarqube-check: #sonarqube-check:
image: # image:
name: sonarsource/sonar-scanner-cli:latest # name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""] # entrypoint: [""]
variables: # variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache # 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 # GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache: # cache:
key: "${CI_JOB_NAME}" # key: "${CI_JOB_NAME}"
paths: # paths:
- .sonar/cache # - .sonar/cache
script: # script:
- sonar-scanner # - sonar-scanner
allow_failure: true # allow_failure: true
only: # only:
- master # or the name of your main branch # - master # or the name of your main branch
#code_quality: code_quality:
# services: # Shut off Docker-in-Docker services: # Shut off Docker-in-Docker
# tags: tags:
# - cq-astri # Set this job to only run on our new specialized runner - cq-astri # Set this job to only run on our new specialized runner
#variables: variables:
#CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.18" CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.18"
# artifacts: artifacts:
# paths: [gl-code-quality-report.json] paths: [gl-code-quality-report.json]
#code_quality_html: code_quality_html:
# extends: code_quality extends: code_quality
# variables: variables:
# REPORT_FORMAT: html REPORT_FORMAT: html
# artifacts: artifacts:
# paths: [gl-code-quality-report.html] paths: [gl-code-quality-report.html]
pages:
stage: deploy
script:
- mkdir -p public/jobs/${CI_JOB_ID}/artifacts
- cp gl-code-quality-report.html public/jobs/${CI_JOB_ID}/artifacts
artifacts:
paths:
- public
secondpipe: secondpipe:
......
Supports Markdown
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