diff --git a/dsl/scripts/pr_check.groovy b/dsl/scripts/pr_check.groovy index bc7475ff5..cf2bdebf7 100644 --- a/dsl/scripts/pr_check.groovy +++ b/dsl/scripts/pr_check.groovy @@ -90,6 +90,7 @@ void launchStages() { new MavenCommand(this) .withProperty('sonar.login', "${TOKEN}") .withProperty('sonar.organization', 'apache') // override what's in pom.xml for now + .withProperty('sonar.projectKey', env.SONAR_PROJECT_KEY) .withLogFileName('sonar_analysis.maven.log') .withSettingsXmlFile(MAVEN_SETTINGS_FILE) .run("-e -nsu validate -Psonarcloud-analysis -Denforcer.skip=true ${env.SONARCLOUD_ANALYSIS_MVN_OPTS ?: ''}") diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain b/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain index f60c700e0..d67b785da 100644 --- a/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain +++ b/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain @@ -144,6 +144,7 @@ pipeline { new MavenCommand(this) .withProperty('sonar.login', "${TOKEN}") .withProperty('sonar.organization', 'apache') // override what's in pom.xml for now + .withProperty('sonar.projectKey', env.SONAR_PROJECT_KEY) .withLogFileName('sonar_analysis.maven.log') .withSettingsXmlFile(MAVEN_SETTINGS_FILE) .run("-e -nsu validate -Psonarcloud-analysis -Denforcer.skip=true ${env.SONARCLOUD_ANALYSIS_MVN_OPTS ?: ''}")