Loading templates/gitlab-ci-maven.yml +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
templates/gitlab-ci-maven.yml +4 −0 Original line number Diff line number Diff line Loading @@ -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 Loading