You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/04/27 02:09:04 UTC
[shardingsphere] branch master updated: Fix : fix the failed build process for sonarcloud (#25341)
This is an automated email from the ASF dual-hosted git repository.
zhaojinchao 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 18634738a83 Fix : fix the failed build process for sonarcloud (#25341)
18634738a83 is described below
commit 18634738a83d1710eca0243f4713c8c1c5ac8e84
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Thu Apr 27 10:08:57 2023 +0800
Fix : fix the failed build process for sonarcloud (#25341)
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 961b4463e37..9b871a05e22 100644
--- a/.github/workflows/check-sonarcloud.yml
+++ b/.github/workflows/check-sonarcloud.yml
@@ -21,6 +21,13 @@ on:
- cron: '0 17 */1 * *' # once a day. UTC time
workflow_dispatch:
+concurrency:
+ group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+env:
+ MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dcheckstyle.skip=true -Dspotless.apply.skip=true -Dmaven.javadoc.skip=true -Djacoco.skip=true
+
jobs:
build:
name: Build and analyze
@@ -46,9 +53,11 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
+ - name: Build dependencies
+ run: ./mvnw clean install -Dmaven.javadoc.skip=true -B -Drat.skip=true -Djacoco.skip=true -Dmaven.test.skip=true -T1C
- name: Build and analyze
env:
MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g -XX:+UseStringDeduplication"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
- run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_shardingsphere -Dmaven.javadoc.skip=true -B -Drat.skip=true -Djacoco.skip=true -Dmaven.test.skip=true
+ run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_shardingsphere -Dmaven.javadoc.skip=true -B -Drat.skip=true -Djacoco.skip=true -Dmaven.test.skip=true