-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildkite: print maven/java context (#209)
- Loading branch information
Showing
3 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ echo "--- Configure git context :git:" | |
git config --global user.email "[email protected]" | ||
git config --global user.name "apmmachine" | ||
|
||
echo "--- Install JDK17" | ||
echo "--- Install JDK17 :java:" | ||
JAVA_URL=https://jvm-catalog.elastic.co/jdk | ||
JAVA_HOME=$(pwd)/.openjdk17 | ||
JAVA_PKG="$JAVA_URL/latest_openjdk_17_linux.tar.gz" | ||
|
@@ -67,4 +67,9 @@ mkdir -p "$JAVA_HOME" | |
tar --extract --file /tmp/jdk.tar.gz --directory "$JAVA_HOME" --strip-components 1 | ||
|
||
export JAVA_HOME | ||
export PATH=$JAVA_HOME/bin:$PATH | ||
PATH=$JAVA_HOME/bin:$PATH | ||
export PATH | ||
|
||
echo "--- Debug JDK installation :coffee:" | ||
tree "$JAVA_HOME" || true | ||
java -version || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters