File tree Expand file tree Collapse file tree 3 files changed +21
-6
lines changed
Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ echo "--- Configure git context :git:"
5858git config --global user.email " infra-root+apmmachine@elastic.co"
5959git config --global user.name " apmmachine"
6060
61- echo " --- Install JDK17"
61+ echo " --- Install JDK17 :java: "
6262JAVA_URL=https://jvm-catalog.elastic.co/jdk
6363JAVA_HOME=$( pwd) /.openjdk17
6464JAVA_PKG=" $JAVA_URL /latest_openjdk_17_linux.tar.gz"
@@ -67,4 +67,9 @@ mkdir -p "$JAVA_HOME"
6767tar --extract --file /tmp/jdk.tar.gz --directory " $JAVA_HOME " --strip-components 1
6868
6969export JAVA_HOME
70- export PATH=$JAVA_HOME /bin:$PATH
70+ PATH=$JAVA_HOME /bin:$PATH
71+ export PATH
72+
73+ echo " --- Debug JDK installation :coffee:"
74+ tree " $JAVA_HOME " || true
75+ java -version || true
Original file line number Diff line number Diff line change @@ -21,11 +21,16 @@ trap clean_up EXIT
2121# Avoid detached HEAD since the release plugin requires to be on a branch
2222git checkout -f " ${branch_specifier} "
2323
24+ echo " --- Debug JDK installation :coffee:"
25+ echo $JAVA_HOME
26+ echo $PATH
27+ java -version
28+
2429set +x
2530echo " --- Release the binaries to Maven Central :maven:"
2631if [[ " $dry_run " == " true" ]] ; then
27- echo ' ./mvnw release:prepare release:perform --settings .ci/settings.xml --batch-mode'
32+ echo ' ./mvnw -V release:prepare release:perform --settings .ci/settings.xml --batch-mode'
2833else
2934 # providing settings in arguments to make sure they are propagated to the forked maven release process
30- ./mvnw release:prepare release:perform --settings .ci/settings.xml -Darguments=" --settings .ci/settings.xml" --batch-mode | tee release.txt
35+ ./mvnw -V release:prepare release:perform --settings .ci/settings.xml -Darguments=" --settings .ci/settings.xml" --batch-mode | tee release.txt
3136fi
Original file line number Diff line number Diff line change @@ -18,10 +18,15 @@ clean_up () {
1818}
1919trap clean_up EXIT
2020
21+ echo " --- Debug JDK installation :coffee:"
22+ echo $JAVA_HOME
23+ echo $PATH
24+ java -version
25+
2126set +x
2227echo " --- Deploy the snapshot :package:"
2328if [[ " $dry_run " == " true" ]] ; then
24- echo ' ./mvnw -s .ci/settings.xml -Pgpg clean deploy --batch-mode'
29+ echo ' ./mvnw -V - s .ci/settings.xml -Pgpg clean deploy --batch-mode'
2530else
26- ./mvnw -s .ci/settings.xml -Pgpg clean deploy --batch-mode | tee snapshot.txt
31+ ./mvnw -V - s .ci/settings.xml -Pgpg clean deploy --batch-mode | tee snapshot.txt
2732fi
You can’t perform that action at this time.
0 commit comments