Skip to content

Commit 5f42426

Browse files
JAVASE-145 Use regular project key instead of shadow project key
Project keys have been aligned across all platforms.
1 parent ed47117 commit 5f42426

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.cirrus.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ sonar_shadow_scan_and_issue_replication_task:
6767
env:
6868
SONAR_PROJECT_KEY: "org.sonarsource.java:sonar-java-symbolic-execution"
6969
SHADOW_ORGANIZATION: "sonarsource"
70-
SHADOW_PROJECT_KEY: "SonarSource_sonar-java-symbolic-execution"
7170
# to replicate issue states from next
7271
SONAR_TOKEN: VAULT[development/kv/data/next data.token]
7372
SONAR_HOST_URL: https://next.sonarqube.com/sonarqube

shadow-scan-and-issue-replication.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function build_and_analyze_the_project() {
2121
-Dsonar.host.url="${SHADOW_SONAR_HOST_URL}" \
2222
-Dsonar.token="${SHADOW_SONAR_TOKEN}" \
2323
-Dsonar.organization="${SHADOW_ORGANIZATION}" \
24-
-Dsonar.projectKey="${SHADOW_PROJECT_KEY}" \
24+
-Dsonar.projectKey="${SONAR_PROJECT_KEY}" \
2525
-Dsonar.analysis.buildNumber="${BUILD_NUMBER}" \
2626
-Dsonar.analysis.repository="${GITHUB_REPO}" \
2727
"$@"
@@ -64,9 +64,9 @@ function wait_for_sonarcloud_compute_engine_to_finish() {
6464
local LAST_STATUS=""
6565
local STATUS
6666

67-
echo "Waiting for SonarCloud compute engine to finish for project key: ${SHADOW_PROJECT_KEY}"
67+
echo "Waiting for SonarCloud compute engine to finish for project key: ${SONAR_PROJECT_KEY}"
6868
while (( ELAPSED_TIME < MAX_WAIT_TIME_SECONDS )); do
69-
STATUS=$(sonarcloud_compute_engine_status_for_given_project "${SHADOW_PROJECT_KEY}")
69+
STATUS=$(sonarcloud_compute_engine_status_for_given_project "${SONAR_PROJECT_KEY}")
7070
if [[ "${STATUS}" != "${LAST_STATUS}" ]]; then
7171
echo -n " ${STATUS} "
7272
LAST_STATUS="${STATUS}"
@@ -97,7 +97,7 @@ function run_iris() {
9797
-Diris.source.projectKey="${SONAR_PROJECT_KEY}" \
9898
-Diris.source.url="${SONAR_HOST_URL}" \
9999
-Diris.source.token="${SONAR_TOKEN}" \
100-
-Diris.destination.projectKey="${SHADOW_PROJECT_KEY}" \
100+
-Diris.destination.projectKey="${SONAR_PROJECT_KEY}" \
101101
-Diris.destination.organization="${SHADOW_ORGANIZATION}" \
102102
-Diris.destination.url="${SHADOW_SONAR_HOST_URL}" \
103103
-Diris.destination.token="${SHADOW_SONAR_TOKEN}" \

0 commit comments

Comments
 (0)