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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3cefe4817f4 [chore](CI)Sonar build should use JDK 17 (#40807)
3cefe4817f4 is described below

commit 3cefe4817f4a7bd9ad88448e47f966d0ac43792f
Author: Calvin Kirs <[email protected]>
AuthorDate: Fri Sep 13 18:06:29 2024 +0800

    [chore](CI)Sonar build should use JDK 17 (#40807)
    
    workflow log:
    
    ```
    Python 3.10.12
    Check JAVA_HOME version
    JAVA_HOME=/opt/hostedtoolcache/Java_Adopt_jdk/11.0.24-8/x64. It does not 
point to JDK-17.
    The 'JDK_17' environment variable is not set.
    ERROR: The JAVA version is 
[11](https://github.com/CalvinKirs/incubator-doris/actions/runs/10828165037/job/30042908344#step:10:12),
 it must be JDK-17.
    Error: Process completed with exit code 1.
    
    ```
---
 .github/workflows/sonarcloud.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index 5ee8bdf24e9..e2eb4b14d43 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -41,11 +41,11 @@ jobs:
               - 'fe/**'
               - 'gensrc/proto/**'
               - 'gensrc/thrift/**'
-      - name: Set up JDK 11
+      - name: Set up JDK 17
         if: ${{ steps.filter.outputs.fe_changes == 'true' }}
         uses: actions/setup-java@v3
         with:
-          java-version: 11
+          java-version: 17
           distribution: 'adopt'
       - name: Cache SonarCloud packages
         if: ${{ steps.filter.outputs.fe_changes == 'true' }}


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

Reply via email to