From d95698f07563a86afe808a21a92c5ed9c2a50357 Mon Sep 17 00:00:00 2001 From: Pierre Guillot Date: Wed, 11 Dec 2019 17:21:53 +0100 Subject: [PATCH] DOCS add recommended GIT_DEPTH variable in examples --- server/sonar-docs/src/pages/analysis/gitlab-cicd.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/sonar-docs/src/pages/analysis/gitlab-cicd.md b/server/sonar-docs/src/pages/analysis/gitlab-cicd.md index beec052e9ae..ded4d42e289 100644 --- a/server/sonar-docs/src/pages/analysis/gitlab-cicd.md +++ b/server/sonar-docs/src/pages/analysis/gitlab-cicd.md @@ -42,6 +42,7 @@ image: gradle:alpine variables: SONAR_TOKEN: "your-sonarqube-token" SONAR_HOST_URL: "http://your-sonarqube-instance.org" + GIT_DEPTH: 0 sonarqube-check: stage: test script: gradle sonarqube -Dsonar.qualitygate.wait=true @@ -58,6 +59,7 @@ image: maven:latest variables: SONAR_TOKEN: "your-sonarqube-token" SONAR_HOST_URL: "http://your-sonarqube-url" + GIT_DEPTH: 0 sonarqube-check: script: - mvn verify sonar:sonar -Dsonar.qualitygate.wait=true @@ -76,6 +78,7 @@ image: variables: SONAR_TOKEN: "your-sonarqube-token" SONAR_HOST_URL: "http://your-sonarqube-instance.org" + GIT_DEPTH: 0 sonarqube-check: stage: test script: -- 2.39.5