Documentation about using scanner from Doken contains less detail since 10.3

Hi,

The example of Running SonarScanner from the Docker image no longer shows the sonartoken parameter since 10.2+. It might be interesting to specify how to pass other parameters as reported by @vodoc82730 in this topic.

10.2 Running SonarScanner from the Docker image

 docker run \
     --rm \
     -e SONAR_HOST_URL="http://${SONARQUBE_URL}" \
     -e SONAR_SCANNER_OPTS="-Dsonar.projectKey=${YOUR_PROJECT_KEY}" \
     -e SONAR_TOKEN="myAuthenticationToken" \
     -v "${YOUR_REPO}:/usr/src" \
     sonarsource/sonar-scanner-cli

10.6 Running SonarScanner from the Docker image

 docker run \
     --rm \
     -e SONAR_HOST_URL="http://${SONARQUBE_URL}"  \
     -v "${YOUR_REPO}:/usr/src" \
     sonarsource/sonar-scanner-cli
1 Like

Hi,

Thanks for this report! I’ve flagged it for the Docs team.

 
Ann

Thank you for this feedback, this change came after a scanner release. We now have a ticket in the Docs backlog to update this page with information on passing parameters.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.