Loading .gitlab-ci.yml +16 −11 Original line number Original line Diff line number Diff line Loading @@ -4,17 +4,22 @@ image: include: sonarqube-check: - template: Code-Quality.gitlab-ci.yml image: name: sonarsource/sonar-scanner-cli:latest code_quality: entrypoint: [""] stage: test variables: services: SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache tags: GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task - cq-astri # Set this job to only run on our new specialized runner cache: artifacts: key: "${CI_JOB_NAME}" expose_as: 'Code Quality Report' paths: paths: [gl-code-quality-report.json] - .sonar/cache script: - sonar-scanner allow_failure: true only: - master # or the name of your main branch Loading Loading
.gitlab-ci.yml +16 −11 Original line number Original line Diff line number Diff line Loading @@ -4,17 +4,22 @@ image: include: sonarqube-check: - template: Code-Quality.gitlab-ci.yml image: name: sonarsource/sonar-scanner-cli:latest code_quality: entrypoint: [""] stage: test variables: services: SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache tags: GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task - cq-astri # Set this job to only run on our new specialized runner cache: artifacts: key: "${CI_JOB_NAME}" expose_as: 'Code Quality Report' paths: paths: [gl-code-quality-report.json] - .sonar/cache script: - sonar-scanner allow_failure: true only: - master # or the name of your main branch Loading