mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 22:09:26 +00:00
[Ubuntu] Change java-tools script to retrieve the latest major Gradle version (#3385)
* Change java-tools script to retrieve the latest major gradle version * Change gradle installation to use manifest json. Use download_with_retries function * Move maven version to the toolset
This commit is contained in:
@@ -19,7 +19,7 @@ download_with_retries() {
|
||||
COMMAND="curl $URL -4 -sL -o '$DEST/$NAME'"
|
||||
fi
|
||||
|
||||
echo "Downloading $URL..."
|
||||
echo "Downloading '$URL' to '${DEST}/${NAME}'..."
|
||||
i=20
|
||||
while [ $i -gt 0 ]; do
|
||||
((i--))
|
||||
@@ -27,6 +27,7 @@ download_with_retries() {
|
||||
if [ $? != 0 ]; then
|
||||
sleep 30
|
||||
else
|
||||
echo "Download completed"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user