From dd2c4550578d687598d4727a815de3dc4cbddf2f Mon Sep 17 00:00:00 2001 From: Pxl Date: Sat, 16 Sep 2023 18:46:11 +0800 Subject: [PATCH] [Chore](checks) set sonar-project.properties (#24473) set sonar-project.properties --- sonar-project.properties | 22 ++++++++++++++++++++++ .github/workflows/sonarcloud.yml | 8 ++------ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 sonar-project.properties diff --git a/ sonar-project.properties b/ sonar-project.properties new file mode 100644 index 0000000000..4d826c71ac --- /dev/null +++ b/ sonar-project.properties @@ -0,0 +1,22 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +sonar.host.url=https://sonarcloud.io +sonar.projectKey=apache_incubator-doris +sonar.organization=apache +sonar.sources=be diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 67b3073701..d9728dcb34 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -103,7 +103,7 @@ jobs: MAVEN_OPTS: -Xmx4g run: | cd fe - mvn --batch-mode verify sonar:sonar -DskipTests -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-doris -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 + mvn --batch-mode verify sonar:sonar -DskipTests -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 sonar-cloud-cpp: name: "SonarCloud on cpp" runs-on: ubuntu-22.04 @@ -154,9 +154,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: sonar-scanner \ - -Dsonar.cfamily.compile-commands=be/build_Release/compile_commands.json \ - -Dsonar.organization=apache \ - -Dsonar.projectKey=apache_incubator-doris \ - -Dsonar.sources=be + run: sonar-scanner -Dsonar.cfamily.compile-commands=be/build_Release/compile_commands.json -Dsonar.sources=be