From fe5eb0fca6f0a31991bd20cd740d078e52bcb0fe Mon Sep 17 00:00:00 2001 From: cynthiabethea <108268296+cynthiabethea@users.noreply.github.com> Date: Fri, 30 Sep 2022 10:26:55 +0100 Subject: [PATCH] DOC-159 adding a missing parameter to the docker command (#6745) --- server/sonar-docs/src/pages/analysis/scan/sonarscanner.md | 1 + 1 file changed, 1 insertion(+) diff --git a/server/sonar-docs/src/pages/analysis/scan/sonarscanner.md b/server/sonar-docs/src/pages/analysis/scan/sonarscanner.md index 3cf6b39ad39..6d871a4b941 100644 --- a/server/sonar-docs/src/pages/analysis/scan/sonarscanner.md +++ b/server/sonar-docs/src/pages/analysis/scan/sonarscanner.md @@ -67,6 +67,7 @@ To scan using the SonarScanner Docker image, use the following command: docker run \ --rm \ -e SONAR_HOST_URL="http://${SONARQUBE_URL}" \ + -e SONAR_SCANNER_OPTS="-Dsonar.projectKey=${YOUR_PROJECT_KEY}" -e SONAR_LOGIN="myAuthenticationToken" \ -v "${YOUR_REPO}:/usr/src" \ sonarsource/sonar-scanner-cli -- 2.39.5