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-optaplanner.git


The following commit(s) were added to refs/heads/main by this push:
     new 89533f168c kie-issues_599: set projectKey for sonar analysis (#3011)
89533f168c is described below

commit 89533f168c6f5649cbfc31e702128d52f3c2a35b
Author: Jan Stastny <[email protected]>
AuthorDate: Fri Nov 3 16:08:57 2023 +0100

    kie-issues_599: set projectKey for sonar analysis (#3011)
    
    Co-authored-by: jstastny-cz <[email protected]>
---
 .ci/jenkins/Jenkinsfile          | 2 +-
 .ci/jenkins/dsl/jobs.groovy      | 2 +-
 .github/workflows/sonarcloud.yml | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile
index 5cb9a72b92..35dced411b 100644
--- a/.ci/jenkins/Jenkinsfile
+++ b/.ci/jenkins/Jenkinsfile
@@ -17,7 +17,7 @@ pipeline {
         BUILDCHAIN_CONFIG_FILE_PATH = '.ci/buildchain-config-pr-cdb.yaml'
 
         ENABLE_SONARCLOUD = 'false'
-        SONARCLOUD_ANALYSIS_MVN_OPTS = 
'-Dsonar.projectKey=org.optaplanner:optaplanner'
+        SONAR_PROJECT_KEY = 'apache_incubator-kie-optaplanner'
         OPTAPLANNER_BUILD_MVN_OPTS = '-Prun-code-coverage'
     }
     stages {
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index abc10ddddf..c8ebbe46c0 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -194,7 +194,7 @@ Map getMultijobPRConfig(JenkinsFolder jobFolder) {
                     // Sonarcloud analysis only on main branch
                     // As we have only Community edition
                     ENABLE_SONARCLOUD: EnvUtils.isDefaultEnvironment(this, 
jobFolder.getEnvironmentName()) && Utils.isMainBranch(this),
-                    SONARCLOUD_ANALYSIS_MVN_OPTS: 
'-Dsonar.projectKey=org.optaplanner:optaplanner',
+                    SONARCLOUD_ANALYSIS_MVN_OPTS: 
'-Dsonar.projectKey=apache_incubator-kie-optaplanner',
                 ]
             ], [
                 id: 'optaplanner-quickstarts',
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index 5487845a01..731bcbddc6 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -46,4 +46,4 @@ jobs:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
-        run: mvn -B --fail-at-end validate -Psonarcloud-analysis 
-Dsonar.projectKey=org.optaplanner:optaplanner -Dsonar.login=${{ 
env.SONARCLOUD_TOKEN }}
+        run: mvn -B --fail-at-end validate -Psonarcloud-analysis 
-Dsonar.projectKey=apache_incubator-kie-optaplanner -Dsonar.login=${{ 
env.SONARCLOUD_TOKEN }}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to