File tree 3 files changed +21
-6
lines changed
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:"
58
58
git config --global user.email
" [email protected] "
59
59
git config --global user.name " apmmachine"
60
60
61
- echo " --- Install JDK17"
61
+ echo " --- Install JDK17 :java: "
62
62
JAVA_URL=https://jvm-catalog.elastic.co/jdk
63
63
JAVA_HOME=$( pwd) /.openjdk17
64
64
JAVA_PKG=" $JAVA_URL /latest_openjdk_17_linux.tar.gz"
@@ -67,4 +67,9 @@ mkdir -p "$JAVA_HOME"
67
67
tar --extract --file /tmp/jdk.tar.gz --directory " $JAVA_HOME " --strip-components 1
68
68
69
69
export 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
21
21
# Avoid detached HEAD since the release plugin requires to be on a branch
22
22
git checkout -f " ${branch_specifier} "
23
23
24
+ echo " --- Debug JDK installation :coffee:"
25
+ echo $JAVA_HOME
26
+ echo $PATH
27
+ java -version
28
+
24
29
set +x
25
30
echo " --- Release the binaries to Maven Central :maven:"
26
31
if [[ " $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'
28
33
else
29
34
# 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
31
36
fi
Original file line number Diff line number Diff line change @@ -18,10 +18,15 @@ clean_up () {
18
18
}
19
19
trap clean_up EXIT
20
20
21
+ echo " --- Debug JDK installation :coffee:"
22
+ echo $JAVA_HOME
23
+ echo $PATH
24
+ java -version
25
+
21
26
set +x
22
27
echo " --- Deploy the snapshot :package:"
23
28
if [[ " $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'
25
30
else
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
27
32
fi
You can’t perform that action at this time.
0 commit comments