We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e22d5e commit 5f8fdcaCopy full SHA for 5f8fdca
.cirrus/analysis.sh
@@ -1,9 +1,16 @@
1
#!/bin/bash
2
3
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
+
10
# extra analysis parameters are set in the 'sonar-project.properties'
11
pysonar \
12
-Dsonar.host.url="$SONAR_HOST_URL" \
13
+ ${SONAR_REGION} \
14
-Dsonar.token="$SONAR_TOKEN" \
15
-Dsonar.analysis.buildNumber=$CI_BUILD_NUMBER \
16
-Dsonar.analysis.pipeline="$PIPELINE_ID" \
0 commit comments