Closed ghost closed 5 years ago
Were you able to find a solution?
not yet.
try this "sonar-scanner -X -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME"
Thanks Lanniu.
This command worked for me:
sonar-scanner -X -Dsonar.analysis.mode=publish -Dsonar.host.url=
Sonarqube 6.7 with sonar-scanner and Gitlab-plugin 3.0.2
Sonar-project.properties file:
sonar.projectKey=
sonar.projectName=
sonar.analysis.mode=preview
sonar.sources=
sonar.sourceEncoding=UTF-8
sonar.language=c
sonar.cfamily.build-wrapper-output=
sonar.branch.name=
sonar.gitlab.commit_sha=
sonar.gitlab.project_id=
sonar.gitlab.url=
sonar.gitlab.user_token=
Build is successful. But I see the below line in the log and I see no inline comments in gitlab.
DEBUG: ‘GitLab Commit Issue Publisher’ skipped because one of the required properties is missing
And also a new job is created in the end and it says Sonarqube analysis in progress and the job status is pending and it never starts.