Sign inSign up

kuzmenkoinnov/sonar-runner

By kuzmenkoinnov

•Updated almost 8 years ago

Sonar-runner CircleCI & others CI systems image. Very easy way to run code analyze for SonarQube

Image
1

10K+

kuzmenkoinnov/sonar-runner repository overview

⁠SonarQube docker image (sonar-runner binary).
⁠Full compatibility with CircleCI system.
⁠Config location (sonar-project.properties): ~/circleci-build/sonar-project.properties
⁠Executable binary: sonar-runner (full branch analyze)
⁠Config sample:``
        cat << EOF > ~/circleci-build/sonar-project.properties
        sonar-runner \
        -Dsonar.organization=$SONARQUBE_SERVER_ORGANIZATION \
        -Dsonar.host.url=$SONARQUBE_SERVER_URL \
        -Dsonar.login=$SONARQUBE_SERVER_LOGIN \
        -Dsonar.projectKey=$CIRCLE_PROJECT_REPONAME \
        -Dsonar.organization=$SONARQUBE_SERVER_ORGANIZATION \
        -Dsonar.projectBaseDir=/home/circleci/circleci-build \
        -Dsonar.sources=. \
        -Dsonar.github.oauth=$SONARQUBE_GITHUB_OAUTH \
        -Dsonar.github.repository=$SONARQUBE_SERVER_ORGANIZATION/$CIRCLE_PR_REPONAME \
        -Dsonar.exclusions="wp-admin/**, wp-content/plugins/**, wp-content/uploads/**, wp-includes/**, vendor/**"
        EOF

``

⁠Executable binary: sonar-runner (pull request analyze)
⁠Config sample:``
        cat << EOF > ~/circleci-build/sonar-project.properties
        sonar-runner \
          sonar-runner \
          -Dsonar.organization=$SONARQUBE_SERVER_ORGANIZATION \
          -Dsonar.host.url=$SONARQUBE_SERVER_URL \
          -Dsonar.login=$SONARQUBE_SERVER_LOGIN \
          -Dsonar.projectKey=$CIRCLE_PROJECT_REPONAME \
          -Dsonar.projectVersion=1.$CIRCLECI_PULL_REQUEST_NUMBER \
          -Dsonar.issuesReport.console.enable=true \
          -Dsonar.projectBaseDir=/home/circleci/circleci-build \
          -Dsonar.sources=. \
          -Dsonar.analysis.mode=preview \
          -Dsonar.github.pullRequest=$CIRCLECI_PULL_REQUEST_NUMBER \
          -Dsonar.github.disableInlineComments=false \
          -Dsonar.github.oauth=$SONARQUBE_GITHUB_OAUTH \
          -Dsonar.github.repository=$SONARQUBE_SERVER_ORGANIZATION/$CIRCLE_PROJECT_REPONAME \
          -Dsonar.exclusions="wp-admin/**, wp-content/plugins/**, wp-content/uploads/**, wp-includes/**, vendor/**"
        EOF

``

Tag summary

Content type

Image

Digest

Size

177.3 MB

Last updated

almost 8 years ago

docker pull kuzmenkoinnov/sonar-runner