Skip to content

Commit

Permalink
[FLINK-33664][ci] Setup cron build for java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin committed Nov 28, 2023
1 parent cf7e74d commit 76f7548
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions flink-end-to-end-tests/test-scripts/common_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ function build_image() {
if [[ ${PROFILE} == *"jdk17"* ]]; then
java_version=17
fi
if [[ ${PROFILE} == *"jdk21"* ]]; then
java_version=21
fi

cd flink-docker
./add-custom.sh -u ${file_server_address}:9999/flink.tgz -n ${image_name} -j ${java_version}
Expand Down
11 changes: 11 additions & 0 deletions tools/azure-pipelines/build-apache-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ stages:
run_end_to_end: true
container: flink-build-container
jdk: 17
- template: jobs-template.yml
parameters:
stage_name: cron_jdk21
test_pool_definition:
name: Default
e2e_pool_definition:
vmImage: 'ubuntu-20.04'
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Djdk11 -Djdk17 -Djdk21 -Pjava21-target"
run_end_to_end: true
container: flink-build-container
jdk: 21
- template: jobs-template.yml
parameters:
stage_name: cron_adaptive_scheduler
Expand Down
4 changes: 2 additions & 2 deletions tools/ci/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ EXIT_CODE=$(($EXIT_CODE+$?))
echo "============ Run license check ============"

find $MVN_VALIDATION_DIR
# We use a different Scala version with Java 17
if [[ ${PROFILE} != *"jdk17"* ]]; then
# We use a different Scala version with Java 17 and 21
if [[ ${PROFILE} != *"jdk17"* ]] && [[ ${PROFILE} != *"jdk21"* ]]; then
MVN=$MVN ${CI_DIR}/license_check.sh $MVN_CLEAN_COMPILE_OUT $MVN_VALIDATION_DIR || exit $?
fi

Expand Down

0 comments on commit 76f7548

Please sign in to comment.