This is an automated email from the ASF dual-hosted git repository. jstastnycz pushed a commit to branch radtriste-fix-pipelines in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
commit f955b146271d79192ab65ef24a16a6ba058b1e0c Author: Jan Stastny <[email protected]> AuthorDate: Fri Nov 3 16:08:13 2023 +0100 kie-issues#599: set projectKey for sonar analysis (#1116) Co-authored-by: jstastny-cz <[email protected]> --- dsl/scripts/pr_check.groovy | 1 + dsl/seed/jenkinsfiles/Jenkinsfile.buildchain | 1 + 2 files changed, 2 insertions(+) diff --git a/dsl/scripts/pr_check.groovy b/dsl/scripts/pr_check.groovy index 2fa68b28..a2f17ff9 100644 --- a/dsl/scripts/pr_check.groovy +++ b/dsl/scripts/pr_check.groovy @@ -92,6 +92,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 f60c700e..d67b785d 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 ?: ''}") --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
