Skip to content

Commit 5f8fdca

Browse files
committed
SCANPY-197 Fix weird region support for sonarqube.us
1 parent 2e22d5e commit 5f8fdca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.cirrus/analysis.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
#!/bin/bash
22

33
function run_analysis {
4+
# deal with strange SonarQube configuration for the US region
5+
SONAR_REGION=""
6+
if [ "$SONAR_HOST_URL" == "https://sonarqube.us" ]; then
7+
SONAR_REGION="-Dsonar.region=us"
8+
fi
9+
410
# extra analysis parameters are set in the 'sonar-project.properties'
511
pysonar \
612
-Dsonar.host.url="$SONAR_HOST_URL" \
13+
${SONAR_REGION} \
714
-Dsonar.token="$SONAR_TOKEN" \
815
-Dsonar.analysis.buildNumber=$CI_BUILD_NUMBER \
916
-Dsonar.analysis.pipeline="$PIPELINE_ID" \

0 commit comments

Comments
 (0)