Skip to content

Commit abdfdb0

Browse files
AnshulPatniAnshul Patni
andauthored
ci: set JAVA_HOME to OpenJDK 17 in Kokoro build script (#402)
Change-Id: If4c650817635f909976e629e72ba4fe0c2282899 Co-authored-by: Anshul Patni <anshulpatni@google.com>
1 parent 46c6f48 commit abdfdb0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.kokoro/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ set -euo pipefail
55
REPO_DIR="${KOKORO_ARTIFACTS_DIR}/git/functions-framework-java"
66
cd "${REPO_DIR}"
77

8+
# ==============================================================================
9+
# 0. Set up Java 17 Environment
10+
# ==============================================================================
11+
export JAVA_HOME="/usr/lib/jvm/java-17-openjdk-amd64"
12+
export PATH="${JAVA_HOME}/bin:${PATH}"
13+
814
# ==============================================================================
915
# 1. Configure Airlock and AR Credentials
1016
# ==============================================================================

0 commit comments

Comments
 (0)