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-drools.git
The following commit(s) were added to refs/heads/main by this push:
new 14286b08fe kie-issues_599: set projectKey for sonarcloud (#5573)
14286b08fe is described below
commit 14286b08fe60c3885c278d89f1c89e32c0d9bdf3
Author: Jan Stastny <[email protected]>
AuthorDate: Fri Nov 3 16:09:15 2023 +0100
kie-issues_599: set projectKey for sonarcloud (#5573)
Co-authored-by: jstastny-cz <[email protected]>
---
.ci/jenkins/Jenkinsfile | 1 +
.ci/jenkins/dsl/jobs.groovy | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile
index 2488ec7010..dc43651187 100644
--- a/.ci/jenkins/Jenkinsfile
+++ b/.ci/jenkins/Jenkinsfile
@@ -17,6 +17,7 @@ pipeline {
BUILDCHAIN_CONFIG_FILE_PATH = '.ci/buildchain-config-pr-cdb.yaml'
ENABLE_SONARCLOUD = 'false'
+ SONAR_PROJECT_KEY = 'apache_incubator-kie-drools'
DROOLS_BUILD_MVN_OPTS = '-Prun-code-coverage'
}
stages {
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index 2ac07e9116..b36c69c13a 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -195,10 +195,18 @@ Closure setup3AMCronTriggerJobParamsGetter = { script ->
return jobParams
}
+Closure setupSonarProjectKeyEnv = { Closure paramsGetter ->
+ return { script ->
+ def jobParams = paramsGetter(script)
+ jobParams.env.put('SONAR_PROJECT_KEY', 'apache_incubator-kie-drools')
+ return jobParams
+ }
+}
+
Closure nightlyJobParamsGetter = isMainStream() ?
JobParamsUtils.DEFAULT_PARAMS_GETTER : setup3AMCronTriggerJobParamsGetter
KogitoJobUtils.createNightlyBuildChainBuildAndDeployJobForCurrentRepo(this,
'', true)
setupSpecificBuildChainNightlyJob('native', nightlyJobParamsGetter)
-setupSpecificBuildChainNightlyJob('sonarcloud', nightlyJobParamsGetter)
+setupSpecificBuildChainNightlyJob('sonarcloud',
setupSonarProjectKeyEnv(nightlyJobParamsGetter))
setupQuarkusIntegrationJob('quarkus-main', nightlyJobParamsGetter)
setupQuarkusIntegrationJob('quarkus-branch', nightlyJobParamsGetter)
setupQuarkusIntegrationJob('quarkus-lts', nightlyJobParamsGetter)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]