This is an automated email from the ASF dual-hosted git repository.
tzimanyi pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/main by this push:
new b8f7512b kie-issues#599: set projectKey for sonar analysis (#1116)
b8f7512b is described below
commit b8f7512b253e26203497b78116eb3aa6b5d72292
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]