Commit 7a3ba876 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: prevent shallow git clone (required by Sonar Scanner)

parent ceb6a5c5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -292,6 +292,10 @@ sonar:
  services:
    - name: "$CI_REGISTRY/to-be-continuous/tools/tracking:master"
      command: ["--service", "sonar", "1.3.1" ]
  variables:
    # Tells git to fetch all the branches of the project, required by the analysis task
    # see: https://docs.sonarqube.org/8.5/analysis/gitlab-cicd/#header-2
    GIT_DEPTH: 0
  before_script:
    - *sonar-scripts
    - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"