Commit 4dbd90e4 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

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

parent d6af80fd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -473,6 +473,10 @@ mvn-build:
mvn-sonar:
  stage: test
  extends: .mvn-base
  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
  script:
    - sonar_autodetect_mr
    - if [[ "$SONAR_GITLAB_TOKEN" ]]; then sonar_extra_args="$SONAR_GITLAB_ARGS"; fi