Docker Image for Sonarqube-Scanner CLI
3.3.0
,3.3.0.1492
,latest
(Dockerfile)3.2.0
,3.2.0.1227
(Dockerfile)3.1.0
,3.1.0.1141
(Dockerfile)3.0.3
,3.0.3.778
(Dockerfile)3.0.2
,3.0.2.768
(Dockerfile)3.0.1
,3.0.1.733
(Dockerfile)3.0.0
,3.0.0.702
(Dockerfile)2.9.0
,2.9.0.670
(Dockerfile)2.8
(Dockerfile)
-
Where to get help:
the Docker Community Forums, the Docker Community Slack, or Stack Overflow -
Where to file issues:
GitHub Issues Page -
Maintained by:
ElectroStar
To use this Image with Gitlab-CI for Sonarqube Codechecking with installed Gitlab-Plugin for reporting, use the following commands in a .gitlab-ci.yml - File:
variables:
SONAR_URL: "http://YOUR-SONAR-Server/"
stages:
- test
sonarqube_preview:
stage: test
image: electrostar/sonar-scanner:latest
script:
- git checkout origin/master
- git merge $CI_COMMIT_SHA --no-commit --no-ff
- sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.sources="." -Dsonar.projectKey="${CI_PROJECT_NAME}_${CI_PROJECT_ID}" -Dsonar.projectName="$CI_PROJECT_NAME" -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.projectDescription="$CI_PROJECT_NAMESPACE"
except:
- develop
- master
- /^hotfix_.*$/
- /.*-hotfix$/
sonarqube:
stage: test
image: electrostar/sonar-scanner:latest
script:
- sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.sources="." -Dsonar.projectKey="${CI_PROJECT_NAME}_${CI_PROJECT_ID}" -Dsonar.projectName="$CI_PROJECT_NAME" -Dsonar.projectDescription="$CI_PROJECT_NAMESPACE"
only:
- master
Just replace YOUR-SONAR-SERVER with the IP-Address of your Sonar-Server of your choice.
The Dockerfiles and associated scripts are licensed under the MIT License.