]> source.dussan.org Git - sonarqube.git/commitdiff
DOC-159 adding a missing parameter to the docker command (#6745)
authorcynthiabethea <108268296+cynthiabethea@users.noreply.github.com>
Fri, 30 Sep 2022 09:26:55 +0000 (10:26 +0100)
committerPhilippe Perrin <philippe.perrin@sonarsource.com>
Fri, 7 Oct 2022 10:13:55 +0000 (12:13 +0200)
server/sonar-docs/src/pages/analysis/scan/sonarscanner.md

index 3cf6b39ad393f77cd1708f606f2526251af14c63..6d871a4b941e659a1b93ff9bb05715afedbccaa2 100644 (file)
@@ -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