You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ji...@apache.org on 2023/05/11 02:12:44 UTC

[shardingsphere] branch master updated: Add : add all params for sonar (#25563)

This is an automated email from the ASF dual-hosted git repository.

jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 0fa0e7034d8 Add : add all params for sonar (#25563)
0fa0e7034d8 is described below

commit 0fa0e7034d8d80e125ae62f29dc79b16e0dac43c
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Thu May 11 10:12:36 2023 +0800

    Add : add all params for sonar (#25563)
    
    Co-authored-by: shardingsphere <de...@shardingsphere.apache.org>
---
 .github/workflows/check-sonarcloud.yml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/check-sonarcloud.yml b/.github/workflows/check-sonarcloud.yml
index 0f6e4b65073..ceb1f419e3d 100644
--- a/.github/workflows/check-sonarcloud.yml
+++ b/.github/workflows/check-sonarcloud.yml
@@ -68,4 +68,13 @@ jobs:
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
-        run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_shardingsphere -Dmaven.javadoc.skip=true -Drat.skip=true -Djacoco.skip=true -DskipTests
+        run: ./mvnw clean sonar:sonar \
+              -Dsonar.host.url=https://sonarcloud.io \
+              -Dsonar.organization=apache \
+              -Dsonar.projectKey=apache_shardingsphere \
+              -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
+              -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} \
+              -Dsonar.pullrequest.github.repository=apache/shardingsphere \
+              -Dsonar.pullrequest.provider=GitHub \
+              -Dsonar.pullrequest.github.summary_comment=true \
+              -Dmaven.javadoc.skip=true -Drat.skip=true -Djacoco.skip=true -DskipTests