Skip to content

Commit 6bfa637

Browse files
committed
ci: add sonar scan
Signed-off-by: Arjun Rajappa <[email protected]>
1 parent 0746b45 commit 6bfa637

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,16 @@ commands:
149149
-Dsonar.sources=. \
150150
-Dsonar.host.url="${SONARQUBE_URL}" \
151151
-Dsonar.pullrequest.key="${CIRCLE_PR_NUMBER}" \
152-
-Dsonar.pullrequest.branch="${CIRCLE_BRANCH}"
152+
-Dsonar.pullrequest.branch="${CIRCLE_BRANCH}" \
153+
-Dsonar.token="${SONAR_TOKEN}"
153154
else
154155
sonar-scanner \
155156
-Dsonar.organization=instana \
156157
-Dsonar.projectKey=instana_ruby-sensor \
157158
-Dsonar.sources=. \
158159
-Dsonar.host.url="${SONARQUBE_URL}" \
159-
-Dsonar.branch.name="${CIRCLE_BRANCH}"
160+
-Dsonar.branch.name="${CIRCLE_BRANCH}" \
161+
-Dsonar.token="${SONAR_TOKEN}"
160162
fi
161163
- store_artifacts:
162164
path: partial_coverage_results

0 commit comments

Comments
 (0)