From: cynthiabethea <108268296+cynthiabethea@users.noreply.github.com> Date: Fri, 30 Sep 2022 09:26:55 +0000 (+0100) Subject: DOC-159 adding a missing parameter to the docker command (#6745) X-Git-Tag: 9.7.0.61563~143 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe5eb0fca6f0a31991bd20cd740d078e52bcb0fe;p=sonarqube.git DOC-159 adding a missing parameter to the docker command (#6745) --- 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