[Chore](checks) set sonar-project.properties (#24473)

set sonar-project.properties
This commit is contained in:
Pxl
2023-09-16 18:46:11 +08:00
committed by GitHub
parent b7a7a05eaa
commit dd2c455057
2 changed files with 24 additions and 6 deletions

View File

@ -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

View File

@ -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