Loading .gitlab-ci.yml +38 −30 Original line number Original line Diff line number Diff line Loading @@ -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: Loading Loading
.gitlab-ci.yml +38 −30 Original line number Original line Diff line number Diff line Loading @@ -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: Loading