Skip to content

Commit a75f42e

Browse files
Wohopssonartech
authored andcommitted
SONARPY-3096 Fix project key for SQ analysis (#329)
GitOrigin-RevId: 4011a8a9b125c1c0630ea0aeb9038491533687f9
1 parent 87a5df1 commit a75f42e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.cirrus-public.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ analysis_next_task:
5555
env:
5656
SONAR_TOKEN: VAULT[development/kv/data/next data.token]
5757
SONAR_HOST_URL: https://next.sonarqube.com/sonarqube
58+
SONAR_PROJECT_KEY: org.sonarsource.python:python
5859

5960
analysis_sqc_eu_shadow_task:
6061
<<: *BASE_ANALYSIS
@@ -64,6 +65,7 @@ analysis_sqc_eu_shadow_task:
6465
env:
6566
SONAR_TOKEN: VAULT[development/kv/data/sonarcloud data.token]
6667
SONAR_HOST_URL: https://sonarcloud.io
68+
SONAR_PROJECT_KEY: SonarSource_sonar-python
6769

6870
analysis_sqc_us_shadow_task:
6971
<<: *BASE_ANALYSIS
@@ -73,3 +75,4 @@ analysis_sqc_us_shadow_task:
7375
env:
7476
SONAR_TOKEN: VAULT[development/kv/data/sonarqube-us data.token]
7577
SONAR_HOST_URL: https://sonarqube.us
78+
SONAR_PROJECT_KEY: SonarSource_sonar-python

.cirrus/analyze.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ function run_maven {
55
mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
66
-Pcoverage \
77
-Dmaven.test.redirectTestOutputToFile=false \
8+
-Dsonar.projectKey="$SONAR_PROJECT_KEY" \
89
-Dsonar.host.url="$SONAR_HOST_URL" \
910
-Dsonar.token="$SONAR_TOKEN" \
1011
-Dsonar.organization="sonarsource" \

0 commit comments

Comments
 (0)