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

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

commit 4624cc47bec135f369bcdf159b68bdd4566ce5af
Author: Chesnay Schepler <ches...@apache.org>
AuthorDate: Fri Jun 16 15:05:30 2023 +0200

    [FLINK-32369][ci] Setup Java 17 cron build
---
 tools/azure-pipelines/build-apache-repo.yml | 11 +++++++++++
 tools/ci/compile.sh                         |  6 ++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/tools/azure-pipelines/build-apache-repo.yml 
b/tools/azure-pipelines/build-apache-repo.yml
index eea833ad826..8a63b17a5de 100644
--- a/tools/azure-pipelines/build-apache-repo.yml
+++ b/tools/azure-pipelines/build-apache-repo.yml
@@ -138,6 +138,17 @@ stages:
           run_end_to_end: true
           container: flink-build-container
           jdk: 11
+      - template: jobs-template.yml
+        parameters:
+          stage_name: cron_jdk17
+          test_pool_definition:
+            name: Default
+          e2e_pool_definition:
+            vmImage: 'ubuntu-20.04'
+          environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12 
-Djdk11 -Djdk17"
+          run_end_to_end: true
+          container: flink-build-container
+          jdk: 17
       - template: jobs-template.yml
         parameters:
           stage_name: cron_adaptive_scheduler
diff --git a/tools/ci/compile.sh b/tools/ci/compile.sh
index c2c68be7a47..4c38931085b 100755
--- a/tools/ci/compile.sh
+++ b/tools/ci/compile.sh
@@ -110,8 +110,10 @@ EXIT_CODE=$(($EXIT_CODE+$?))
 echo "============ Run license check ============"
 
 find $MVN_VALIDATION_DIR
-
-${CI_DIR}/license_check.sh $MVN_CLEAN_COMPILE_OUT $CI_DIR $(pwd) 
$MVN_VALIDATION_DIR || exit $?
+# We use a different Scala version with Java 17
+if [[ ${PROFILE} != *"jdk17"* ]]; then
+  ${CI_DIR}/license_check.sh $MVN_CLEAN_COMPILE_OUT $CI_DIR $(pwd) 
$MVN_VALIDATION_DIR || exit $?
+fi
 
 exit $EXIT_CODE
 

Reply via email to