Template for a good new topic, formatted with Markdown:
- ALM used : Bitbucket Cloud
- CI system used : Buildkite
- Scanner command used when applicable
- Previous command : Used with Jenkins
(./gradlew -g /home/jenkins/.gradle/${pipelineParams.projectName} :${pipelineParams.projectName}:sonar -Dsonar.branch.name=${BRANCH_NAME}")
- New command : Used in Buildkite
( /opt/sonar-scanner/bin/sonar-scanner -X \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.branch.name=$BUILDKITE_BRANCH \
-Dsonar.qualitygate.wait=true \
-Dsonar.sources=$MICROSERVICE/src/main \
-Dsonar.tests=$MICROSERVICE/src/test \
-Dsonar.java.binaries=$MICROSERVICE/src/main/java \
-Dsonar.projectKey=$ORGNAME_$MONOREPONAME_$MICROSERVICE)
- Languages of the repository : Java
- Only if the SonarCloud project is public, the URL (Private Project and hence cant share the peroject repo)
- Error observed : The scan completes successfully. But no bug reports are uploaded to SonarCloud. (Can share the logs privately)